"selectedItem"

The attribute "selectedItem" of the DPTreeView returns the data point identifier of the selected Element as string.

Synopsis

shape.selectedItem();

Parameter

Parameter Description
shape Name of the object

Description

Returns the data point identifier of the selected DPTreeView element as string value. If a data point type has been selected, the result matches following format: "System:[DPT]".

Example

Following example writes the selected element of the DPTreeView to the LogViewer.

main()
{
  DebugN(DP_TREE1.selectedItem());
}

Assignment

DpTreeView