• Post Reply Bookmark Topic Watch Topic
  • New Topic

Ireport help  RSS feed

 
Krish Reddi
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm using Ireport 5.2 and needing some assistance in one of the problem I'm facing. Below is the scenario.

Have a Java POJO class named "Company" being passed to Ireport with below structure
Class Company{

private String companyName;
private List<Employees> employeeList;
private OtherDetails otherDetails;

}

The JasperReport has a subreport where we are passing employeeList in Datasource Expression with below expression
new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource(employeeList);

I was wondering if there is a way we can pass otherDetails bean to the sub report as well?
Also otherDetails is just a bean. Not a collection. I could not find any API where we can pass a POJO class in Datasource expression?


Any help is highly appreciated.

Thanks,
Krishna


 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!