ICubeClass.SelectionSetup

Syntax

SelectionSetup(Selection: IDimSelection): ICubeExecuteDimSetup;

Parameters

Selection. Selection of the dimension, which parameters should be obtained.

Description

The SelectionSetup property returns dimension parameters based on its selection.

Example

Executing the example requires a form, a button with the Button1 identifier on the form, the TabSheetBox component and the UiErAnalyzer component named UiErAnalyzer1 that is used as a data source for TabSheetBox. A working area of the time series database must be loaded to UiErAnalyzer1.

Click the button to execute the example.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Eax: IEaxAnalyzer;
    Sels: IDimSelectionSet;
    Sel: IDimSelection;
    DimSetup: ICubeExecuteDimSetup;
Begin
    Eax := UiErAnalyzer1.ErAnalyzer;
    Sels := Eax.Pivot.Selection;
    Sel := Sels.Item(0);
    DimSetup := CubeClass.SelectionSetup(Sel);
    Debug.WriteLine("Identifier: " + DimSetup.Id);
    Select Case DimSetup.Tag
        Case CubeDimensionTag.Calendar: Debug.WriteLine("Calendar dimension");
        Case CubeDimensionTag.Facts: Debug.WriteLine("Fact dimension");
        Case CubeDimensionTag.None: Debug.WriteLine("Dimension type is undefined");
        Case CubeDimensionTag.Units: Debug.WriteLine("Measurement units");
    End Select;
End Sub Button1OnClick;

After executing the example the name and the type of the first dimension, on the basis of which working area data is formed, is displayed in the console window.

See also:

ICubeClass