onEditAccept - event of the PmfBool object

The event is triggered after the editing is finished and the edited value is saved.
ev.SrcObject(Object) Pmf object where the event originated.
ev.OldValue(Boolean) The original value.
This event is is functional only in JavaScript language.
Creates the PmfBool object (e.g. in the onFormLoad event of the PmgForm object).
The function is registered into the onEditAccept event.
JavaScriptSelect and copy to clipboard

function onCheckBool(ev)
Pm.Debug("OldValue=" + ev.OldValue);

var oForm = pMe.Form;
var oBool = oForm.CreateItem("bool", "id_Bool1", "Boolean 1", "");
oBool.Value = false;
oBool.AddEvent("onEditAccept", "id_Bool1", onCheckBool);
PROMOTIC 9.0.24 SCADA system documentation MICROSYS, spol. s r.o.

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