Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 20:26 Go to next message
Nikhil Mandaara is currently offline Nikhil MandaaraFriend
Messages: 13
Registered: February 2015
Junior Member
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 20:49 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

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.

Michael

Developer Evangelist, Silanis
Re: PageBreaks Based on element in XML [message #1602791 is a reply to message #1601245] Thu, 05 February 2015 20:24 Go to previous messageGo to next message
Nikhil Mandaara is currently offline Nikhil MandaaraFriend
Messages: 13
Registered: February 2015
Junior Member
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 20:35 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

Can you attach an actual dummy xml file and a report that uses it that I can run and modify?

Michael

Developer Evangelist, Silanis
Re: PageBreaks Based on element in XML [message #1602875 is a reply to message #1602808] Thu, 05 February 2015 21:35 Go to previous messageGo to next message
Nikhil Mandaara is currently offline Nikhil MandaaraFriend
Messages: 13
Registered: February 2015
Junior Member
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 19:18 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

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.

Michael

Developer Evangelist, Silanis
Re: PageBreaks Based on element in XML [message #1604345 is a reply to message #1599684] Fri, 06 February 2015 20:17 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

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.

Michael

Developer Evangelist, Silanis
Re: PageBreaks Based on element in XML [message #1608422 is a reply to message #1604345] Mon, 09 February 2015 14:04 Go to previous messageGo to next message
Nikhil Mandaara is currently offline Nikhil MandaaraFriend
Messages: 13
Registered: February 2015
Junior Member
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 14:08 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

You're welcome! Let us know whenever you have questions. Smile

Michael

Developer Evangelist, Silanis
Re: PageBreaks Based on element in XML [message #1608502 is a reply to message #1608429] Mon, 09 February 2015 15:05 Go to previous messageGo to next message
Nikhil Mandaara is currently offline Nikhil MandaaraFriend
Messages: 13
Registered: February 2015
Junior Member
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 15:18 Go to previous message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

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.

Michael

Developer Evangelist, Silanis
Previous Topic:Error deploying birt viewer on Tomcat 5.5
Next Topic:&amp in PDF
Goto Forum:
  


Current Time: Mon Jul 22 14:33:04 GMT 2024

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

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

Back to the top