Community
Participate
Working Groups
Hi, When I use <VALUE-OF>totalPage</VALUE-OF> it always gives 0 as the result. I cant use palette item as it makes alignment issues. How can i use this function ? Regards, Jiju.
*** Bug 205396 has been marked as a duplicate of this bug. ***
We can support totalPage in PDF report, and support totalPage in html with "Web viewer" mode. what's the format, html, pdf or others?
when this will be available?
Please escalate this fix. I desperately need to use "pageNumber!=TotalPage" as a visibility expression on a label on the Master Page.
*** This bug has been marked as a duplicate of bug 235520 ***
Reopen this bug. If the totalPage is intended to be used in an expression to control visibility, it would be a different bug from showing the totalPage in a text. #235520 is about showing the correct totalpage. Since BIRT engine does one pass content generation, TotalPage is not finalized until the entire report content is generated. When page N is being generated, totalPage is still a running total being cummulated. The solution in #235520 is to keep a place holder that reference the total page variable. So that when page N is rendered after the report generation is completed, final totalpage value would be plugged in page N's content. Not if the total page is used to control the visibility of a content, this solution will not work. Actually, there is deadloop in a general case to use totalpage to control visibility, because the visibility of a content will impact the totalpage, but birt engine doesn't know the total page until it knows if certain content is visible. Can you describe what you would like to achieve in the report design? Is it the usage that certain label show not be shown on the last page of the report?
In my case, I am putting OCR marks on a statement, which controls an automated stuffing machine. I need to put a special mark on the first page and one on the last page. I have two labels, one of which I make visible when pageNumber==1 (first page), and the other of which I want to make visible when pageNumber==totalPage (last page).
(In reply to comment #7) > In my case, I am putting OCR marks on a statement, which controls an automated > stuffing machine. I need to put a special mark on the first page and one on > the last page. > I have two labels, one of which I make visible when pageNumber==1 (first page), > and the other of which I want to make visible when pageNumber==totalPage (last > page). Are you using a table or list to iterate thru the records for the statement? If so, there could be a way to set a scripting variable to indicate the end of the report, and you can use it to control the visibility of the OCR label. If you can attach your report design XML file, I will take a look if an alternative solution exists...