ICubeExecuteDimSetup.CubeSetup

Syntax

CubeSetup: ICubeExecuteSetup;

Description

The CubeSetup property returns the collection of dimensions parameters on cube calculation.

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. 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;
    CubeExSet: ICubeExecuteSetup;
    i: Integer;
    DimSetup: ICubeExecuteDimSetup;
Begin
    Eax := UiErAnalyzer1.ErAnalyzer;
    Sels := Eax.Pivot.Selection;
    Sel := Sels.Item(0);
    DimSetup := CubeClass.SelectionSetup(Sel);
    CubeExSet := DimSetup.CubeSetup;
    For i := 0 To CubeExSet.Count - 1 Do
        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 For;
End Sub Button1OnClick;

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

See also:

ICubeExecuteDimSetup