Promotic
Login logon

onEditAccept - event of the PmfBool object

Description:
The event is triggered after the editing is finished and the edited value is saved.
Parameters:
ev(Object) Reference to an object that describes information about the event
Parameters:
ev.SrcObject(Object) Pmf object where the event originated.
OldValue(Boolean) The original value.
Note:
This event is is functional only in JavaScript language.
Example:
Script for example in the onFormLoad event of the PmgForm object:
JavaScriptSelect and copy to clipboard

var oForm = pMe.Form;
var oBool = oForm.CreateItem("bool", "id_Bool1", "Boolean 1", "");
oBool.Value = false;

// The function is registered into the onEditAccept event.
function onCheckBool(ev)
{
Pm.Debug("OldValue=" + ev.OldValue);
Pm.Debug("NewValue=" + ev.SrcObject.Value);
}
oBool.AddEvent("onEditAccept", "Id_Bool1", onCheckBool);
PROMOTIC 9.0.34 SCADA system documentation MICROSYS, spol. s r.o.

Send page remark Contact responsible person
© MICROSYS, spol. s r.o.Update cookies preferences