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)
pageNumber variable set with param
jbellive
<p>I have a request where the business will add (external) pages in front of the birt report. They would like to send the startingPage param and see the page X of Y of the report begin with X=startingPage. Is this possible using version 3.7 BIRT Report?</p>
Find more posts tagged with
Comments
micajblock
<p>Absolutely. Put a text item on the master page and put code like this in the onRender event:</p>
<pre class="_prettyXprint">
fakePageNumber = pageNumber + params["Start Page"].value;
fakeTotalPage = totalPage + params["Start Page"].value;
this.text = "Page " + fakePageNumber + " of " + fakeTotalPage;</pre>
<p>Attached is a sample using Classic Models.</p>