• 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

[JasperReports] Page index

 
Ranch Hand
Posts: 383
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi. I have this requirement to create a page index at the end of a report. Has anyone ever approached this?
My idea is like this:
* create a data source implementation that would accept new elements
* create a scriptlet that would add new row to this data source and that it evaluated for every row - meaning that for each row evaluated, some object name and page would be added to the data source
* have some way of putting the index in the template - for example by creating out own custom XML tag, that would handle the scriptlet and data source itself
* when the report engine gets to this index element (at the end of the report), the page index data source described earlier would be filled, and the index would be generated

Does this make any sense to you?

Regrds,
Raf
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic