onEditAccept - event of the PmfEnum 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(Variant) The original value.
This event is is functional only in JavaScript language.
Creates the PmfEnum 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 onEnumChange(ev)
Pm.Debug("OldValue=" + ev.OldValue);

var oForm = pMe.Form;
var oEnum = oForm.CreateItem("string", "id_Enum1", "Enum 1", "");
oEnum.AddRow(0.5, "slow");
oEnum.AddRow(9.9, "fast");
oEnum.Value = 0.5;

oEnum.AddEvent("onEditAccept", "id_Enum1", onEnumChange);
PROMOTIC 9.0.23 SCADA system documentation MICROSYS, spol. s r.o.

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