Refresh the notification count present in the top bar of the layout

0
I have develop a notification in my web app. I'm displaying the count of unread notification on the notification icon on the top of the page. The count is not getting refreshed automatically when I create a new notification as I have placed the snippet in the layout. It works fine when I refresh the page manually. The same layout has been used in the all pages on the application. Any suggestions how to refresh the count?  
asked
2 answers
0

Hello Abrar Ahmed,

 

There are different ways to achieve this.

Personally i love to use a websocket for this.

 

Check out this module for that for exaple:

https://marketplace.mendix.com/link/component/205276

 

However you can also try to force the refresh on your screen, with a microflow or nanoflow.

 

Hope this helps,

 

Good luck!

 

 

answered
0

Hi Abrar,

I am not sure i think snippet does not refresh the entity but you can try this try to take dataview directly and in the datasource take a nanoflow inside nanoflow use refresh entity or object activity.

 

answered