ICubeClass.SelectionSetup

Syntax

SelectionSetup(Selection: IDimSelection): ICubeExecuteDimSetup;

Parameters

Selection - dimension selection, which parameters must 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, which is used as a data source for TabSheetBox. 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

EaxAn: IEaxAnalyzer;

Sels: IDimSelectionSet;

Sel: IDimSelection;

DimSetup: ICubeExecuteDimSetup;

Begin

EaxAn := UiErAnalyzer1.ErAnalyzer;

Sels := EaxAn.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 not defined");

Case CubeDimensionTag.Units: Debug.WriteLine("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