Dimensions: ICubeModelDimensionsEx;
The Dimensions property returns the collection of mandatory dimensions for a time series database.
Executing the example requires a time series database with the NewCatalog identifier and a repository dictionary with the D_SEP identifier.
Sub Main;
Var
Mb: IMetabase;
Des: IMetabaseObjectDescriptor;
MObj: IMetabaseObject;
Rubr: IRubricator;
Begin
Mb := MetabaseClass.Active;
Des := MB.ItemById("NewCatalog");
MObj := Des.Edit;
Rubr := MObj As IRubricator;
Rubr.Dimensions.AddDimensionEx(Mb.ItemById("D_SEP").Bind As IDimensionModel);
MObj.Save;
End Sub Main;
After executing the example the dictionary with the D_SEP identifier is added to the list of mandatory dimensions of the time series database.
See also: