Hello All,

I need to use two objects for generating reports with JRXML



> dataCollection.add(project);
> dataCollection.add(coverage)
> 

I use 

JRBeanCollectionDataSource ds = new
JRBeanCollectionDataSource(dataCollection);
JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport,
parameters, ds);

this works fine when i use only one object.
Say Project.

If i use two objects. I get error in the JRXML (As field not found)

How to solve this problem. I need to get values from both the objects

Some help will be declared great
-- 
View this message in context: 
http://www.nabble.com/Multiple-Object-in-DataSource-Collection-tp25816344p25816344.html
Sent from the jasperreports-questions mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions

Reply via email to