IMetaDataMembers.FindByTagBasis

Syntax

FindByTagBasis(tTag: MetaAttributeTag; Basis: Integer): IMetaDataMember;

Parameters

tTag - target attribute kind.

Basis - basis, by which search is executed.

Description

The FindByTagBasis method searches a record in the collection by an attribute kind and a basis.

Example

Executing the example requires a time series database with the OBJ_FC identifier. The current database has an indicator with the 90100 key.

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

Sub UserProc;
Var
    MB: IMetabase;
    RubrIn: IRubricatorInstance;
    FactD: IRubricatorFactData;
    RubRev: IRubricatorRevision;
    Members: IMetaDataMembers;
Begin
    MB := MetabaseClass.Active;
    RubrIn := MB.ItemById("OBJ_FC").Open(NullAs IRubricatorInstance;
    RubRev := RubrIn.OpenRevision("Test_Revision");
    FactD := RubrIn.GetFactData(90100, DictionaryGetDataOptions.EditExisting);
    If FactD.IsEdited Then
        Members := FactD.Record.Members;
        Members.FindByTagBasis(MetaAttributeTag.Unit, -1).Value := 3530;
        FactD.SaveAndRevise(SaveRubricatorDataOptions.NoRevise);
    End If;
End Sub UserProc;

After executing the example a value of the indicator attribute with the 90100 key is changed. An attribute that determines measurement units is obtained by kind and basis.

See also:

IMetaDataMembers