Express > Express Assembly Interfaces > IEaxDrillResult > IEaxDrillResult.DataSource
DataSource: IEaxDataSource;
The DataSource property returns data source, from which cell data is obtained.
The property is used if the express report contains two or more data sources. If the 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.
Executing the example requires an express report with the EXPRESS_REPORT identifier containing more than one data source.
Sub UserProc;
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 UserProc;
After executing the example the "s" variable contains name of the cube used as a data source for the express report table cell C85.
See also: