Hi everyone! I’m building a Mendix app for a festival platform, where visitors can register for events. I want to implement a feature where: A visitor can choose to be notified about changes to a specific event (but not about individual performances or artists). When a visitor logs in to the system, they should see a notification or message informing them about any changes made to the events they’re following. I’m wondering What’s the best way to implement this in Mendix? Should I use an association between User and Event, and track changes? How can I trigger and display a notification on login? Any ideas, best practices, or examples would be greatly appreciated! Thanks!
asked
Achraf Assrih
1 answers
0
Hi Achraf Assrih,
You can follow below steps. (One of many solutions which you can use)
Create an EventSubscription entity linking Account and Event.
Add HasSeenLatestChange (Boolean) to EventSubscription.
When an event updates, set HasSeenLatestChange = false for all related subscriptions.
On user login, check for subscriptions with HasSeenLatestChange = false.
If any found, show, You have updates on followed events.