DynamicReports - adhoc

Adhoc report applications allow users themselves to create specific reports and filter queries. A report is created on the fly, displaying values or charts that a user has specified via GUI.
This project simplifies creating adhoc report applications. It allows to configure reports and filter queries and this configuration can be stored to an xml file or loaded from an xml file. The main configuration object is AdhocConfiguration that consists of AdhocReport and AdhocFilter object.
AdhocReport - a report configuration object that can be transformed to a dynamic report builder object.
AdhocFilter - a filter configuration object. This project doesn't generate sql queries from this object, it only allows you to store and load a filter configuration.
Another important class of this project is AdhocManager. It is a helper class that contains methods of loading/storing an AdhocConfiguration from/to a stream and methods of creating a report builder instance from a given AdhocReport object.
DynamicReports - adhoc
Examples
Quick usage:

AdhocConfiguration configuration = new AdhocConfiguration();
AdhocReport report = new AdhocReport();
configuration.setReport(report);
AdhocColumn column = new AdhocColumn();
column.setName("item");
report.addColumn(column);
 
The following code stores a configuration to an output stream
AdhocManager.saveConfiguration(configuration, outputStream);
 
The following code loads a configuration from an input stream
AdhocConfiguration configuration = AdhocManager.loadConfiguration(configuration, inputStream);
 
The following code converts a configuration to a report builder instance
JasperReportBuilder reportBuilder = AdhocManager.createReport(configuration.getReport());
reportBuilder.setDatasource(...);
 
Tags: adhoc

Latest News

  • Thu
    Jul
    28
    Changes in version 4.1.1 upgrade to JasperReports 6.2.2 added new types of component stretch type minor bug fixes...
  • Thu
    Feb
    11
    Changes in version 4.1.0 upgrade to JasperReports 6.2.0 xyList component, see ComponentsReport for an example
  • Wed
    Nov
    18
    Changes in version 4.0.2 upgrade to JasperReports 6.1.1 added support for QR Code barcode, see BarcodeReport for a...