Show contents 

Express > Express Assembly Interfaces > IEaxDataAreaSlice > IEaxDataAreaSlice.DataSourceKey

IEaxDataAreaSlice.DataSourceKey

Syntax

DataSourceKey: Integer;

Description

The DataSourceKey property returns key of data source of analytical data area.

Comments

To get data source of analytical data area slice, use IEaxDataAreaSlice.DataSource.

Example

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

Add links 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 data slice data source key in the console window
    Debug.WriteLine("Repository data source key - " + Slice.DataSourceKey.ToString);
End Sub UserProc;

After executing the example the console displays slice data source key.

See also:

IEaxDataAreaSlice