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
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
At the monthly call, connect with other leaders and find out how community makes your experience even better.