GetMemberFactData(Member: IMetaMember; [Options: DictionaryGetDataOptions = 0]): IRubricatorFactData;
Member. Hierarchy element.
Options. Parameter of getting data.
The GetMemberFactData method returns data of indicators dictionary based on the specified hierarchy element.
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.
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
Memb: IMetaMember;
RubInst: IRubricatorInstance;
FactData: IRubricatorFactData;
Revi: IRubricatorRevision;
DataMembers: IMetaDataMembers;
DataMember: IMetaDataMember;
i: Integer;
Begin
Memb := MetaAttributesTreeList1.SelectedMembers.Current;
RubInst := MetaAttributesBreadcrumb1.Rubricator;
Revi := RubInst.OpenRevision("GetMemberFactData");
FactData := RubInst.GetMemberFactData(Memb, DictionaryGetDataOptions.Create);
Debug.WriteLine("FactorKey = " + FactData.FactorKey.ToString);
DataMembers := FactData.Record.Members;
For i := 0 To DataMembers.Count - 1 Do
DataMember := DataMembers.Item(i);
Debug.WriteLine(DataMember.Attribute.Id + " = " + DataMember.Value);
End For;
End Sub Button1OnClick;
After executing the example attributes values of the selected indicator are displayed in the console window.
See also: