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

var oForm = pMe.Form;
var oString = oForm.CreateItem("string", "id_Str1", "String 1", "");
oString.Value = oForm.ClientType ? "PM Runtime" : "PM Develop";

oString.AddEvent("onEditAccept", "id_Str1", onStringChange);
PROMOTIC 9.0.23 SCADA system documentation MICROSYS, spol. s r.o.

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