ICubeMetaLoader.LoadEmptyValues

Fore Syntax

LoadEmptyValues: Boolean;

Fore.NET Syntax

LoadEmptyValues: boolean;

Description

The LoadEmptyValues property determines whether to load empty values of time series.

Comments

Available values:

Fore Example

Executing the example requires that the repository contains a time series database with the TSBD identifier. The database contains an import object with the OBJ_IMPORT identifier that imports data from all sources except for time series databases.

Add links to the Cubes and Metabase system assemblies.

Sub UserProc;
Var
    Metabase: IMetabase;
    RubrDescr: IMetabaseObjectDescriptor;
    ImpRequestDef: IImportRequestDefinition;
    MetaLoader: ICubeMetaLoader;
Begin
    Metabase := MetabaseClass.Active;
    RubrDescr := Metabase.ItemById("TSDB");
    // Get import object
    ImpRequestDef := Metabase.ItemByIdNamespace("OBJ_IMPORT", RubrDescr.Key).Edit As IImportRequestDefinition;
    MetaLoader := ImpRequestDef.ProviderParams As ICubeMetaLoader;
    // Set up parameters empty value loading
    MetaLoader.LoadEmptyValues := True;
    (ImpRequestDef As IMetabaseObject).Save;
End Sub UserProc;

After executing the example import object parameters are changed: empty values are imported to the time series database.

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example.

Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Cubes;

Public Shared Sub Main(Params: StartParams);
Var
    Metabase: IMetabase;
    RubrDescr: IMetabaseObjectDescriptor;
    ImpRequestDef: IImportRequestDefinition;
    MetaLoader: ICubeMetaLoader;
Begin
    Metabase := Params.Metabase;
    RubrDescr := Metabase.ItemById["TSDB"];
    // Get import object
    ImpRequestDef := Metabase.ItemByIdNamespace["OBJ_IMPORT", RubrDescr.Key].Edit() As IImportRequestDefinition;
    MetaLoader := ImpRequestDef.ProviderParams As ICubeMetaLoader;
    // Set up parameters empty value loading
    MetaLoader.LoadEmptyValues := True;
    (ImpRequestDef As IMetabaseObject).Save();
End Sub;

See also:

ICubeMetaLoader