How to set a value on opening a page
Hi, I want to make a kind of Facebook notify icon when I have new alerts.
I created a helper thing with these properties:
NumberOfNewAlerts //Number
HasNewAlerts //Boolean
NumberOfUnackAlerts //Number
HasUnackAlerts //Boolean
through a subscription in my template (where the event is the new alert) I set NumberOfNewAlerts +=1 and HasNewAlerts = true.
I would like a service that, anytime I open my AlertMashup, will set
NumberOfNewAlerts =0 and HasNewAlerts = false.
Is there a way to know when I open my page?
Plus, this service must depend per user because if I have three users (A, B and C) which are allowed to see the project; I want that NumberOfNewAlerts refers to the actual new alerts to the user.
