cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
stapes
Post Prodigy
Post Prodigy

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
Frequent Visitor

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

v-siky-msft
Community Support
Community Support

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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (100,460)