IDimSelection.SelectHierarchy

Syntax

SelectHierarchy: IDimHierarchyInstance;

Description

The SelectHierarchy property determines and adds alternative hierarchy in dictionary selection.

Comments

To work in selection with selected elements included in the specified alternative hierarchy, use IDimSelection.LimitToHierarchy.

Example

Executing the example requires that the repository have:

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    dim: IDimInstance;
    hier: IDimHierarchyInstance;
Begin
    dim := UiDimension1.DimInstance;
    hier := dim.Hierarchies.Item(0);
    UiDimension1.Selection.SelectAll;
    UiDimension1.Selection.LimitToHierarchy(hier);
    UiDimension1.Selection.SelectHierarchy := hier;
End Sub Button1OnClick;

On clicking the button only the elements included in specified alternative hierarchy keep selected.

See also:

IDimSelection