fabrizio.stellato Posted March 9, 2015 Share Posted March 9, 2015 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 PersonsSubReportput a field called persons of type java.util.Listput 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 More sharing options...
fabrizio.stellato Posted March 9, 2015 Author Share Posted March 9, 2015 Solved with adding to the subreport object of the master report$P{PersonsSubReport} Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now