Stub: IVariableStub;
Stub: Prognoz.Platform.Interop.Cubes.IVariableStub;
The Stub property returns slice data source as an abstract source.
Abstract data source could be, for example, time series database, cube or modeling variable.
Executing the example requires that the repository contains an express report with the EXPRESS identifier containing table.
Add links to the Cubes, 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 to the console abstract source name
Debug.WriteLine("Abstract data source name - " + Slice.Stub.Name);
End Sub UserProc;
After executing the example, the console displays abstract data source name.
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;
…
Public Shared Sub Main(Params: StartParams);
Var
MB: IMetabase;
Express: IEaxAnalyzer;
Slice: IEaxDataAreaSlice;
Begin
// Get repository
MB := Params.Metabase;
// Get express report
Express := MB.ItemById["EXPRESS"].Bind() As IEaxAnalyzer;
// Get data slice
Slice := Express.DataArea.Slices.Item[0];
// Display to the console abstract source name
System.Diagnostics.Debug.WriteLine("Abstract data source name - " + Slice.Stub.Name);
End Sub;
See also: