Update cookies preferences
Promotic

onAction - event of the PmfButton object

Description:
The event is triggered when an important logical action happens over the object.
Parameters:
ev(Object) Reference to an object that describes information about the event
Parameters:
ev.SrcObject(Object) Pmf object where the event originated.
ev.Action(String) Action type.
"main" - On the left mouse button or "space" or "Enter" keys are released
Note:
This event is is functional only in JavaScript language.
Example:
Creates the PmfButton object (e.g. in the onFormLoad event of the PmgForm object).
The function is registered into the onAction event.
JavaScriptSelect and copy to clipboard

function onButtonUp(ev)
{
if (ev.Action == "main")
{
Pm.Debug("Click UP");
// . . .
}
}

var oForm = pMe.Form;
var oBtn = oForm.CreateItem("button", "id_butt1");
oBtn.Value = "Button";
oBtn.AddEvent("onAction", "id_butt1", onButtonUp);
PROMOTIC 9.0.31 SCADA system documentation MICROSYS, spol. s r.o.

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