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.
Example:
JavaScriptSelect and copy to clipboard
var oForm = pMe.Form;
// The function is registered into the onClose event.
function onFormClose(ev)
{
if (ev.CloseReason == "ok")
{
Pm.Debug("onClose");
}
}
oForm.AddEvent("onClose", "Id_Close", onFormClose);