Refresh - method of object PmPanel

Refresh panel.

This method/property/event is considered obsolete and is functional only if the Level of integration of panel viewer and the local application configurator is set to full - FULL access from scripts to the whole application (only for VBScript and if the Enable multiple opening of local panel configurator IS NOT SET.

Instead of this method it is better to use the PmiRoot graphic item method Refresh.

For local panel:

The method needs to be used only if the Refresh period (refresh) configurator is set in the PmPanel object. Otherwise the panels are refreshed themselves with the period set in the Panels timer period configurator of the PmRoot object.

The method refreshes all graphic items of this panel at a time. For the control refreshing only of some items, it is possible to use the PmiItem.Refresh method of the graphic items instead of this method.

After calling this method the onRefresh event fires and also the onRefresh events of all graphic items of this panel.

For Web panel:

For Web panels the Refresh method can be used, if the Web page refresh rate is low (see the configurator "Refresh period of HTML pages [s]") and feedback script input from client to server (calling pMe.PmPanel.Methods) causes data change, displayed in the Web client. In such case after calling the Methods it is usefull to call Refresh causing instant data refresh on the client. See Example below.

See also:
Calling the designer's method SendData (e.g. in the onButtonUp event of the PmiButton graphic item) in the Web client causes calling this method in the PROMOTIC server. This method, for example, processes the value of 3.14 on the server and modifies the data on the server that are observed by client. If the Refresh method is not called on the client, then the client data would not be refreshed until the next regular panel refresh, e.g. in 10 seconds or more.
JavaScriptVBScriptSelect and copy to clipboard

PROMOTIC 8.3.30 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice