I have a SharePoint List with a number field.
I have a gallery in an App tied to that SharePoint list with the number field.
I have a button in the gallery item.
I would like when someone presses the button in that gallery item, that the number field instantly increments the SharePoint List and that change is instantly visible in the gallery item.
Is the best way to do this:
- Connect the Gallery directly to the list rather than a Collection
- OnSelect of the button in the gallery item, increment the current number field by 1 (I don't want the individual to increment by more than 1)
- Patch the list
- Do a Refresh of the list
Or is there a better way?
Basically, multiple people could have this app open at the same time and I would like the changes to be reflected across them. I also want the user to see that their increment took place so they don't keep pressing the button.
Thanks,
Terry