DataSourceKey: Integer;
DataSourceKey: integer;
The DataSourceKey property returns key of data source of analytical data area.
To get data source of analytical data area slice, use IEaxDataAreaSlice.DataSource.
Executing the example requires that the repository contains express report with the EXPRESS identifier containing table.
Add links to the 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 key of data slice source
Debug.WriteLine("Key of data source in repository - " + Slice.DataSourceKey.ToString);
End Sub UserProc;
After executing the example the console displays key of slice data source.
The requirements and result of the Fore.NET Example execution match with those in the Fore Example.
Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Metabase;
…
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 key of data slice source
System.Diagnostics.Debug.WriteLine
("Data source key in repository - " + Slice.DataSourceKey.ToString());
End Sub;
See also: