I have a form which "datasource" is a sharepoint list and "Item" is a varRecord (variable programmed as AllGallery.Selected).
The form is an edit form, however all components are set to DisplayMode.View except for one which is set to "Edit": Attachments. Under attachments I have a "Save" button which has this code under "OnSelect":
Patch(
'Sharepoint_list_name';
LookUp('Sharepoint_list_name'; 'Column (ID)'=varRecord.ID);
Form1.Updates
);;
Notify("Saved";NotificationType.Success;2000)
This button works well and actually changes the attachments in existing record in my sharepoint list. But when I click it, the new added attachments still appear on the list as "Unsaved". They are in fact saved and if I come back to first screen and navigate to screen with my form/or just refresh the page, it will synchronize and display as saved.
I wanted to add a Refresh icon in the top left corner, which a user can click and see if the attachments actually got saved or not. But adding the icon and putting "Refresh('Sharepoint_list_name')" doesn't work. Putting refresh into my "Save" button after "Notify" also doesn't work.
Is there a way to do this?