Type: DimCompoundDimensionType;
The Type property returns type of composite dimension.
The property is read-only.
Executing the example requires that repository contains virtual cube with the VIRT_CUBE identifier.
Add links to the Cubes, Dimensions, Metabase system assemblies.
Sub UserProc;
Var
MB: IMetabase;
Cube: IVirtualCube;
CDim: ICompoundDimension;
Params: IMetabaseObjectParamValues;
CDimInst: ICompoundDimensionInstance;
Begin
// Get repository
MB := MetabaseClass.Active;
// Get virtual cube
Cube := MB.ItemById("VIRT_CUBE").Edit As IVirtualCube;
// Get data of composite dimension
CDim := Cube.FactDimension As ICompoundDimension;
Params := (CDim As IMetabaseObject).Params.CreateEmptyValues;
CDimInst := (CDim As IMetabaseObject).Open(Params) As ICompoundDimensionInstance;
Select Case (CDimInst.Type As Integer)
Case 1: Debug.WriteLine("Type of composite dimension - regular");
Case 2: Debug.WriteLine("Type of composite dimension - metahierarchy");
End Select;
End Sub UserProc;
After executing the example the console displays type of virtual cube composite dimension.
See also: