Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Total Count
HPP
hi all
Is there any possibility to find the total number of records in a each page of a report which consists of number of pages.
specially while generating as a pdf
Find more posts tagged with
Comments
mwilliams
You could count them in the onCreate of your detail row by incrementing a variable. What are you trying to do with this information?
HPP
hi williams,
i just want to display it.. thats my requirement
HPP
hi williams,
I dn't know where to define a global variable, can u be more clear with ur answer?
Actually my scenario is i have a report which consists of 4000 rows so it displays in different pages but my requirement is to display the total numbers of rows in each page.
mwilliams
What is your BIRT version? If using 2.5 or above, you should be able to use a page variable, assign the value in the endOfPage event, and then use the variable auto-text in your masterpage to display the page variable. Let me know your BIRT version and I'll try to get a simple example made if you need it!
HPP
HI Williams,
My birt version is 2.6.2.
It would more helpful if you give us a example
mwilliams
Here's an example. To see where all there is scripting, click on the outline and look at the "scripts" section. In the masterpage footer is an auto-text element that displays the value of the page variable. Hope this helps.
HPP
hi Williams,
Thanks williams , i will try and come back to you
HPP
hi williams,
I got output,
thanks for ur help ur example is very very helpful..
mwilliams
Not a problem at all! Let us know when you have questions.