Promotic

onStop - event of the PmgObject object

Description:
The event is triggered on the destruction of the Pmg object in the course of closing the panel.
The event can be used, for example, to the final data transfer of the Pmg object content into the target data.
Parameters:
pMe(Object) Reference to the PmgObject object where the event rises.
pEvent(Object) Reference to the object describing detailed information about the specific event.
The pEvent parameter is not used here because this event does not need any additional information.
Note:
This event is also functional in Web panels.
But due to the limitations of some Web browsers (Chrome, Edge) it is not possible to call, for example, the panel method in this event.

After the onStop event is triggered for all Pmg objects, the PmgRoot.onPanelStopEnd event is triggered at the end.
See also:
Example:
This script in the PmgNumber object calls the designer's "SetVal" method of the PmaPanel object. Then passes the last value as parameter.
This does not work in some web browsers (see Note).
JavaScriptVBScriptSelect and copy to clipboard

pMe.PmPanel.Methods.SetVal(pMe.Value);
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.