BIRT platform provides a full set of JavaScript objects to access the Report Object Model, due to which you have a complete control of your report.
|
EngineConfig |
is used to set global options for the report engine and to specify the location of the engine plug-ins and data drivers. You can use EngineConfig class to add application-wide scriptable objects.
|
|
ReportEngine |
represents the BIRT Report Engine. The report engine is created through a factory supplied by the platform. Before creating the engine, you should start the platform. It will load the required plug-ins. Due to the cost of loading extensions, each application should create just one ReportEngine instance and use it to run multiple reports.
You can find more information here. |
|
IReportRunnable |
is used to handle IReportRunnable instances. BIRT report designs are stored as .rptdesign files. To work with the report design in the engine, you need to load the report using one of the openDesign() methods in the ReportEngine class. These methods return a IReportRunnable instance representing the engine's view of the report design. |
|
IEngineTask |
provides the framework to manage scripting context, report locales, etc. E.g., if an operation requires a script context or a locale, a task class will represent the operation. It means that opening a design file or retrieving an image in the design file does not require setting up a scripting context. Other operations, such as retrieving default parameters or a dynamic selection list, running and rendering a report, etc., require a scripting context and are represented as tasks. Tasks are created using the factory methods on the ReportEngine class. You can use one of these tasks: engine.createDataExtractionTask(); engine.createGetParameterDefinitionTask(); engine.createRenderTask(); engine.createRunTask(); engine.createRunAndRenderTask().
You can find more information here. |
|
IRunTask |
allows running reports and generating report documents. Report documents are saved to the disk and can then be used with the IRenderTask to support features such as paging. |
|
IRunAndRenderTask |
allows running a report and publishing it with one of the supported output formats. IRunAndRenderTask does not create a report document. To save your effort, we recommend you to create a new task for each report that you run.
The IRunAndRenderTask class includes the validateParameters() method used to validate parameter values before you run the report. You can find more information about Web Viewer Settings, Parameters, Directory Structure and Tag Library here. |
Refer here to learn about importing JAVA classes and view an example of a 4gl program incorporating a compound report.