onSelChange - event of the PmfTable object
Description:
The event is triggered when another row or cell is selected.
Parameters:
| ev.SrcObject | (Object) Pmf object where the event originated. |
|---|
Note:
This event is is functional only in
JavaScript language.
The event is triggered only if a change of the selection in the table s made by the mouse or keyboard.
This event is not triggered if the selection change in the table occurs due to calling the methods
SetSel,
DeleteRow,
InsertRow,
MoveRow, etc.
Example:
JavaScriptSelect and copy to clipboard
var oForm = pMe.Form;
var oTable = oForm.CreateItem("table", "id_tab1");
oTable.InitRows(5, 1, 1);
oTable.InitCols(6, 1);
// ... Additional table settings
// The function is registered into the onSelChange event.
function onTableSelChange(ev)
{
Pm.Debug("PmfTable.onSelChange Row=" + oTable.GetSel(0).Row);
}
oTable.AddEvent("onSelChange", "Id_Change", onTableSelChange);