Jump to content
JasperReports Library 7.0 is now available ×

List element


jasemilly

Recommended Posts

Hi have created a list element that appears perfectly fine in ireport preview but when the webpage preview comes up the list element doesn't show.

 

For the datasource I have specified use connection expression.  Is their something else I need to specify for the web page??

Thanks

Jasemilly

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Are you using a List element inside a Java Bean datasource? If you want to display it you have to create a subreport, and in the datasource expression of the subreport put something similar to this: 

new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{bfList})

In my case, bfList is a list of objects I have in my Bean and want to display.

Hope this helps.

Regards

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...