IRubricatorFactsLookup.SetTextCriteria

Syntax

SetTextCriteria(Criteria: IDimTextCriteria; [SelectOnly: IDimSelectionSet = Null]): IDimSelectionSet;

Parameters

Criteria. Filtering conditions.

SelectOnly. Dictionary selection, by which search is executed. Optional parameter. By default, search is executed by all dictionaries that contain TSDB data.

Description

The SetTextCriteria method sets filtering by text.

Example

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

Sub UserProc;
Var
    MB: IMetabase;
    RubDesc: IMetabaseObjectDescriptor;
    RubrIn: IRubricatorInstance;
    FactsLookup: IRubricatorFactsLookup;
    Criteria: IDimTextCriteria;
Begin
    MB := MetabaseClass.Active;
    RubDesc := MB.ItemById("OBJ_RUBRICATOR");
    RubrIn := RubDesc.Open(NullAs IRubricatorInstance;
    FactsLookup := RubrIn.CreateFactsLookup;
    Criteria := New DimTextCriteria.Create;
    Criteria.CriteriaOptions := TextCriteriaOptions.LikeText;
    Criteria.Text := "Afghanistan";
    FactsLookup.SetTextCriteria(Criteria);
End Sub UserProc;

After executing the example the filtering condition is set.

See also:

IRubricatorFactsLookup