Views: IEaxDataAreaViews;
Views: Prognoz.Platform.Interop.Express.IEaxDataAreaViews;
The Views property returns collection of analytical data area slice views.
To get properties of analytical data area slice, use IEaxDataAreaSlice.Properties.
Executing the example requires that the repository contains an 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 number of slice views
Debug.WriteLine("Number of views = " + Slice.Views.Count.ToString);
End Sub UserProc;
After executing the example the console displays number of analytical data area slice views.
The requirements and result of the Fore.NET Example execution match with those in the Fore Example.
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 number of slice views
System.Diagnostics.Debug.WriteLine("Number of views = " + Slice.Views.Count.ToString());
End Sub;
See also: