'APEX refresh- issue with the page refreshing even before db changes
I created a classic report in apex. It is essentially a simple notification system.
The aim of this report is to see active notifications. But I also want the user to be able to close each notification. For this purpose I created a virtual column called 'Close' and made it a link. Each row has an icon of a trash can. When the user presses it, it will update a column in the database from IS_READ= 0 to IS_READ=1.
The system works great, however I am having trouble with proper refresh.
When I delete a notification, the page refrershes, but it displays the old state, the notification is still there. However, when I refresh the page manually, the notification will disappear.
I tried all sorts of refreshing techniques (dynamic actions) and triggers but nothing works correctly.
Can you please advise me on how to do a refresh only after the change has happened in the database?
Here is an explanation how my page is configured:
This is the notification system

And this is my Dynamic action to delete (update) the records. The .delete-irrow is a jQuery selector of the trash can icon

Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|



