FillTabSheet: Boolean;
FillTabSheet: boolean;
The FillTabSheet property determines whether data will be displayed in analytical area on opening a report for edit.
Available values:
True. On opening a report for edit, data in analytical area is displayed.
False. On opening a report for edit, data in analytical area is not displayed.
The FillTabSheet property use enables optimizing the analytical data area work.
Executing the example requires to have a regular report with the REGULAAR_REPORT identifier containing analytical data area.
Add links to the Express, Metabase, Report, Tab system assemblies.
Sub UserProc;
Var
MB: IMetabase;
Report: IPrxReport;
PivSlice: IEaxDataAreaSlice;
Grid: IEaxGrid;
Begin
// Get repository
MB := MetabaseClass.Active;
// Get regular report
Report := MB.ItemById("REGULAR_REPORT").Edit As IPrxReport;
//Get analytical data area slice
PivSlice := Report.DataArea.Slices.Item(0);
// Get table view
Grid := PivSlice.Views.Item(0) As IEaxGrid;
//Disable data display in analytical data area
//On opening a regular report for edit
Grid.FillTabSheet := False;
// Save report
(Report As IMetabaseObject).Save;
End Sub UserProc;
Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Tab;
Imports Prognoz.Platform.Interop.Report;
Imports Prognoz.Platform.Interop.Express;
…
Public Shared Sub Main(Params: StartParams);
Var
MB: IMetabase;
Report: IPrxReport;
PivSlice: IEaxDataAreaSlice;
Grid: IEaxGrid;
Begin
// Get repository
MB := Params.Metabase;
// Get regular report
Report := MB.ItemById["REGULAR_REPORT"].Edit() As IPrxReport;
//Get analytical data area slice
PivSlice := Report.DataArea.Slices.Item[0];
// Get table view
Grid := PivSlice.Views.Item[0] As IEaxGrid;
//Disable data display in analytical data area
//on opening regular report for edit
Grid.FillTabSheet := False;
// Save report
(Report As IMetabaseObject).Save();
End Sub;
End Class;
After executing the example, data will not be displayed for editing in analytical area on opening regular report for edit. To display data, refresh regular report.
See also: