GetDataO(Element: Integer; [Options: DictionaryGetDataOptions = 0]): IMetaDictionaryData;
Element - dictionary element key.
Options - parameter of receiving data. Optional parameter. Default value: DictionaryGetDataOptions.None - get data to read.
The GetDataO method returns data of time series database for a specified element with specified parameters.
Executing the example requires that the repository contains a time series database with the OBJ_FC identifier. Rules must be specified for time series dictionary of this time series database.
Add links to the Cubes, Metabase, Rds system assemblies.
Sub UserProc;
Var
Mb: Imetabase;
RubD: IMetabaseObjectDescriptor;
RubrIn: IRubricatorInstance;
ElKey: Integer;
DictInst: IMetaDictionaryInstance;
MDD: IMetaDictionaryData;
Rule: IMetaDataRule;
Begin
Mb := MetabaseClass.Active;
RubD := Mb.ItemById("OBJ_FC");
RubrIn := RubD.Open(Null) As IRubricatorInstance;
DictInst := RubrIn.Facts;
MDD := DictInst.GetDataO(0, DictionaryGetDataOptions.None);
If Not MDD.EvaluateRules(Rule) Then
Debug.WriteLine(Rule.Name);
End If;
End Sub UserProc;
After executing the example, indicator data is obtained for reading, and rules of indicators dictionary are checked. If any rule is not executed, its name is displayed in console window.
See also: