Promotic
WikipediaLinkedInYoutubeTwitterFacebook

onAction - event of object PmfButton

Description:
Is triggered when an important logical action happens over the object.
Parameters:
ev.SrcObject(Object) Pmf object where the event originated.
ev.Action(String) Action type.
"main" - On 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 (by means of the AddEvent method).

JavaScriptSelect and copy to clipboard

var oForm = pMe.Form;
var oButton = oForm.CreateItem("button", "id_butt1");
oButton.Value = "Button";

oButton.AddEvent("onAction", function(ev) { if (ev.Action == "main") Pm.Debug("Click UP"); });
PROMOTIC 9.0.8 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice