Facts: IMetaDictionary;
The Facts property determines the MDM repository dictionary that contains information about indicators of a time series database.
Executing the example requires that the repository contains a time series database with the NewCatalog identifier.
Sub UserProc;
Var
MB: IMetabase;
Rubr: IRubricator;
Facts: IMetabaseObject;
Att: IMetaAttribute;
Begin
MB := MetabaseClass.Active;
Rubr := MB.ItemById("OBJ_RUBRICATOR").Bind As IRubricator;
Facts := (Rubr.Facts As IMetabaseObject).Edit;
Att := (Facts As IMetaDictionary).Attributes.Add;
Att.DataType := DbDataType.Integer;
Att.Id := "NewAttribute";
Att.Name := "New additional attribute";
Facts.Save;
End Sub UserProc;
After executing the example an attribute with the specified parameters is added to the dictionary that contains information about database indicators.
See also: