IRubricator.Measures

Syntax

Measures: IRdsDictionary;

Description

The Measures property determines the MDM repository dictionary that contains information about measures.

Example

Executing the example requires a time series database with the NewCatalog identifier.

Sub Main;

Var

MB: IMetabase;

Rubr: IRubricator;

Measures: IRdsDictionary;

MeasuresInst: IRdsDictionaryInstance;

Att: IRdsAttributes;

Elem: IRdsDictionaryElements;

Data: IRdsDictionaryElementData;

Begin

Mb := MetabaseClass.Active;

Rubr := MB.ItemById("NewCatalog").Bind As IRubricator;

Measures := Rubr.Measures;

MeasuresInst := Measures.Open(Null);

Att := Measures.Attributes;

Elem := MeasuresInst.Elements;

Data := Elem.CreateElementData;

Data.Attribute(Att.Name.Key) := Metre;

Elem.Insert(Elem.Item(0).Key, Data);

End Sub Main;

After executing the example a new element is added to the dictionary that contains information on the measures used in the time series database.

See also:

IRubricator