Skip to main content



      Home
Home » Archived » BIRT » PageBreaks Based on element in XML(BIRT XML Pagebreak)
PageBreaks Based on element in XML [message #1599684] Tue, 03 February 2015 15:26 Go to next message
Eclipse UserFriend
Hello,
My XML is
<MAIN>
<GROUP1>
<TO_ADDRESS></TO_ADDRESS>
<FROM_ADDRESS></FROM_ADDRESS>
<SUB_GROUP1>
<Detail1></Detail1>
<Detail2></Detail2>
<Detail3></Detail3>
</SUB_GROUP1>
<SUB_GROUP2>
<Detail1></Detail1>
<Detail2></Detail2>
<Detail3></Detail3>
</SUB_GROUP2>
</GROUP1>

<GROUP2>
<TO_ADDRESS></TO_ADDRESS>
<FROM_ADDRESS></FROM_ADDRESS>
<SUB_GROUP1>
<Detail1></Detail1>
<Detail2></Detail2>
<Detail3></Detail3>
</SUB_GROUP1>
<SUB_GROUP2>
<Detail1></Detail1>
<Detail2></Detail2>
<Detail3></Detail3>
</SUB_GROUP2>
</GROUP2>
</MAIN>

For Every GROUP element , i need to create a new PDF file.
and for every SUBGROUP element I need a new page in same PDF.

I could get separate PDF files for every GROUP, but i dont know how to create new Page for every SUBGROUP.

Can you please let me know how to do this.
Re: PageBreaks Based on element in XML [message #1601245 is a reply to message #1599684] Wed, 04 February 2015 15:49 Go to previous messageGo to next message
Eclipse UserFriend
Maybe I'm oversimplifying things, but once you've created your report layout, you can set the pagebreakafter for your subgroup to be always. This would force a page break at the end of every subgroup. Let me know if I'm missing something.
Re: PageBreaks Based on element in XML [message #1602791 is a reply to message #1601245] Thu, 05 February 2015 15:24 Go to previous messageGo to next message
Eclipse UserFriend
I did that in my current report design,
But only first SUBGROUP is showing up. not the second one.
Re: PageBreaks Based on element in XML [message #1602808 is a reply to message #1602791] Thu, 05 February 2015 15:35 Go to previous messageGo to next message
Eclipse UserFriend
Can you attach an actual dummy xml file and a report that uses it that I can run and modify?
Re: PageBreaks Based on element in XML [message #1602875 is a reply to message #1602808] Thu, 05 February 2015 16:35 Go to previous messageGo to next message
Eclipse UserFriend
for every CLIENT tag i need to generate a new pdf

for every PDF tag i need to generate new page.
Re: PageBreaks Based on element in XML [message #1604279 is a reply to message #1602875] Fri, 06 February 2015 14:18 Go to previous messageGo to next message
Eclipse UserFriend
From the looks of your design, you'll need to make a few changes to get what you're wanting. First, you'll need an outer table based on the Client Info data set. This will allow you to display all of your clients' data. With only a single row for each client, you'd just need to drop your existing structure into the detail row. It would be better however to restructure your report to have embedded tables bound to things like bank info, etc. and include the client name/id as a field in each sub data set so that you can filter the results by only the current client in the outer table. I'll try to create a much simpler version of what I'm talking about (using your data) and attach it when done.
Re: PageBreaks Based on element in XML [message #1604345 is a reply to message #1599684] Fri, 06 February 2015 15:17 Go to previous messageGo to next message
Eclipse UserFriend
I went ahead and just tried modifying your report that you attached. Take a look. I replaced your individually bound data elements with embedded tables for each section. I added the outer table to run each client. I added the client id binding to each data set and used that as a value to filter on to only get the appropriate values for each client. Let me know if you have questions.
Re: PageBreaks Based on element in XML [message #1608422 is a reply to message #1604345] Mon, 09 February 2015 09:04 Go to previous messageGo to next message
Eclipse UserFriend
It worked.

Thank you very much MIchael.
Re: PageBreaks Based on element in XML [message #1608429 is a reply to message #1608422] Mon, 09 February 2015 09:08 Go to previous messageGo to next message
Eclipse UserFriend
You're welcome! Let us know whenever you have questions. Smile
Re: PageBreaks Based on element in XML [message #1608502 is a reply to message #1608429] Mon, 09 February 2015 10:05 Go to previous messageGo to next message
Eclipse UserFriend
Yeah sure.

I will have lot of questions. this is my first time using this tool.
Re: PageBreaks Based on element in XML [message #1608516 is a reply to message #1608502] Mon, 09 February 2015 10:18 Go to previous message
Eclipse UserFriend
Well, welcome to the BIRT community. You'll also find forums, guides, and examples over on the BIRT Developer Center, if you haven't run across it, yet.
Previous Topic:Error deploying birt viewer on Tomcat 5.5
Next Topic:&amp in PDF
Goto Forum:
  


Current Time: Sat Mar 15 11:08:37 EDT 2025

Powered by FUDForum. Page generated in 0.03859 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top