setting up subreport in ireport using XML datasource

Posted by shyam on Stack Overflow See other posts from Stack Overflow or by shyam
Published on 2010-02-05T06:11:21Z Indexed on 2010/05/11 19:34 UTC
Read the original article Hit count: 397

Filed under:

can anyone explain in detail(if possible with screen shorts) how to add subreport (one to many relation)

this being the xml data source

<addressbook>
 <category name="home">
  <person id="1">                                                           
      <LASTNAME>Davolio</LASTNAME>
      <FIRSTNAME>Nancy</FIRSTNAME>
      <hobbies>
       <hobby>Radio Control</hobby>
       <hobby>R/C Cars</hobby>
       <hobby>Micro R/C Cars</hobby>
       <hobby>Die-Cast Models</hobby>
      </hobbies>
      <email>[email protected]</email>
      <email>[email protected]</email> 

  </person>
  <person id="2">
      <LASTNAME>Fuller</LASTNAME>
      <FIRSTNAME>Andrew</FIRSTNAME>
      <email>[email protected]</email> 
      <email>[email protected]</email> 
  </person>
  <person id="3">                                                                 
      <LASTNAME>Leverling</LASTNAME>
      <FIRSTNAME>Janet</FIRSTNAME>
      <hobbies>
       <hobby>Rockets</hobby>
       <hobby>Puzzles</hobby>
       <hobby>Science Hobby</hobby>
       <hobby>Toy Horse</hobby> 
      </hobbies>
      <email>[email protected]</email> 
      <email>[email protected]</email> 
  </person>
 </category>
 <category name="work">    
  <person id="4">                                                            
      <LASTNAME>Peacock</LASTNAME>
      <FIRSTNAME>Margaret</FIRSTNAME>
      <hobbies>
       <hobby>Toy Horse</hobby> 
      </hobbies>
      <email>[email protected]</email>  
  </person>
  <person id="5">
      <LASTNAME>Buchanan</LASTNAME>
      <FIRSTNAME>Steven</FIRSTNAME>
      <hobbies>
      </hobbies>
      <email>[email protected]</email>  
  </person>
  <person id="6">
      <LASTNAME>Suyama</LASTNAME>
      <FIRSTNAME>Michael</FIRSTNAME>
  </person>
  <person id="7">
      <LASTNAME>King</LASTNAME>
      <FIRSTNAME>Robert</FIRSTNAME>
  </person>
 </category>
 <category name="Other">    
  <person id="8">   
      <LASTNAME>Callahan</LASTNAME>
      <FIRSTNAME>Laura</FIRSTNAME>
      <email>[email protected]</email> 
  </person>
  <person id="9">
      <LASTNAME>Dodsworth</LASTNAME>
      <email>[email protected]</email> 
  </person>
 </category>                                                           
</addressbook>

© Stack Overflow or respective owner

Related posts about Xml