DimItem(Index: Integer): IDimInstance;
Index - dimension index.
The DimItem property returns data of the dimension, which index is passed by the Index parameter.
Executing the example requires that the repository contains an express report with the EXPRESS_REPORT identifier.
Sub Main;
Var
MB: IMetabase;
Expr: IEaxAnalyzer;
Pivot: IPivot;
DimInst: IDimInstance;
i, j: Integer;
Begin
MB := MetabaseClass.Active;
Expr := MB.ItemById("EXPRESS_REPORT").Bind As IEaxAnalyzer;
Pivot := Expr.Pivot;
For i := 0 To Pivot.DimCount - 1 Do
DimInst := Pivot.DimItem(i);
Debug.WriteLine(DimInst.Name);
Debug.Indent;
For j := 0 To DimInst.Elements.Count - 1 Do
Debug.WriteLine(DimInst.Elements.Name(j));
End For;
Debug.Unindent;
End For;
End Sub Main;
After executing the example a name and all the elements of dimensions, that are in express report data sources, are displayed in the development environment console.
See also: