onPanelStopEnd - event of object PmiRoot

The event fires at the end of the panel closing sequence, after the onStop event has been fired for all graphic items. This is the last called event related to panel closing.
pMe(Object) Reference to the graphic item where the event rises.
pEvent(Object) A referrence to object describing detailed information about the specific event.
pEvent.Reason - (String) Information regarding panel closing.

This value is transmitted from calling the PmiRoot.Close(sReason) method. If the panel is not closed by the PmiRoot.Close method, then the value is an empty string.

This can be used, for example, if the panel is open as modal window (see How to work with modal windows). If the modal panel is closed by the OK button, the PmiRoot.Close method sets the sReason parameter to, for example, "ok". The PmiRoot.onPanelStopEnd event it is possible to test this value and the correctly fill in the value PmiRoot.ReturnValue.

In this event it is possible to make final setup of values from graphic items into the ReturnValue property.
This event is also functional for Web panels.
See also:
An example of event content that generates a return value of the panel. The return value is represented by array containing two values from graphic items "/text0" and "/text1".
JavaScriptVBScriptSelect and copy to clipboard

if (pEvent.Reason == "ok")
  var text0 = pMe.Items("/text0").Value;
  var text1 = pMe.Items("/text1").Value;
  pMe.ReturnValue = Pm.CreatePmArray().Array1(text0, text1);
PROMOTIC 8.3.29 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