cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
stapes
Level 8

How do I set the Datasource of an Edit Form?

I am trying to add an Edit Form to my app.

I have made a Flow to grab the record that needs updating.

I am grabbing it in the OnVisible Action of the Screen:

 

ClearCollect(updateCollection, UpdateGoodsIn.Run(SelectedItem.thOurRef, SelectedItem.stCode))

 

Now I am trying to connect this as the Data source for an Edit Form.

 

data-source-for-edit-form.png

 

 

I have looked at this reference document but it makes no mention of it.

 

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/controls/control-form-detail

 

As shown in the diagram, I have set my Data source to 'updateCollection' but PowerApps is still telling me 'The form isn't connected to any data yet'

 

2 REPLIES 2
mmhailye
Level: Powered On

Re: How do I set the Datasource of an Edit Form?

Stapes,

 

Since you are collecting your data using a Flow (now re-branded as Microsoft "Power Automate"), it will take anywhere from a few seconds to even a few minutes to run, so when your form becomes visible there won't be data in the collection until the Flow is complete. I would suggest in your "On Start" of your App to initially create this Collection with just one record of dummy data as a placeholder so that it is available immediately at the "On Visible" of this screen.

 

Check out this article about Power Automate (Flow) performance.

 

https://docs.microsoft.com/en-us/power-automate/limits-and-config

 

Mike

Microsoft v-siky-msft
Microsoft

Re: How do I set the Datasource of an Edit Form?

Hi @stapes ,

 

One thing to notice is that EditForm doesn't support the Collection as data source.

So if you want it, you have to create each component manually. Use label to show the column name , use Textinput box to enter the value, and use combo box to choose selection, and then group all component together as a whole.

Best regards,

Sik

 

Helpful resources

Announcements
thirdimage

Coming Soon: T-Shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

Top Solution Authors
Top Kudoed Authors
Users online (6,831)