IEaxDataAreaSlice.Type

Syntax

Type: 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.

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.

See also:

IEaxDataAreaSlice