IEaxDataAreaSlice.Stub

Fore Syntax

Stub: IVariableStub;

Fore.NET Syntax

Stub: Prognoz.Platform.Interop.Cubes.IVariableStub;

Description

The Stub property returns slice data source as an abstract source.

Comments

Abstract data source could be, for example, time series database, cube or modeling variable.

Fore Example

Executing the example requires that the repository contains an express report with the EXPRESS identifier containing table.

Add links to the Cubes, Express, Metabase system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Express: IEaxAnalyzer;
    Slice: IEaxDataAreaSlice;
Begin
    // Get repository
    MB := MetabaseClass.Active;
    // Get express report
    Express := MB.ItemById("EXPRESS").Bind As IEaxAnalyzer;
    // Get data slice
    Slice := Express.DataArea.Slices.Item(0);
    // Display to the console abstract source name
    Debug.WriteLine("Abstract data source name - " + Slice.Stub.Name);
End Sub UserProc;

After executing the example, the console displays abstract data source name.

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.Express;

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    Express: IEaxAnalyzer;
    Slice: IEaxDataAreaSlice;
Begin
    // Get repository
    MB := Params.Metabase;
    // Get express report
    Express := MB.ItemById["EXPRESS"].Bind() As IEaxAnalyzer;
    // Get data slice
    Slice := Express.DataArea.Slices.Item[0];
    // Display to the console abstract source name
    System.Diagnostics.Debug.WriteLine("Abstract data source name - " + Slice.Stub.Name);
End Sub;

See also:

IEaxDataAreaSlice