IEaxDrillResult.DataSource

Syntax

DataSource: IEaxDataSource;

Description

The DataSource property returns data source, from which cell data is obtained.

Comments

The property is used if the express report contains two or more data sources. If express report is based on one source, this property returns the Null. In this case the data source can be obtained in the IPivot.DataSource property.

Example

Executing the example requires an express report with the EXPRESS_REPORT identifier containing more than one data source.

Sub Main;

Var

MB: IMetabase;

Expr: IEaxAnalyzer;

CellRes: IEaxDrillCellResult;

s: String;

Begin

MB := MetabaseClass.Active;

Expr := MB.ItemById("EXPRESS_REPORT").Bind As IEaxAnalyzer;

CellRes := Expr.DrillCell(85, 2);

If Expr.DataSources.Count <> 0 Then

s := CellRes.DataSource.VirtualCubeSource.Cube.Name;

End If;

End Sub Main;

After executing the example the s variable will contain the name of the cube used as a data source for the express report cell C85.

See also:

IEaxDrillResult