IRubricatorValidationsLookup.Lookup

Syntax

Lookup: IMetaDictionaryLookup;

Description

The Lookup property returns search condition.

Example

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

Sub UserProc;
Var
    MB: IMetabase;
    RubrInst: IRubricatorInstance;
    Loo: IRubricatorValidationsLookup;
    DictL: IMetaDictionaryLookup;
    ValiData: IValidationExecData;
Begin
    MB := MetabaseClass.Active;
    RubrInst := MB.ItemById("OBJ_RUBRICATOR").Open(NullAs IRubricatorInstance;
    Loo := RubrInst.CreateValidationsLookup;
    DictL := Loo.Lookup;
    DictL.WhereRevisionBetween(125);
    Loo.WhereValidation := 12229121;
    Debug.WriteLine(Loo.WhereValidation.ToString);
    ValiData := Loo.LookupData;
    If ValiData = Null Then
        Debug.WriteLine("Data is not found");
    End If;
End Sub UserProc;

After executing the example the ValiData variable stores an object that contains the found data that satisfies the following conditions: value of the revision key is in the interval between 1 and 25, and the validation key equals to 12229121.

See also:

IRubricatorValidationsLookup