Win a copy of Emmy in the Key of Code this week in the General Computing 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 ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

WebWork JasperReports Plugin set multiple datasourc

Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a quick question,

I'm using Webwork's jasperreports plugin and i was wondering if i could set two datasources for a report

currently i have this result mapping:
<result name="success" type="jasper">
<param name="location">/Jasper/our_compiled_template.jasper</param>
<param name="dataSource">allCallsByDate</param>
<param name="format">PDF</param>

allCallsByDate is a collection of CallsByDate objects.

what if i want to add another collection to be used for the same report?
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have a question to ask you, are you designing a web app where you can access your reports generated through jasper reports?

one way to set multiple datasources is to have them defined in your iReports tool and use the tool to complie the ( .jrml to .jasper file) and define which data source you want your report to use in the web app.
rubbery bacon. crispy tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!