SetMemberTuple(Value: IMetaMember);
Value. Hierarchy element.
The SetMemberTuple method determines attribute values of indicator from element of hierarchy.
Executing the example requires a form, a button on the form, the MetaAttributesTreeList component named MetaAttributesTreeList1. The MetaAttributesBreadcrumb component named MetaAttributesBreadcrumb1 must be connected to this component. MetaAttributesBreadcrumb1 must be set up to work with the time series database that contains an indicator with the 155813 key.
Click the button to execute the example. Before executing the example select one indicator in the MetaAttributesTreeList1 component.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
RubrIn: IRubricatorInstance;
RubRev: IRubricatorRevision;
FactD: IRubricatorFactData;
Memb: IMetaMember;
Begin
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 indicator are set for the indicator with the 155813 key.
See also: