Hi,

I have a main report with a JRXmlDataSource. The XML structure is:

<root>
   <person>
      <firstname/>
      <lastname/>
      <address>
          <street/>
          <zip/>
          <city/>
      </address>
   </person>
</root>

In the main report I print firstname and lastname. Address may occurr
multiple times so I want to define a subreport.
I define a subreport expression:

 
((net.sf.jasperreports.engine.data.JRXmlDataSource)$P{REPORT_DATA_SOURCE
}).subDataSource("address")

How can I define the fields for the subreport? I tried to define it in
the
main report but I always get Null as value for $F{street} in the
subreport.

Any hints?

Regards,
  Marco


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
jasperreports-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions

Reply via email to