pMe | (Object) Reference to the PmgRoot object where the event rises. |
---|---|
pEvent | (Object) Reference to an object describing detailed information about the specific event.
pEvent.Reason - (String) [for reading] The information regarding panel closing.
This value is transmitted from calling the PmgRoot.Close(sReason) method. If the panel is not closed by the PmgRoot.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 PmgRoot.Close method sets the sReason parameter to, for example, "ok". In the PmgRoot.onPanelStopEnd event it is possible to test this value and the correctly fill in the value PmgRoot.ReturnValue. |
if (pEvent.Reason == "ok")
{
var text0 = pMe.Items("/text0").Value;
var text1 = pMe.Items("/text1").Value;
pMe.ReturnValue = Pm.Array1(text0, text1);
}