Stub: IVariableStub;
Stub: Prognoz.Platform.Interop.Cubes.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 interface.
Executing the example requires that the repository contains an express report with the EXPRESS identifier. Report data source is a cube. 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.
The requirements and result of the Fore.NET example execution match with those in the Fore example.
Imports Prognoz.Platform.Interop.Cubes;
Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Pivot;
…
Public Shared Sub Main(Params: StartParams);
Var
MB: IMetabase;
Express: IEaxAnalyzer;
Pivot: IPivot;
Stub: IVariableStub;
Begin
// Get repository
MB := Params.Metabase;
// 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;
System.Diagnostics.Debug.WriteLine("Data source name - " + Stub.Name);
End Sub;
See also: