Promotic

onClose - event of the PmForm object

Description:
The event is triggered on closing of the PmForm object.
Parameters:
ev(Object) Reference to an object that describes information about the event
Parameters:
Form(Object) The PmForm object.
CloseReason(String) Window closing type identifier.
ok - The window has been closed as requested.
Note:
This event is is functional only in JavaScript language.
See also:
- PmForm.onOpen (event)
Example:
The function is registered into the onClose event.
JavaScriptSelect and copy to clipboard

var oForm = pMe.Form;
oForm.AddEvent("onClose", "sFuncId", onTest);

function onTest(ev)
{
if (ev.CloseReason == "ok")
{
Pm.Debug("onClose");
}
}

History:
Pm9.00.07: Created
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

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