IRubricatorFactData.SetMemberTuple

Syntax

SetMemberTuple(Value: IMetaMember);

Parameters

Value. Hierarchy element.

Description

The SetMemberTuple method determines attribute values of factor from element of hierarchy.

Example

Executing the example requires a form, a button on it, the MetaAttributesTreeList component with the MetaAttributesTreeList1 identifier. The MetaAttributesBreadcrumb component with the MetaAttributesBreadcrumb1 identifier must be connected to the component. MetaAttributesBreadcrumb1 must be set up to work with the time series database that contains a factor with the 155813 key.

Click the button to execute the example. Before executing the example select one factor in the MetaAttributesTreeList1 component.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Var

mb: IMetabase;

RubrIn: IRubricatorInstance;

RubRev: IRubricatorRevision;

FactD: IRubricatorFactData;

memb: IMetaMember;

Begin

mb := MetabaseClass.Active;

RubrIn := MetaAttributesBreadcrumb1.Rubricator;

RubRev := RubrIn.OpenRevision("Test_Revision");

FactD := RubrIn.GetFactData(155813, DictionaryGetDataOptions.EditExisting);

Memb := MetaAttributesTreeList1.SelectedMembers.Current;

FactD.SetMemberTuple(Memb);

FactD.SaveAndRevise(SaveRubricatorDataOptions.NoValidateRules);

End Sub Button1OnClick;

After executing the example attributes values of the selected factor are set for the factor with the 155813 key.

See also:

IRubricatorFactData