Community
Participate
Working Groups
In BIRT 2.6.2, there is no way of implementing the following event handlers in a Java Class: they must be implemented in JavaScript. * Report.OnStartPage * Report.OnEndPage * MasterPage.OnStartPage * MasterPage.OnEndPage Since all other events may be implemented either in a Java Class or in a JavaScript, these events should also be available, for consistency's sake. The corresponding methods should be added to org.eclipse.birt.report.engine.api.script.eventhandler.IReportEventHandler and implementing classes. Also, a new interface (something like org.eclipse.birt.report.engine.api.script.eventhandler.IMasterPageEventHandler) and corresponding adapter class should be created.
I review the release notes of the previous versions of BIRT. This feature seems to have been added in BIRT 2.5. This issue is probably present in all BIRT version greater or equal to 2.5, but I did not verify this any further. Anyone can confirm?
No, it's not available yet. We will implement it in 3.7.0.
fixed. Add new interface into IReportEventHandler: void onPageStart( IPageInstance page, IReportContext reportContext ) throws ScriptException; void onPageEnd( IPageInstance page, IReportContext reportContext ) throws ScriptException; Add new interface into IMasterPageEventHandler: void onPageStart( IPageInstance page, IReportContext reportContext ) throws ScriptException; void onPageEnd( IPageInstance page, IReportContext reportContext ) throws ScriptException;
*** Bug 283822 has been marked as a duplicate of this bug. ***