IExportRequestParams.ExportMode

Fore Syntax

ExportMode: CubeLoadClearMode;

Fore.NET Syntax

ExportMode: Prognoz.Platform.Interop.Cubes.CubeLoadClearMode;

Description

The ExportMode property determines a time series export mode.

Comments

If time series export mode is set, it is affected by value of the ExportMode property. For details see description of the IExportRequestParams.AutoPeriod property.

Fore Example

Executing the example requires that the repository contains a time series database with the TSDB identifier containing an export object with the OBJ_EXPORTREQUEST identifier.

Add links to the Cubes and Metabase system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    RubKey: Integer;
    Obj: IMetabaseObject;
    ExportRequestDef: IExportRequestDefinition;
    Params: IExportRequestParams;
Begin
    // Get current repository
    MB := MetabaseClass.Active;
    // Get time series database key
    RubKey := MB.GetObjectKeyById("TSDB");
    // Get export object
    Obj := MB.ItemByIdNamespace("OBJ_EXPORTREQUEST", RubKey).Edit;
    // Get export parameters
    ExportRequestDef := Obj As IExportRequestDefinition;
    Params := ExportRequestDef.Exporter;
    // Specify that only point values are exported
    Params.ExportMode := CubeLoadClearMode.DataOnly;
    // Save changes
    Obj.Save;
End Sub UserProc;

After executing the example export mode is changed for the OBJ_EXPORTREQUEST export object.

Fore.NET Example

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

Imports Prognoz.Platform.Interop.Cubes;

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    RubKey: uinteger;
    Obj: IMetabaseObject;
    ExportRequestDef: IExportRequestDefinition;
    ParamsExp: IExportRequestParams;
Begin
    // Get current repository
    MB := Params.Metabase;
    // Get time series database key
    RubKey := MB.GetObjectKeyById("TSDB");
    // Get export object
    Obj := MB.ItemByIdNamespace["OBJ_EXPORTREQUEST", RubKey].Edit();
    // Get export parameters
    ExportRequestDef := Obj As IExportRequestDefinition;
    ParamsExp := ExportRequestDef.Exporter;
    // Specify that only point values are exported
    ParamsExp.ExportMode := CubeLoadClearMode.clcmDataOnly;
    // Save changes
    Obj.Save();
End Sub;

See also:

IExportRequestParams