This week's book giveaway is in the Spring forum.
We're giving away four copies of Spring in Action (5th edition) and have Craig Walls on-line!
See this thread for details.
Win a copy of Spring in Action (5th edition) this week in the Spring 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Dynamic columns in jasper reports  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While creating new reports i follow the below steps:
1. create jrxml file using ireport.
2. compile the file to produce .jasper file by passing required parameters.
3. display the report in desired format html. pdf, etc.

So basically i have the report template/design in jrxml file. Depending on the requirement/parameters i populate the values.

Now i want an advanced report. where the report column needs to get build dynamically and the value for those columns will also be queried dynamically.

For example:
A report that displays the number of products available in each branchs.
So the branchs can vary over time.

Product chennai Bangalore pune ......... Total
abc 1 5 4 10
vnn 3 1 1 5
Total 4 6 5 15

Inorder to do it we need to build the report dynamically.
Any one can provide me with some solutions.

Some solution which i read from forums are
1. generate the xml dynamically and produce a .jasper file.
2. generate jasperreports using API

Can you provide me with some simple examnples.


Awaiting for immediate response. As i need to a immediate solution.
------------------------------
Ubirithi
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Check this link
http://www-128.ibm.com/developerworks/websphere/library/techarticles/0505_olivieri/0505_olivieri.html

You can get an idea.

Regards
Maruthi
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[Product announcement removed. Please be sure to make product announcements in the Advertising Forum]
[ July 02, 2008: Message edited by: Bear Bibeault ]
 
Marshal
Posts: 67163
169
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"mamana Dj", please check your private messages for an important administrative matter.

Also, please read this with regard to resurrecting old posts.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!