WhereIsDeleted: TriState;
The WhereIsDeleted property determines whether deleted records are used in search:
TriState.OnOption - search is executed only among the deleted records.
TriState.OffOption - search is executed only among non-deleted records.
TriState.Undefined - search is executed among all records.
Executing the example requires that the repository contains a time series database with the OBJ_RUBRICATOR identifier.
Sub Main;
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 Main;
After executing the example keys of deleted factors are displayed in the console window.
See also: