System.db.refresh() doesn't seem to be a solution for a vision table component

I just can't figure out how to refresh a vision table component binded to a Name Query without setting the Polling Mode other than 'Off'.

Does the named query have caching? You will need to clear the cache before telling the table to refresh, otherwise good chance you just get the same exact data when you tell it to refresh.
https://docs.inductiveautomation.com/display/DOC80/system.db.clearNamedQueryCache

system.db.clearNamedQueryCache("myNamedQuery")
system.db.refresh(myTable, 'data')

I also don't think there is a system.gui.refresh. To refresh query bindings you need system.db.refresh()
https://docs.inductiveautomation.com/display/DOC81/system.db.refresh

3 Likes

:+1: