Hi there Power App community!
I've recently implemented a change on a clients canvas app where the issue they were having is that the refresh button above a gallery, when selected, would set the gallery to another events gallery list altogether.
Setup:
Screen 1 - Event Gallery for Today
Screen 2 - Invitee gallery based on screen 1's selected event.
I fixed this by applying a variable to the event gallery Item.Selected. Then, no matter how many times you click refresh or tick an invitee, it does not refresh the gallery and set it to the first event on screen 1's gallery.
My problem comes in now, that when multiple users use the canvas app and want to see the latest updates of the invitee list, they select the refresh button and nothing changes. This is because the variable I was setting to prevent the gallery from pulling from refreshing to the first event gallery Item.Selected is remaining static and will not allow for screen 2's gallery to update (even though I'm telling it to refresh the datasource and reset screen 2's gallery).
My question is this, is there a way to reset the variable of the Item.Selected from screen 1 without having to set it to the first item in screen 1's gallery? Is there a way, without having to refresh the items in screen 2's gallery without having to change the Item that was selected from screen 2 i.e. get that reference the same.