Refresh datagrid from Quartz Job?

I have a Quartz job that updates some fields in the database periodically, when those changes happen, I’d like to call DataGrid.getDataProvider().refreshAll();, but I get a NullPointerException. Is it even possible to do it this way around? Or will I need a background task on the screen page to check for changes, and do it that way?

Thanks

Hi,

It seems that you should publish an event from your quartz job and then handle this event inside the screen in case the screen is opened. See the following topic for an example of how to send event from backend to UI.