2340patel Posted January 12, 2018 Share Posted January 12, 2018 class Employee { String empName; Address homeaddress } class Address{ string streetName } we have to display employee records in table using JasperReports. We created JRBeanCollectionDataSource as following JRBeanCollectionDataSource jrBeanCollectionDataSource = new JRBeanCollectionDataSource(employee); params.put("employeeDataSource", jrBeanCollectionDataSource ); JasperPrint jasperPrint = JasperFillManager.fillReport(jreport, params, jrBeanCollectionDataSource); When i access streetName in my jrxml. I get error streeName not found in object employee. How to access child objects in jrxml using JRBeanCollectionDataSource? 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