IStandardCubeDataset.Module

Fore Syntax

Module: IMetabaseObjectDescriptor;

Fore.NET Syntax

Module: Prognoz.Platform.Interop.Metabase.IMetabaseObjectDescriptor;

Description

The Module property returns description of the unit that implements a class for handling data extraction query generation.

Comments

The unit and class for handling data extraction query generation are set by means of the SetCallback method.

Fore Example

Executing the example requires that the repository contains a standard cube with the STD_CUBE identifier. Add links to the Cubes and Metabase system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Cube: IStandardCube;
    CubeDataset: IStandardCubeDataset;
Begin
    MB := MetabaseClass.Active;
    Cube := MB.ItemById(
"STD_CUBE").Edit As IStandardCube;
    CubeDataset := Cube.Destinations.Item(
0).Datasets.Item(0);
    
If Not IsNull(CubeDataset.Module) Then
        CubeDataset.SetCallback(
Null"");
    
End If;
    (Cube 
As IMetabaseObject).Save;
End Sub UserProc;

On executing the example, if the unit and the class for handling data extraction query generation are set, it will be reset.

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;
Imports Prognoz.Platform.Interop.Metabase;

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    Cube: IStandardCube;
    CubeDataset: IStandardCubeDataset;
Begin
    MB := Params.Metabase;
    Cube := MB.ItemById[
"STD_CUBE"].Edit() As IStandardCube;
    CubeDataset := Cube.Destinations.Item[
0].Datasets.Item[0];
    
If CubeDataset.Module <> Null Then
        CubeDataset.SetCallback(
Null"");
    
End If;
    (Cube 
As IMetabaseObject).Save();
End Sub;

See also:

IStandardCubeDataset