IMetaDataMembers.FindById

Syntax

FindById(Id: String): IMetaDataMember;

Parameters

Id - attribute identifier.

Description

The FindById method searches a record in the collection by an attribute identifier.

Example

Executing the example requires a time series database with the OBJ_FC identifier. This database includes an indicator with the 94000 key.

Add links to the Metabase, Rds, Cubes system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    RubrIn: IRubricatorInstance;
    FactD: IRubricatorFactData;
    RubRev: IRubricatorRevision;
    Members: IMetaDataMembers;
    MemberRecord: IMetaDataMemberRecord;
Begin
    MB := MetabaseClass.Active;
    RubrIn := MB.ItemById("OBJ_FC").Open(NullAs IRubricatorInstance;
    RubRev := RubrIn.OpenRevision("Test_Revision");
    FactD := RubrIn.GetFactData(94000, DictionaryGetDataOptions.EditExisting);
    MemberRecord := FactD.Record;
    Members := MemberRecord.Members;
    Debug.WriteLine(Members.FindById("REV").Value);
End Sub UserProc;

After executing the example a value of the REV (Revision) attribute is displayed in the console window for an indicator with the 94000 key.

See also:

IMetaDataMembers