
I have a gallery which is mapped to a collection (RecordsCollection) for better filtering performance of items in a SharePoint list
I want to be able to select an item, view it, and edit it. View is fine, having trouble with edit though. To get the item to display on the edit form, I set DataSouce to RecordsCollection and Item to Gallery.Selected. This pulls the fields through to the controls to edit but I'm not able to save the new info
I tried SubmitForm(EditForm) and Patch(RecordsCollection, Gallery.Selected, EditForm.Updates) and neither worked, I think because I need to connect it to the actual SharePoint list
Is there any way to make this conenction ono the edit form? Or do I need to Patch each field (want to avoid this if possible)?
Set your Form datasource to your real underlying data source.
Set the Item to the Gallery.Selected
Your SubmitForm will work again.
HOWEVER, keep in mind, this does not change your local collection. You will either need to Patch your collection or ClearCollect the items again. That's one of the tricky parts about having a local collection like that...keeping it up to date.