Stub: IVariableStub;
The Stub property returns table data source as an abstract source.
Abstract data sources can be, for example, time series database, cube or modeling variable.
To get abstract data source, cast the required object to the IVariableStub.
Executing the example requires that the repository contains an express report with the EXPRESS identifier. Report data source is a cube. The report must contain a table.
Add links to the Cubes, Express, Metabase, Pivot system assemblies.
Sub USerProc;
Var
MB: IMetabase;
Express: IEaxAnalyzer;
Pivot: IPivot;
Stub: IVariableStub;
Begin
// Get repository
MB := MetabaseClass.Active;
// Get express report
Express := MB.ItemById("EXPRESS").Bind As IEaxAnalyzer;
// Get display settings of report data table
Pivot := Express.Pivot;
// Get abstract data source and output its name to console window
Stub := Pivot.Stub As IVariableStub;
Debug.WriteLine("Data source name - " + Stub.Name);
End Sub USerProc;
After executing the example the console window displays name of abstract data source.
See also: