Editing list item from both SharePointIntegration.Selected and Gallery.Selected
I'm creating a form that allows users to select and edit an existing item from a gallery, using the Navigate/Edit Form functions in the OnSelect field of a button in the gallery, and the Gallery.Selected function in the Item field on the form.
However, I'd also like to be able to select and edit items via the underlying SharePoint list, as with SharePointIntegration.Selected function. Currently, I can only edit the form if I go through the gallery. If I try to select an item from the list, it gives me the item I last opened in the gallery instead of what I actually selected.
The gallery selection will then show if it is selected and if nothing is selected, then the integration selected record will show.
If you need to at some point revert back to the integration record after a gallery item is selected, then simply put a Set(glbCurrentRecord, Blank()) where ever it is appropriate.
I hope this is helpful for you.
_____________________________________________________________________________________ Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did. NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!) Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes Really want to show your appreciation? Buy Me A Cup Of Coffee!