
Announcements
Hi,
I’m trying to create an app where users can see a canteen menu which is maintained in a Sharepoint list. The app will display the different dishes for the day in a gallery. They can move through the different dates. The user should be able to bookmark what he likes to eat which will change the bookmark icon from not filled to a filled version for this item and increase a counter in the SharePoint list on this meal. If the user unchecks the bookmark the counter should be decreased. I’m not planning to record the user data, so when ever he leaves the app and logs in again there is no need to see what he bookmarked.
I struggle with toggle of the bookmark icons as I just have a counter per dish that increases and decreases. As several people should be able to use the app at the same time I don’t think it makes sense to handle the bookmarking in the SharePoint list with a columns.
Do you have any idea how things like this can get accomplished?
Hi,
First of all, I think it would be better to record the user data since if a user logs out of the app after bookmarking a meal, when he returns he could boomark it again and exploit this feature.
My suggestion would be:
I would try to make only possible to boomark one meal per day per person if it makes sense for your use case.
The users could only see meals from the present day or from the days that are still to come.
To save the boomarks create a sharepoint list which has the name of the meal, the date and the user email.
For the counter of the meals I would use a countrows for the rows which have the same date and the same name of the meal.
For the bookmark toggle default I would use a lookup which checks the current date, name of the meal and the user using the app.
Additionally I would use a scheduled cloud flow to clear all items in the list where its date its behind the todays date in order to clear unnecessary data.