Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ InTouch HMI

Refresh()

  • Last UpdatedMar 05, 2021
  • 1 minute read

Refreshes the control from the database, and if the connection is successful, displays the set of records in the range 1 to MaxRecords.

Syntax

Object.Refresh

Remarks

After initiating a refresh of the Alarm DB View control's display by calling its Refresh() method, the value of the RowCount and TotalRowCount properties change to -1 until the refresh is complete (that is, all relevant records are retrieved from the database). When the refresh is complete, both properties are updated with the correct, current row count.

The Refresh() method works asynchronously - it returns control to the calling script immediately and continues working in the background. This means that querying the value of RowCount and TotalRowCount immediately after calling Refresh() most likely returns -1, as their value is queried at a time when the refresh still hasn't completed. One way to get the correct values would be to use scripting to determine when the value of either property changes from -1 to a different value; this tells you that the correct values are now available.

Example

The name of the control is AlmDbView1.

#AlmDbView1.Refresh();

TitleResults for “How to create a CRG?”Also Available in