IEaxDataAreaHierarchies.AddedElementsSelection

Fore Syntax

AddedElementsSelection(Slice: IEaxDataAreaSlice): IDimSelectionSet;

Fore.NET Syntax

AddedElementsSelection[Slice: Prognoz.Platform.Interop.Express.IEaxDataAreaSlice]:

Prognoz.Platform.Interop.Dimensions.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.

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

Fore.NET Example

The requirements and result of the Fore.NET Example execution match with those in the Fore Example.

Imports Prognoz.Platform.Interop.Dimensions;
Imports Prognoz.Platform.Interop.Express;

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    Eax: IEaxAnalyzer;
    DA: IEaxDataArea;
    SelSet: IDimSelectionSet;
    i: Integer;
Begin
    MB := Params.Metabase;
    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
        System.Diagnostics.Debug.WriteLine
        ("Elements added in selection - " + SelSet.Item[i].ToString(""", "False));
    End For;
End Sub;

See also:

IEaxDataAreaHierarchies