Show contents 

Express > Express Assembly Interfaces > IEaxDataAreaSlice > IEaxDataAreaSlice.Type

IEaxDataAreaSlice.Type

Syntax

Type: EaxDataAreaSliceType;

Description

The Type property returns type of analytical data area slice.

Comments

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

Example

Executing the example requires that the repository contains an express report with the EXPRESS identifier containing a 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 slice type in the console window
    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 the specified data slice type.

See also:

IEaxDataAreaSlice