SetTextCriteria(Criteria: IDimTextCriteria; [SelectOnly: IDimSelectionSet = Null]): IDimSelectionSet;
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.
The SetTextCriteria method sets filtering by text.
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(Null) As 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: