IMetaAttributeNamings.GetRecordName

Syntax

GetRecordName(Record: IMetaDataMemberRecord; Dimentions: Array): String;

Parameters

Record. Time series database element.

Dimentions. Array of dimensions.

Description

The GetRecordName method returns the name of the time series database element.

Example

Executing the example requires that the repository contains a time series database with the OBJ_FC identifier and an MDM repository with the RDS_REPO identifier. The MDM repository must contain a dictionary with the DICT_CTR identifier. The time series database must include an attribute that refers to the current dictionary.

Sub Main;

Var

Dimensions: Array Of Variant;

MetaDic, DicEdit: IMetaDictionary;

Nams: IMetaAttributeNamings;

Rubricator: IRubricator;

Mb: IMetabase;

Di: integer;

s: String;

Loo: IRubricatorFactsLookup;

Inst: IRubricatorInstance;

RDS: IMetabaseObjectDescriptor;

Dim: IDimInstance;

RubFD: IRubricatorFactData;

k: Integer;

Begin

Mb := MetabaseClass.Active;

Rubricator := Mb.ItemById("OBJ_FC").Bind As IRubricator;

MetaDic := Rubricator.Facts;

DicEdit := (MetaDic As IMetabaseObject).Edit As IMetaDictionary;

Inst := ((Rubricator As IMetabaseObject).Open(Null)) As IRubricatorInstance;

MetaDic := Rubricator.Facts;

Dimensions := New Variant[1];

RDS := Mb.ItemById("RDS_REPO");

Dim := MB.ItemByIdNamespace("DICT_CTR", RDS.Key).Open(Null) As IDimInstance;

Dimensions[0] := Dim;

Loo := Inst.CreateFactsLookup;

Loo.WhereRevisionBetween(15, 17);

Nams := DicEdit.AttributeNamings;

For Di := 0 To Loo.GetFactors.Count - 1 Do

k := Loo.GetFactors.Item(Di).Key;

RubFD := Inst.GetFactData(k);

s := Nams.GetRecordName(RubFD.Record, Dimensions);

Debug.WriteLine(s);

End For;

End Sub Main;

After executing the example, element names, changed between 15th and 17th revisions, from time series dictionary are displayed in the console window.

See also:

IMetaAttributeNamings