WhereIsDeleted: TriState;
The WhereIsDeleted property determines whether deleted records are used in search.
Available values:
TriState.OnOption. Search is executed only among the deleted records.
TriState.OffOption. Search is executed only in the non-deleted records.
TriState.Undefined. Search is executed in all records.
Executing the example requires that the repository contains a time series database with the OBJ_RUBRICATOR identifier.
Sub UserProc;
Var
MB: IMetabase;
RubDesc: IMetabaseObjectDescriptor;
Factors: Array Of Integer;
RubrIn: IRubricatorInstance;
FactsLookup: IRubricatorFactsLookup;
i: Integer;
Begin
MB := MetabaseClass.Active;
RubDesc := MB.ItemById("OBJ_RUBRICATOR");
RubrIn := RubDesc.Open(Null) As IRubricatorInstance;
FactsLookup := RubrIn.CreateFactsLookup;
FactsLookup.WhereIsDeleted := TriState.OnOption;
Factors := FactsLookup.LookupFactors;
For i := 0 To Factors.Length - 1 Do
Debug.WriteLine(Factors[i]);
End For;
End Sub UserProc;
After executing the example keys of deleted indicators are displayed in the console window.
See also: