• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JasperReport with 3-level Subreports

 
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there,

I need to produce a report inside another which at the time is inside another one. I must do this since I want to nest aggregate tabular data, which goes down three levels. What I have done for another two level report I had to produce, is to pass structures in Java as parameters in the form of array lists and then pass to the inner report an appropiate instance for parameters and the datasource, and point with the variable REPORT_COUNT to the correspondent instance inside a container collection. But if I want to approach a 3-level nesting report with this strategy it gets really cumbersome and very confusing to produce the data structure to populate the report.

Does anyone know an easier strategy to attain it? I have heard it is doable to produce a report and "print it" in a printable jasperreport object, for then to be merged to other instances and build an aggregated document. Could any one point to any valid strategy?

Hope the explanation was clear. Many thanks in advance for your attention.

Carlos.
 
Time is the best teacher, but unfortunately, it kills all of its students - Robin Williams. tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic