Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Page Number reset on change of group in Master Page footer in BIRT 2.3.2
Baalu
Hi,
I am using BIRT 2.3.2 with Maximo v7.
Can somebody help me out how to reset the page number on group in Master Page footer for BIRT 2.3.2.
Thank you.
Baalu.
Find more posts tagged with
Comments
micajblock
Maybe this will help:
http://www.birt-exchange.org/org/devshare/designing-birt-reports/491-page-numbers-in-report-layout./
Baalu
Thank you for the reply...
Due to dynamic data, not sure where exactly to apply page break.So I am looking out for reset in master page.
micajblock
The only way I can think of doing this is at generation time create an array or hash-map with the pages you need. Set it a global persistent variable. Then in the on render of the control in the master page read the array or hash-map.
Rakhi
Baalu..did u solve it..can i get a sample of ur report..if anybody have this report please post it ..,thanks
micajblock
I think this will help:
http://www.birt-exchange.org/org/devshare/designing-birt-reports/1404-group-page-numbering/
Rakhi
Thanks a lot..when i ran the report i am getting page number as page 1 of NaN... page 2 of NaN ..page 3 of NaN... for all the pages upto 26(page 26 of NaN).Please help.it is urgent..
mwilliams
How are you running the report? With the web viewer? Or just straight to PDF from the designer? If straight to PDF, it won't work as it uses the runandrender task. You'll need them to be separate run and render tasks. So, if you run in the web viewer and then export to PDF, it should work.
Rakhi
Thanks a lot..i checked it and it is working..i was checking directly with pdf..So if i upload in maximo i think it will work isnt..Thanks a lot once again..is there anyway to make the report work if i run directly to pdf..
Rakhi
i checked williams..it is working if there is one row in the detail section,i have one more table inside the detail section(subreport) and pages are coming in a wrong way...Thanks in advance
mwilliams
If you call the report by URL in your deployment, you can use the URL parameter format=pdf to get the output directly in pdf. Be sure to use "frameset" instead of "run" in your URL though.
Not sure what you're meaning in the second post. The page numbers are all based off of scripting. So, you can't just copy this script into your report and it'll work. You'll have to take the idea behind the script and adapt it to your layout to get what you're wanting. If you can send me a report that I can run with your different layout, maybe I can help modify the script to get the desired output!
Rakhi
Hi williams Thanks a lot..i am atatching the layout of my report.i want the report to be gouped by vendor.for each vendor it should start from 1.In webviewer it is coming correct but in pdf it is coming wrong.i didnt understand where in ur code pafe n of m,the value m is incrementing.
Rakhi
Hi williams Thanks a lot..i am attaching the sample of my report.i want the report to be gouped by vendor.for each vendor it should start from 1.In webviewer it is coming correct but in pdf it is coming wrong.i didnt understand where in ur code pafe n of m for each vendor ,the value m is incrementing.
mwilliams
Sorry for the delay in response. If it's working correctly in web viewer, then it's working correctly....just needs to be exported to PDF from there. Directly to PDF from the designer uses the runandrender task rather than the two tasks separately, so it won't work. When deploying, you'd just use your frameset URL and add the URL parameter format=pdf and it will run this way.
Tubal
Sorry to dig up this thread.<br />
<br />
I'm having some trouble using this implementation in BIRT 3.7.1.<br />
<br />
My report is set up as follow:<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
Group Header
Detail
Detail
Detail
....
Group Header
</pre>
<br />
The detail sections are typically paragraphs of text that can grow.<br />
<br />
It appears that the onCreate of the detail sections create the pg variables without checking if the section will grow, so if the details are only one line of text, all works well. But if the details grow into the next page, there is no pg variable set for that page.<br />
<br />
Hopefully that makes sense?<br />
<br />
Can someone give me some direction or a better way to do group page numbering in this scenario?<br />
<br />
UPDATE: Was able to solve this by using the same idea but firing the code on different events:<br />
<br />
report initialize:<br />
<br />
PGVcounter = 0;<br />
<br />
<br />
report onPageStart:<br />
<br />
reportContext.setPersistentGlobalVariable("pg" + pageNumber.toString(),PGVcounter.toString());<br />
reportContext.setPersistentGlobalVariable(PGVcounter.toString(),pageNumber.toString());<br />
<br />
<br />
<br />
<br />
group footer onCreate:<br />
<br />
PGVcounter++;<br />
<br />
then the same basic code in the dynamic text element on the masterpage.<br />
<br />
Thanks.
micajblock
Can you explain exactly what you are trying to accomplish?
Riad
Hi, I can't have page numbering with this example it shows always page 1 of 1 even if the group is displayed on more than one page. Any Help? Thanks
micajblock
<blockquote class='ipsBlockquote' data-author="'Riad'" data-cid="114192" data-time="1360851410" data-date="14 February 2013 - 07:16 AM"><p>
Hi, I can't have page numbering with this example it shows always page 1 of 1 even if the group is displayed on more than one page. Any Help? Thanks<br /></p></blockquote>
<br />
Riad,<br />
What version of BIRT are you using and how are you running the report?
Riad
<blockquote class='ipsBlockquote' data-author="'mblock'" data-cid="114193" data-time="1360852027" data-date="14 February 2013 - 07:27 AM"><p>
Riad,<br />
What version of BIRT are you using and how are you running the report?<br /></p></blockquote>
<br />
Version: 3.4.2<br />
I run it in Web Viewer than I convert it to PDF
micajblock
<blockquote class='ipsBlockquote' data-author="'Riad'" data-cid="114194" data-time="1360852678" data-date="14 February 2013 - 07:37 AM"><p>
Version: 3.4.2<br /></p></blockquote>
<br />
There is no BIRT version 3.4.2.<br />
<br />
<a class='bbc_url' href='
http://en.wikipedia.org/wiki/BIRT_Project'>http://en.wikipedia.org/wiki/BIRT_Project</a>
;
Riad
Sorry!
Version: 2.3.2.r232_v20081010-7_7D79_doT2uMPVNwOGrZNKUMDK7
Build id: v20090601-0700
micajblock
<blockquote class='ipsBlockquote' data-author="'Riad'" data-cid="114196" data-time="1360853647" data-date="14 February 2013 - 07:54 AM"><p>
Sorry! <br />
<br />
Version: 2.3.2.r232_v20081010-7_7D79_doT2uMPVNwOGrZNKUMDK7<br />
Build id: v20090601-0700<br /></p></blockquote>
<br />
OK, just to make sure which example is not working for you?
Riad
Group page numbering.
http://www.birt-exchange.org/org/devshare/designing-birt-reports/1404-group-page-numbering/
micajblock
<blockquote class='ipsBlockquote' data-author="'mblock'" data-cid="114197" data-time="1360853797" data-date="14 February 2013 - 07:56 AM"><p>
OK, just to make sure which example is not working for you?<br /></p></blockquote>
<br />
OK. that is mwilliams example. Hopefully he will respond.
m_gajjar
<p>I have attached a report design in which we want Page Number to be specific to Group PatientNo as Page: n of m where n is the page number within group and m is to total number of pages in that group. I tried out everything discussed here but no successes. Any help ?</p><p> </p>
m_gajjar
<p>I have attached a report design in which we want Page Number to be specific to Group PatientNo as Page: n of m where n is the page number within group and m is to total number of pages in that group. I tried out everything discussed here but no successes. Any help ?</p><p>