Hi All.
I have a filtered gallery based on logged in user. With that, I have two buttons being utilized outside of the gallery:
1. An EDIT button that sets the gallery to be in edit mode:
Set(g_displayMode, DisplayMode.Edit)
2. A SAVE button that sets the gallery to be in view mode. In addition to that, the records are being read from a SharePoint list which needs to have just 1 field updated: Reviewer_Comments:
Set(g_displayMode, DisplayMode.View); ForAll(Gallery1.AllItems, Patch(BSN_FAL_PowerApps, First(Filter(BSN_FAL_PowerApps, ID = Gallery1.Selected.ID)), {Reviewer_Comments: txt_ReviewComment.Text}))
I've also tried the following but it's not updating properly either:
ForAll(Gallery1.AllItems, Patch(BSN_FAL_PowerApps, LookUp(BSN_FAL_PowerApps, ID = Gallery1.Selected.ID), {Reviewer_Comments: txt_ReviewComment.Text}))
The issue: I'm only able to update one record. The ideal situation would be to update the current selected gallery item's reviewer comment field. I've tried other methods found on this community but it just creates new list items, which I don't want.
Any help would be greatly appreciated! Thanks!