IEaxDataAreaSlice.Selection

Fore Syntax

Selection: IDimSelectionSet;

Fore.NET Syntax

Selection: Prognoz.Platform.Interop.Dimensions.IDimSelectionSet;

Description

The Selection property returns selection of analytical data area slice.

Comments

The property returns selections of all dimensions of all analytical area slice data sources.

Fore Example

Executing the example requires that the repository contains an express report with the EXPRESS identifier containing table.

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

Sub UserProc;
Var
    MB: IMetabase;
    Express: IEaxAnalyzer;
    Slice: IEaxDataAreaSlice;
Begin
    // Get repository
    MB := MetabaseClass.Active;
    // Get express report
    Express := MB.ItemById("EXPRESS").Bind As IEaxAnalyzer;
    // Get data slice
    Slice := Express.DataArea.Slices.Item(0);
    // Display to the console selection elements of specified dimension
    Debug.WriteLine
    ("Elements in selection of specified dimension  - " + Slice.Selection.Item(3).ToString(""", "False));
End Sub UserProc;

After executing the example the console displays selection elements of specified dimension.

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;
    Express: IEaxAnalyzer;
    Slice: IEaxDataAreaSlice;
Begin
    // Get repository
    MB := Params.Metabase;
    // Get express report
    Express := MB.ItemById["EXPRESS"].Bind() As IEaxAnalyzer;
    // Get data slice
    Slice := Express.DataArea.Slices.Item[0];
    // Display to the console selection elements of specified dimension
    System.Diagnostics.Debug.WriteLine
    ("Elements in selection of specified dimension  - " + Slice.Selection.Item[3].ToString(""", "False));
End Sub;

See also:

IEaxDataAreaSlice