WhereValidation: Integer;
The WhereValidation property determines a validation key.
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;
Loo: IRubricatorValidationsLookup;
DictL: IMetaDictionaryLookup;
ValiData: IValidationExecData;
Begin
MB := MetabaseClass.Active;
RubDesc := MB.ItemById("OBJ_RUBRICATOR");
RubrIn := RubDesc.Open(Null) As IRubricatorInstance;
Loo := RubrIn.CreateValidationsLookup;
DictL := Loo.Lookup;
DictL.WhereRevisionBetween(1, 25);
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 Main;
After executing the example the ValiData variable stores an object. This object contains the found data that satisfies the following conditions: the value of the revision key lies in an interval between 1 and 25, and the validation key equals to 12229121.
See also: