CubeSetup: ICubeExecuteSetup;
The CubeSetup property returns the collection of dimensions parameters on cube calculation.
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
EaxAn: IEaxAnalyzer;
Sels: IDimSelectionSet;
Sel: IDimSelection;
CubeExSet: ICubeExecuteSetup;
i: Integer;
DimSetup: ICubeExecuteDimSetup;
Begin
EaxAn := UiErAnalyzer1.ErAnalyzer;
Sels := EaxAn.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 not defined);
Case CubeDimensionTag.Units: Debug.WriteLine(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: