How to update a component to reflect changes from an external source

49 views
Skip to first unread message

Everton Marques

unread,
Oct 17, 2016, 1:02:03 PM10/17/16
to gowebuitoolkit
There is a Table component displaying data from an external source.

I am considering to keep a goroutine periodically checking the external source for data modifications in order to update the Table component.

However I'm unsure about how exactly to create an Event to re-build the Table and mark its Window as dirty.

Does this course of action seem reasonable?

What would be the recommended way to keep a Table up-to-date with external information?

Thanks,
Everton

András Belicza

unread,
Oct 17, 2016, 4:30:24 PM10/17/16
to Everton Marques, gowebuitoolkit
This is currently not possible with Gowut, there is no server-side push.

The closest you can get is use a Timer at client side, which could "ping" the server periodically, and its server side handler could check if new data is available, and if so, mark the Table dirty which triggers an auto-refresh.
Reply all
Reply to author
Forward
0 new messages