Update cookies preferences
Promotic

GetSel - method of the PmfTreeItem object

Description:
Returns the selected tree item.
Syntax:
Object GetSel([Long nType])
Parameters:
nType[optional] (Long) The type of the tree area for finding the selected item.
0 (default) - Returns the selected tree item (object of the PmfTreeItem type) in the branch starting with the specified item.
1 - If the item is selected, then it returns this item,
otherwise returns the value null.
Note:
This method is also functional in Web panels.
Example:
JavaScriptSelect and copy to clipboard

var oSelTree = oTree.TreeRoot.GetSel(0);   // Returns the selected item in the whole tree
var oSelBranch = oTreeItem.GetSel(0);   // Returns the selected item in the branch starting with the oTreeItem item
var oSelTest = oTreeItem.GetSel(1);   // Test whether the oTreeItem item is selected

History:
Pm9.00.26: Created
PROMOTIC 9.0.28 SCADA system documentation MICROSYS, spol. s r.o.

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