Share this page

# 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.

https://admhelp.microfocus.com Application Quality Management 8942
Tips to improve your search results... OpenText™ Application Quality Management Help Center OpenText™ Application Quality Management Help Center OpenText™ Application Quality Management Help 26.1 All View Local Help Center View Online Help Center Version: