OpenDimensions(Data: Variant);
Data - dimension.
The OpenDimensions method opens a dimension.
Executing the example requires a time series database with the OBJ_FC identifier.
Sub Main;
Var
Mb: Imetabase;
Rubr: IMetabaseObject;
RubrInst: IRubricatorInstance;
Facts: IMetaDictionaryInstance;
Hierarchy: IMetaHierarchy;
HLevels: IMetaHierarchyLevels;
Begin
Mb := MetabaseClass.Active;
Rubr := MB.ItemById("OBJ_FC").Bind;
RubrInst := Rubr.Open(Null) As IRubricatorInstance;
Facts := RubrInst.GetDictionary(RubricatorDictionary.Facts);
Hierarchy := Facts.Dictionary.DefaultHierarchy;
HLevels := Hierarchy.Levels;
HLevels.OpenDimensions(Facts);
End Sub Main;
After executing the example a dimension of factors is opened.
See also: