AllTreesSelection Object
You can use the AllTreesSelection object to get a list for the currently selected tree entities in all the active views within the same module. You can retrieve selected entities by iterating through the list.
For example, to check the permissions for selected test instances in the Execution Grid view of the Test Lab module:
set selectedTestInstances = AllTreesSelection.TreeSelection("ExecutionGridView") for each selectedEntity in selectedTestInstances if selectedEntity.Id <> 1 then checkPermission(selectedEntity) end if next
The AllTreesSelection object has the following properties:
Property |
R/W |
Type |
Description |
---|---|---|---|
Count |
R |
Long |
The number of trees that currently can be accessed. |
ViewNameById |
R |
String |
The view that is available for a specific index. |
TreeSelectionById |
R |
List |
Lists the selected tree entities for a view that corresponds to a specific index. |
TreeSelection | R | List | Lists the selected tree entities for a specific view. |