IEaxDataAreaSlice.Type

Fore Syntax

Type: EaxDataAreaSliceType;

Fore.NET Syntax

Type: Prognoz.Platform.Interop.Express.EaxDataAreaSliceType;

Description

The Type property returns type of analytical data area slice.

Comments

To add in the required type of data slice analytical area, use IEaxDataAreaSlices.Add.

Fore Example

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

Add link to the 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 slice type
        Select Case Slice.Type As Integer
            Case 1: Debug.WriteLine("Slice type - Pivot");
            Case 2: Debug.WriteLine("Slice type - Laner");
            Case 3: Debug.WriteLine("Slice type - Relational");
    End Select;
End Sub UserProc;

After executing the example the console displays type of the specified data slice.

Fore.NET Example

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

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 slice type
        Select Case Slice.Type As integer
            Case 1: System.Diagnostics.Debug.WriteLine("Slice type - Pivot");
            Case 2: System.Diagnostics.Debug.WriteLine("Slice type - Laner");
            Case 3: System.Diagnostics.Debug.WriteLine("Slice type - Relational");
    End Select;
End Sub;

See also:

IEaxDataAreaSlice