IRubricatorDictionaryLookup.Lookup

Syntax

Lookup: IMetaDictionaryLookup;

Description

The Lookup property returns a search condition.

Example

Executing the example requires that the repository contains a time series database with the TSDB identifier. This database must have a time series attribute with the COUNTRY identifier.

Add links to the Cubes, Metabase, Orm, Rds system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    RubrInst: IRubricatorInstance;
    FactsLookup: IRubricatorFactsLookup;
    MetaDLookup: IMetaDictionaryLookup;
    Cond: IOrmCondition;
    Key: Array Of Integer;
    i: Integer;
Begin
    MB := MetabaseClass.Active;
    RubrInst := MB.ItemById("TSDB").Open(NullAs IRubricatorInstance;
    FactsLookup := RubrInst.CreateFactsLookup;
    MetaDLookup := FactsLookup.Lookup;
    Cond := MetaDLookup.Where.Add;
    Cond.AttributeName := "COUNTRY";
    Cond.Value := 512;
    FactsLookup.Open(DictionaryCursorOptions.None);
    Key := FactsLookup.LookupFactors;
    For Each i In Key Do
        Debug.WriteLine(i);
    End For;
End Sub UserProc;

On executing the example time series are searched by the following condition: value of the COUNTRY attribute is equal to 512. The keys of the found time series are displayed to the development environment console.

See also:

IRubricatorDictionaryLookup