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;
HLev: IMetaHierarchyLevel;
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;
HLev := HLevels.Item(0);
HLev.OpenDimensions(Facts);
End Sub Main;
After executing the example a dimension is opened for the first level of time series hierarchy.
See also: