Jump to content
Changes to the Jaspersoft community edition download ×

SubReport with JavaBean Datasource issue


fabrizio.stellato

Recommended Posts

I have one master report and one subreport.

I want either reports uses the same javabean Company, except that the subreport uses a collection property named Persons

 

public class Company{ List<Person> persons;  [..]get and set}[/code]
 
In the main report I did these actions:
  • put a parameter called PersonsSubReport
  • put a field called persons of type java.util.List
  • put the subreport object with this datasource: new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{persons})

What am I missing ?

 
Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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