IMetaDictionaryLookup.WhereIsDeleted

Syntax

WhereIsDeleted: TriState;

Description

The WhereIsDeleted property determines whether deleted records are used in search:

Example

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

Add links to the Metabase, Cube, Rds system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    RubDesc: IMetabaseObjectDescriptor;
    RubrIn: IRubricatorInstance;
    DictInst: IMetaDictionaryInstance;
    MetaDLookup: IMetaDictionaryLookup;
    Atts: IMetaAttributes;
    DeleteMark: String;
    i: Integer;
    Res: Array Of Integer;
Begin
    MB := MetabaseClass.Active;
    RubDesc := MB.ItemById("OBJ_FC");
    RubrIn := RubDesc.Open(NullAs IRubricatorInstance;
    DictInst := RubrIn.Facts;
    MetaDLookup := DictInst.CreateLookup("");
    Atts := DictInst.Dictionary.Attributes;
    DeleteMark := Atts.FindByTag(MetaAttributeTag.DeleteMark).Id;
    MetaDLookup.DeleteMarkAttribute := DeleteMark;
    MetaDLookup.WhereIsDeleted := TriState.OnOption;
    i := MetaDLookup.LookupKeys("FACTOR").Length;
    Res := New Integer[i];
    Res := MetaDLookup.LookupKeys("FACTOR");
    For i := 0 To Res.Length - 1 Do
        Debug.WriteLine(Res[i].ToString);
    End For;
End Sub Userproc;

After executing the example the console window displays keys of deleted indicators.

See also:

IMetaDictionaryLookup