Hi
I have a Powerapp that uses a SharePoint list "Books" that holds titles, authors and number of copies of each book. Students can choose just one book and than automatically the number of copies decreases with one copy. If the number of copies of a certain book has become 0 (zero) than the book disappears from the gallery where I show the SharePoint list in.
Now since multiple students can have access at the same Powerapp at the same time I sometimes end up wth a book showing -3 copies.
f.e. A book has 4 copies and there are 6 students who choose that book at approximately the same moment I end up with -2 copies for that book and the book still shows up in the gallery since the number of copies is not equal to 0.
How can I avoid that I end up with negative saldo of copies, so when the number of copies becomes 0 that book should disappear from the gallery also for users who are watching the app at that moment. I can't find any way.
Maybe I could prevent the use of the powerapp for different users at the same time, so let's say if one students uses the powerapp the other students must wait to open it until the firtst student has chose a book and ended the app. Is that perhaps possible?
Thx a lot for your advice.
Greetz
Walter