HOW-TO Create a grand total (with no groups)

If there is a need for grand totals and no grouping in the project, DynamicJasper provides a way to get that. Grand totals can be located in the header or the footer of the report DynamicReportBuilder drb = new DynamicReportBuilder(); //ReportBuilder initialization drb.addGlobalHeaderVariable(columnAmount, ColumnsGroupVariableOperation.SUM); drb.addGlobalFooterVariable(columnAmount, ColumnsGroupVariableOperation.SUM); Where the parameters passed are: The column to use…

HOW-TO Create Value Formatter

Value Formatters is the mechanism provided by DJ to decouple the way data is obtained or calculated from the way it is shown. Value Formatters works like jasper reports patterns, but as they are a java class, complex transformation can be done. The good thing about Value Formatters is that they don’t mess with the…