Promotic

onEditAccept - event of the PmfNumber 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(Object) Reference to an object that describes information about the event
Parameters:
ev.SrcObject(Object) Pmf object where the event originated.
ev.OldValue(Double) The original value.
Note:
This event is is functional only in JavaScript language.
Example:
Creates the PmfNumber 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 onNumberChange(ev)
{
Pm.Debug("OldValue=" + ev.OldValue);
}

var oForm = pMe.Form;
var oNumber = oForm.CreateItem("string", "id_Str1", "String 1", "");
oNumber.Value = 123;

oNumber.AddEvent("onEditAccept", "id_Str1", onNumberChange);
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

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