Dimension: IPrxSliceDimension;
Dimension: Prognoz.Platform.Intreop.Report.IPrxSliceDimension;
The Dimension property determines the controlled dimension.
The property is relevant only on working with data area. To work with data area, use properties and methods of the IPrxDataIsland interface.
Executing the example requires that the repository contains a regular report with the DATA_AREA identifier.
Add links to the Metabase, Report system assemblies.
Sub UserProc;
Var
MB: IMetabase;
Report: IPrxReport;
Contrls: IPrxControls;
Contrl: IPrxControl;
Dimens: IPrxSliceDimension;
s: String;
Begin
MB := MetabaseClass.Active;
Report := MB.ItemById("DATA_AREA").Bind As IPrxReport;
Contrls := Report.Controls;
Contrl := Contrls.Item(0);
Dimens := Contrl.Dimension;
s := Dimens.Name;
Debug.WriteLine(s);
End Sub UserProc;
After executing the example the console window displays name of controlled dimension.
The requirements and result of the Fore.NET example execution match with those in the Fore example.
Imports Prognoz.Platform.Interop.Report;
Imports Prognoz.Platform.Interop.Metabase;
…
Public Shared Sub Main(Params: StartParams);
Var
MB: IMetabase;
Report: IPrxReport;
Contrls: IPrxControls;
Contrl: IPrxControl;
Dimens: IPrxSliceDimension;
s: String;
Begin
MB := Params.Metabase;
Report := MB.ItemById["DATA_AREA"].Bind() As IPrxReport;
Contrls := Report.Controls;
Contrl := Contrls.Item[0];
Dimens := Contrl.Dimension;
s := Dimens.Name;
System.Diagnostics.Debug.WriteLine(s);
End Sub;
See also: