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)
How to decrement total page value
hooli
<p>Hi,</p>
<p> </p>
<p>I have a problem in my report, In PDF format, wich is the only output available of my invoice report.</p>
<p>I have to decrement the auto_texte of "Total Page" value, because i have my terms & conditions with it, and this is not a detailed page of this invoice.</p>
<p> </p>
<p>So i have this render :</p>
<p> </p>
<p>1 / 3</p>
<p> </p>
<p>with this XML code :</p>
<pre class="_prettyXprint _lang-xml _linenums:5073">
<row id="410">
<property name="height">0.3020833333333333in</property>
<cell id="411">
<auto-text id="412">
<property name="type">page-number</property>
</auto-text>
</cell>
<cell id="413">
<text id="414">
<property name="contentType">plain</property>
<text-property name="content"><![CDATA[/]]></text-property>
</text>
</cell>
<cell id="415">
<auto-text id="416">
<property name="type">total-page</property>
</auto-text>
</cell>
</row>
</pre>
<p>And i need to have total-page -1 so with my example :1 / 2</p>
<p> </p>
<p>How can i do that ? I tried some JavaScript of my auto text value (OnRender, OnCreate etc...) No luck, but maybe i did it in the wrong way.</p>
<p> </p>
<p> </p>
<p>Thanks for your help.</p>
Find more posts tagged with
Comments
mwilliams
What is your BIRT version? Will you be running your report from the viewer or with Java code?
hooli
<p>Hi, thanks for your answer.</p>
<p>I'm playing with <strong>birt-report-designer-all-in-one-4_4_0-20140611</strong> version of birt on my computer, and i launch my report using the url :</p>
<pre class="_prettyXprint">
http://127.0.0.1:56214/viewer/preview?</pre>
<p>When it will completely finished it will be running with birt viewer on a linux server and called by this kind of url :</p>
<pre class="_prettyXprint">
http://[ip-address]/birt-viewer/run?[params]</pre>
mwilliams
Are you using run vs frameset for a particular reason?
hooli
<p>Yeah because in production they use run, i have to do the same thing.</p>
<p> </p>
<p> </p>
<p>Thanks for your answer
</p>
mwilliams
Using frameset uses separate run and render tasks. This makes working with pagination a million times easier since the entire report is created before it's rendered. Run uses the runAndRender task. With this, the report is rendered as it's created. I'll see what I can do and let you know.
hooli
<p>Hum ok
</p>
raj007
<p>how to add search button for table in BIRT report</p>
<p> </p>
<p> </p>
<p>i am using BIRT design 3.7.1</p>
<p> </p>
<p>mail me @ ngr.shakti@gmail.com'</p>
<p> </p>
<p>please help me</p>
raj007
<p>how to add search button for table in BIRT report</p>
<p> </p>
<p> </p>
<p>i am using BIRT design 3.7.1</p>
<p> </p>
<p>mail me @ ngr.shakti@gmail.com</p>