IRubricatorObservationsLookup.WhereScenario

Syntax

WhereScenario: Integer;

Description

The WhereScenario property determines scenario of required data.

Example

Executing the example requires that the repository contains a time series database with the OBJ_RUBRICATOR identifier.

Sub Main;

Var

MB: IMetabase;

RubDesc: IMetabaseObjectDescriptor;

RubrIn: IRubricatorInstance;

FactsLookup: IRubricatorFactsLookup;

MetaDLookup: IMetaDictionaryLookup;

Cond: IOrmCondition;

FD: IRubricatorFactData;

ObsLook: IRubricatorObservationsLookup;

ObsVal: 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;

ObsLook := RubrIn.CreateObservationsLookup(FD);

ObsLook.WhereCalendarPoint := DateTime.Parse("01.01.2002 00:00:00");

ObsLook.WhereCalendarLevel := DimCalendarLevel.Year;

ObsLook.WhereScenario := -1;

ObsVal := ObsLook.LookupValues;

End Sub Main;

After executing the example the ObsVal variable stores an object that contains data of found users.

See also:

IRubricatorObservationsLookup