onPanelStopEnd - event of object PmiRoot

The event fires at the end of the panel closing sequence, after the onStop event has been called 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.sReason - (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".
Example for VBScript language:
If pEvent.sReason = "ok" Then
  Dim text0, text1
  text0 = pMe.Items("/text0").Value
  text1 = pMe.Items("/text1").Value
  pMe.ReturnValue = Array(text0, text1)
Example for JavaScript language:
if (pEvent.sReason == "ok")
  var text0 = pMe.Items("/text0").Value;
  var text1 = pMe.Items("/text1").Value;
  pMe.ReturnValue = Pm.CreatePmArray().Array1(text0, text1);
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice