Hi,
I have a simple PowerApp, which allows a user to add records to a gallery. For example, Screen1 has a gallery of items which are stored in a SharePoint list and a button for "Add New Item".
When the user clicks the button Screen2 is displayed with another gallery which is basically just a list of items. When the user selects an item on Screen2, that item is added to the SharePoint list which is attached to Screen1, then the user is returned to Screen1.
Adding the item to the SharePoint list is working fine, but when the user is returned to Screen1, the gallery is not updated to display this newly added item...how can I update the gallery on Screen1 when the user selects an item on Screen2?
I tried to Refresh() the datasource (SharePoint list) attached to the gallery on Screen1 but that does not work. I'm not sure if there is a special formula to achieve this...
Thanks for the help!
Edit: as a workaround, I have added a button on Screen1 to refresh the gallery but I would really like to automate this step. I've noticed that when I add the first item, the gallery updates as expected but any subsequent items do not update the gallery until I click the refresh button...