FindDimensionEntries(Dimension: IDimensionModel): ICalculatedCubeIterator;
Dimension. The dictionary that should be found in calculated cube formulas.
The FindDimensionEntries method searches for the occurrences of the specified dictionary in calculated cube formulas.
In case of successful search the method returns iterator by formulas satisfying search conditions.
Executing the example requires that the repository contains a calculated cube with Calc_Cube identifier and a dictionary with the Dim_1 identifier.
Sub UserProc;
Var
Mb: IMetabase;
CubeInst: ICalculatedCubeInstance;
Dim: IDimensionModel;
Iter: ICalculatedCubeIterator;
Begin
Mb := MetabaseClass.Active;
CubeInst := Mb.ItemById("Calc_Cube").Open(Null) As ICalculatedCubeInstance;
Dim := Mb.ItemById("Dim_1").Bind As IDimensionModel;
Iter := CubeInst.FindDimensionEntries(Dim);
While Not Iter.Eof Do
Debug.WriteLine(Iter.Coord.AsString);
Iter.Next;
End While;
End Sub UserProc;
After executing the example, occurrence of the specified dictionary in calculated cube formulas is searched. In case of successful search symbolic signs of the calculated cube coordinates, which formulas contain links to the required dictionary, are displayed.
See also: