IEaxDataAreaHierarchies.AddedElementsSelection

Syntax

AddedElementsSelection(Slice: IEaxDataAreaSlice): IDimSelectionSet;

Parameters

Slice. Analytical data area slice.

Description

The AddedElementsSelection property returns selection of elements added manually by user.

Comments

To add element from facts dimension to original hierarchy, use IEaxDataAreaHierarchies.AddExistingElement.

Example

Executing the example requires that the repository contains an express report with the EXPRESS identifier containing table. Selection of one of dimensions must contains elements added manually by the user.

Add links to the Dimensions, Express, Metabase system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Eax: IEaxAnalyzer;
    DA: IEaxDataArea;
    SelSet: IDimSelectionSet;
    i: Integer;
Begin
    MB := MetabaseClass.Active;
    Eax := MB.ItemById("EXPRESS").Bind As IEaxAnalyzer;
    DA := Eax.DataArea;
    SelSet := DA.Hierarchies.AddedElementsSelection(DA.Slices.Item(0));
    For i := 0 To SelSet.Count - 1 Do
        Debug.WriteLine("Elements added in selection - " + SelSet.Item(i).ToString(""", "False));
    End For;
End Sub UserProc;

After executing the example the console displays selection elements which were added manually by user.

See also:

IEaxDataAreaHierarchies