Promotic
Login logon

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:
Script for example in the onFormLoad event of the PmgForm object:
JavaScriptSelect and copy to clipboard

var oForm = pMe.Form;
var oBtn = oForm.CreateItem("button", "id_btn1");
oBtn.Value = "Button";

// The function is registered into the onAction event.
function onButtonUp(ev)
{
if (ev.Action == "main")
{
Pm.Debug("ButtonUp");
// . . .
}
}
oBtn.AddEvent("onAction", "Id_Btn1", onButtonUp);
PROMOTIC 9.0.34 SCADA system documentation MICROSYS, spol. s r.o.

Send page remark Contact responsible person
© MICROSYS, spol. s r.o.Update cookies preferences