Jump to content
We've recently updated our Privacy Statement, available here ×

Iterate list in jasper report which is being passed as a parameter from java


eeshachhabra

Recommended Posts

Hi,

I have a list of string values which I am passing as a parameter from java as parameters,put("nameList", list)

How do I iterate that in jasper report using Japersoft studio and print list values horizontally in report. Please help.

Thanks in advance.

Regards,

Eesha

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

You need to convert the list parameter into a JRBeanCollectionDataSource and then pass into a table element/subreport

new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($P{listParam})

I'm not sure about the horizontal printing part inside the table element. 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...