LookupData([Options: DictionaryGetDataOptions = 0]): IRubricatorFactData;
Options. Parameter for getting data. Optional parameter. Default value - DictionaryGetDataOptions.None - getting data for reading.
The LookupData method gets factor data.
Executing the example requires that the repository contains a time series database with the OBJ_RUBRICATOR identifier. A factor with the 1 key must be available in the time series database.
Sub UserProc;
Var
MB: IMetabase;
RubDesc: IMetabaseObjectDescriptor;
RubrIn: IRubricatorInstance;
FactsLookup: IRubricatorFactsLookup;
MetaDLookup: IMetaDictionaryLookup;
Cond: IOrmCondition;
FD: IRubricatorFactData;
FactorObVal: IFactorObservationValues;
Begin
MB := MetabaseClass.Active;
RubDesc := MB.ItemById("OBJ_RUBRICATOR");
RubrIn := RubDesc.Open(Null) As IRubricatorInstance;
FactsLookup := RubrIn.CreateFactsLookup;
MetaDLookup := FactsLookup.Lookup;
Cond := MetaDLookup.Where.Add;
Cond.AttributeName := FACTOR;
Cond.Value := 1;
FD := FactsLookup.LookupData;
FactorObVal := RubrIn.GetObservationValues(FD, DateTime.Parse("01.01.2002 00:00:00"));
End Sub UserProc;
After executing the example the FactorObVal variable stores an object containing data of factor with the 1 key on January, 1st, 2002.
See also: