-3

I need to do a high precision sum in a footer of JasperReports's report. Usually if you have a Double field you can drag and drop the field in the footer group and a popup window will be show displaying what kind of calculation do you what, sum for example. But if you have a BigDecimal field this popup window does not show.

So how can I sum BigDecimal Field in a (footer) group of report?

Alex K
  • 22,315
  • 19
  • 108
  • 236
Diego Quirós
  • 898
  • 1
  • 14
  • 28

1 Answers1

-1

Just go the manual way.

  • Add a variable
  • Give it a meaningful name
  • Change the type to java.math.BigDecimal
  • Set the Calculation to the type you need, Sum in your example
  • Add the variable to a text field or add it with drag and drop to the report
  • Set your desired Evaluation time
tobi6
  • 8,033
  • 6
  • 26
  • 41