Win a copy of Terraform in Action this week in the Cloud forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Al Hobbs
  • salvin francis

Passing dataSource to subreport in ireport

Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic