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 ALM 8942
Tips to improve your search results... ALM Help Center ALM Help Center ALM Help 16.00-16.0.1 All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: