Automatic Refresh of changed entities

I have a Screen showing a list of entities from database in a table, maybe even with a filter. This screen is opened for User A and User B. User B changes an entity, deletes or adds an entity, which would have been shown for user A if user A would open the screen now. A button for refreshing the datasource would do the same. Is there any way to inform the user that he has to refresh the screen or do even an automatic refresh, when one or more entities have been changed?

best Regards

Hi,

I would recommend using the Global Events add-on. So, you’ll need to define ``GlobalUiEvent` and implement logic of publish and listening to this event.

Demo project: sample-sales.zip (107.0 KB)

Take a look at ProductChangeEvent and ProductBrowse

Regards,
Gleb

This is great and easy to understand, thank you. In your sample the global event is received from the entity browser every time a product is changed and the datasource is refreshed. If I have a filter defined in the screen I do not want the datasource to be refreshed if the entity changed is not shown in the filter.
But this would be the icing on the cake, your sample is a good starting point.-

Thank you