| ev | (Object) Reference to an object that describes information about the event |
|---|
var oForm = pMe.Form;
var oString = oForm.CreateItem("string", "id_Str1", "String 1", "");
oString.Value = oForm.ClientType ? "PM Runtime" : "PM Develop";
// The function is registered into the onEditAccept event.
function onStringChange(ev)
{
Pm.Debug("OldValue=" + ev.OldValue);
Pm.Debug("NewValue=" + ev.SrcObject.Value);
}
oString.AddEvent("onEditAccept", "Id_Str1", onStringChange);