views:

1061

answers:

1

Hi,Can i iterate on Arraylist in jasperreport which is passed as a parameter and calculate the sum of some properties.Im using the ireport to create a jrxml.

A: 

You need to retrieve the elements from the list? Or just to perform the sum operation on the elements?

You can create a static method in JasperUtils for this... or you can create a new class to help you and in that class create a static method which can take your list as a parameter, process it and return the needed result. (you need to import the new class you create in order to use the method)

Jenny Smith