FindCubeEntries(Cube: ICubeModel): ICalculatedCubeIterator;
Cube - cube, which must be found in calculated cube formulas.
The FindCubeEntries method searches for the occurrences of the specified cube in calculated cube formulas. In case of successful search the method returns iterator by formulas, which fit search conditions.
Executing the example requires that the repository contains a calculated cube with the Calc_Cube identifier and a cube with the Cube_1 identifier.
Sub Main;
Var
Mb: IMetabase;
Cube: ICalculatedCubeInstance;
FindCube: ICubeModel;
Ite: ICalculatedCubeIterator;
Begin
Mb := MetabaseClass.Active;
Cube := Mb.ItemById("Calc_Cube").Open(Null) As ICalculatedCubeInstance;
FindCube := Mb.ItemById("Cube_1").Bind As ICubeModel;
Ite := Cube.FindCubeEntries(FindCube);
While Not Ite.Eof Do
Debug.WriteLine(Ite.Coord.AsString);
Ite.Next;
End While;
End Sub Main;
After executing the example occurrences of the specified cube in calculated cube formulas are searched. In case of successful search symbolic signs of the calculated cube coordinates, which formulas have a reference to the required cube, are displayed.
See also: