Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Passing dataSource to subreport in ireport

 
Roopali Gaikwad
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I m using ireport for geneating my report which is having a subreport inside main report.
I m passing dataSource of type "JRBeanArrayDataSource" to main report and now i wanted to pass same datasource to subreport.
The way i tried to pass to subreport is

JRBeanArrayDataSource dataSource;
dataSource = new JRBeanArrayDataSource(mainreportData);
map.put("reportRows", dataSource);

and "reportRows" passed as parameter to subreport. But it didn't wrked.

Can anybody suggest how i can do this?

Thanks in advance.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic