IMetaDictionaryLookup.WhereIsEmpty

Fore Syntax

WhereIsEmpty: TriState;

Fore.NET Syntax

WhereIsEmpty: Prognoz.Platform.Interop.ForeSystem.TriState;

Description

The WhereIsEmpty property determines whether empty records are used in search.

Comments

Indicator of factor emptiness depends on a value of time series attribute Empty. Identifier of this attribute is defined in the IMetaDictionaryLookup.EmptyMarkAttribute property.

Available values of WhereIsEmpty:

Fore Example

Executing the example requires a time series database with the FC_IS_EMPTY identifier. This database includes an indicator of empty factors. Add links to the Metabase, Cubes and Rds system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    RubDesc: IMetabaseObjectDescriptor;
    RubrIn: IRubricatorInstance;
    DictInst: IMetaDictionaryInstance;
    MetaDLookup: IMetaDictionaryLookup;
    i: Integer;
    Res: Array Of Integer;
Begin
    MB := MetabaseClass.Active;
    RubDesc := MB.ItemById("FC_IS_EMPTY");
    RubrIn := RubDesc.Open(NullAs IRubricatorInstance;
    DictInst := RubrIn.Facts;
    MetaDLookup := DictInst.CreateLookup("");
    MetaDLookup.EmptyMarkAttribute := "EMPT";
    MetaDLookup.WhereIsEmpty := 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 keys of time series, for which an indicator of emptiness is assigned, are displayed in the console window.

Fore.NET Example

Executing the example requires a time series database with the FC_IS_EMPTY identifier. This database has an indicator of empty factors.

Imports Prognoz.Platform.Interop.Cubes;
Imports Prognoz.Platform.Interop.ForeSystem;
Imports Prognoz.Platform.Interop.Rds;

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    RubDesc: IMetabaseObjectDescriptor;
    RubrIn: IRubricatorInstance;
    DictInst: IMetaDictionaryInstance;
    MetaDLookup: IMetaDictionaryLookup;
    i: Integer;
    Res: System.Array;
Begin
    MB := Params.Metabase;
    RubDesc := MB.ItemById["FC_IS_EMPTY"];
    RubrIn := RubDesc.Open(NullAs IRubricatorInstance;
    DictInst := RubrIn.Facts;
    MetaDLookup := DictInst.CreateLookup("");
    MetaDLookup.EmptyMarkAttribute := "EMPT";
    MetaDLookup.WhereIsEmpty := TriState.tsOnOption;
    i := MetaDLookup.LookupKeys("FACTOR").Length;
    Res := New Integer[i];
    Res := MetaDLookup.LookupKeys("FACTOR");
    For i := 0 To Res.Length - 1 Do
        System.Diagnostics.Debug.WriteLine(Res[i].ToString());
    End For;
End Sub;

After executing the example keys of time series, for which an indicator of emptiness is assigned, are displayed in the console window.

See also:

IMetaDictionaryLookup