Datasource listener confusion


A question around datasource listeners (and/or possibly entity listeners).

I want to be able to have a user who is looking at the screen to be alerted of changes to entities that other users, or REST API calls have made.

Is this what the datasource listeners can be used for? I’m thinking toast pop-up alerts or a refresh of a javascript component etc.


Hi Mark,

Sorry for late reply, I missed your question somehow.

Datasource listeners cannot do it. They react on changes in the current screen an in the current user session.

The simplest solution in my opinion would be using a screen timer that once in 10…20 seconds checks whether the version of the currently edited entity is still the same in the database. You can use DataManager to load the entity with a minimal view. The entity should implement the Versioned interface.