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

Jaspertsoft List element repeats only the last element


jeanclaude.twagiramungu

Recommended Posts

I am using TIBCO Jaspersoft® Studio 6.19.0 - Visual Designer for JasperReports 6.19.0. I have a report with a list element and I am using JRBeanCollectionDataSource.

I put the list in a detail band, and when I pass a list of 3 different elements, it repeat 3 times, but it only the last element of the list which is displayed.

Here is my report : it is the first list with dataset name = vehicleList.

I have tried with a sub report and it is the same behavior.

Does someone sees what is not going well ?

Thx

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

This is a tricky one - I haven't used a JRBeanCollectionDataSource in a long time, but I would check this StackOverflow question as it has a good, detailed description of proper usage. Your jrxml is different - I would try the suggestion in this:

https://stackoverflow.com/questions/12209300/jrbeancollectiondatasource-how-to-show-data-from-the-java-util-list-from-javabe

I wish I could be more help, but it's hard not seeing the full code you've written.

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