From my datatable named DataTable1, I want to be able to open the form FormDetails when users click on the column named PR #, on the OnSelect Action of my column I have this code:
and power apps is not complaining, meaning no error message is being displayed. But when I check my FormDetails form for the Item : DataTable1.Selected here it complains with the message: Expected a Value Compatible with 'DataSource'
I am wondering what I am doing wrong here??
Basically, the FormDetails should open in Edit mode and users needs to be able to update 4 fields on that form. Strangely enough this used to work just fine.
of-course if you want the form to return to view mode after editing you can add a button that will re-change the default mode and to save the changed values you can add a save button and put it visibility to be when the form has been changed to edit to appear.
Ps: for this to work you need your form to be Edit form not display form
you can access the formula bar by either clicking on the word "Default mode" or from the dropdown in the top left.
You can add the button on the screen, to be honest it doesn't have to be a button you can add the functionality on any component that has OnSelect method
Join us for the next call on August 17, 2022 at 8am PDT.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.