ev.SrcObject | (Object) Pmf object where the event originated. |
---|---|
ev.OldValue | (String) Returns the original value. |
The function is registered into the onEditAccept event.
var oForm = pMe.Form;
var oString = oForm.CreateItem("string", "id_Str1", "String 1", "");
oString.Value = oForm.ClientType ? "PM Runtime" : "PM Develop";
oString.AddEvent("onEditAccept", function(ev) { Pm.Debug("OldValue = " + ev.OldValue); });