Can anyone help to get me a code to refresh a “table.props.selection.data” ?
Please note that there is no binding on this property.
I noticed this selection.data gets updated only when the table row is clicked. But I want to refresh this selection.data with a script.
Objective: Please advise if this is correct method.
I want to update the table in all sessions when there is an update from other sessions/users. Polling avoided to reduce query load.
I have created a memory tag with datetime format and tag.write system.date.now() to this tag on every insert or update on any session.
In view where table is located, created a label and bind to the memory tag.
Added a change script on this label component to refresh table.props.data.
table.refreshBinding(“props.data”) is successful, however there is a text field component to display the selected Row value, since the selection.data array does not get updated it shows old data.