onAction - event of the PmfTable object

The event is triggered when an important logical action happens over the object.
ev(Object) Reference to an object that describes information about the event
ev.SrcObject(Object) Pmf object where the event originated.
ev.Action(String) Action type.
"main" - left mouse button double-click or on release of the "space" or "Enter" key over the table.
ev.Area(Long) The numeric identifier of the table area where the action was executed. See Areas in the table.
ev.Row(Long) Row index of the table where the action was executed.
ev.Col(Long) Column index of the table where the action was executed. If SelType = "row" and the action was initiated by the "space" or "Enter" then ev.Col = -1.
This event is is functional only in JavaScript language.
Creates the PmfTable 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 onTableAction(ev)
if (ev.Action == "main")
Pm.Debug("Area=" + ev.Area + ", Row=" + ev.Row);

var oForm = pMe.Form;
var oTable = oForm.CreateItem("table", "id_tab1");
oTable.InitRows(5, 1, 1);
oTable.InitCols(6, 1);
// Setting table
// ...

oTable.AddEvent("onAction", "tabedit", onTableAction);
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

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