Promotic
Login logon

GetSel - method of the PmfTable object

Description:
Detects selected rows or cells.
Syntax:
Variant GetSel(Long nType)
Parameters:
nType(Long) Must be always the 0 value.
Return value:
The return value depends on setting of the SelType property.
- If nothing is selected then null is returned.
- If the SelType is == "row" then the PmMap object is returned, containing set properties:
mRet.Row - The number of the selected row.
mRet.Area - Here is always the value 11, i.e. the row is always in the 11=MainBody = Main data area area.
- If the SelType is == "cell" then the PmMap object is returned, containing set properties:
mRet.Row - The number of the selected row.
mRet.Col - The number of the selected column.
mRet.Area - Here is always the value 11, i.e. the row is always in the 11=MainBody = Main data area area.
Note:
This method is also functional in Web panels.
See also:
- PmfTable.SetSel (method)
- PmfTable.SelType (property)
Example1:
JavaScriptSelect and copy to clipboard

var mRet = oTable.GetSel(0);
if (mRet)
{
Pm.Debug("PmfTable.GetSel Row=" + mRet.Row);
}

History:
Pm9.00.04: Created
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