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)
informations about BIRT Scripting
jkeldi
Hi, i'm a new user of BIRT Editor and i need some help in BIRT using. I'm supposed to create a report which respect these rules:
- in even(impair) page number, the field "TLD Signature" is displayer in the footer
- the report list a group of "SCOUT accounts" with a description of each one, when a description ends in a even page number, we must have a pagebreak and a blank page before the next "SCOUT account" description.
So my questions are: How can i manage pagebreak and blank page creation in relation to the page number? How can i manage field display in relation to the page number?
I hope my topic is understandable cause i'm french and my english is not really perfect.
Find more posts tagged with
Comments
kclark
To check if the current page number is even or odd you can use the a script like this in the onRender of a label from the mastepage footer.<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>if(pageNumber%2 == 0) {
this.text = "This page is even, add your footer here";
}else{
this.text = "This page is odd";
}</pre>
<br />
Can you reproduce your report with the sample db and post so I can make an example for the other requirements?
jkeldi
<blockquote class='ipsBlockquote' data-author="'kclark'" data-cid="116361" data-time="1367269463" data-date="29 April 2013 - 02:04 PM"><p>
To check if the current page number is even or odd you can use the a script like this in the onRender of a label from the mastepage footer.<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>if(pageNumber%2 == 0) {
this.text = "This page is even, add your footer here";
}else{
this.text = "This page is odd";
}</pre>
<br />
Can you reproduce your report with the sample db and post so I can make an example for the other requirements?<br /></p></blockquote>
<br />
hi kclark, thank you very much for your help, here is xml source for the report you asked me:
jkeldi
<blockquote class='ipsBlockquote' data-author="'kclark'" data-cid="116361" data-time="1367269463" data-date="29 April 2013 - 02:04 PM"><p>
To check if the current page number is even or odd you can use the a script like this in the onRender of a label from the mastepage footer.<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>if(pageNumber%2 == 0) {
this.text = "This page is even, add your footer here";
}else{
this.text = "This page is odd";
}</pre>
<br />
Can you reproduce your report with the sample db and post so I can make an example for the other requirements?<br /></p></blockquote>
<br />
hi kclark, thank you very much for your help, here is xml source for the report you asked me:
jkeldi
sorry, i've posted the wrong file. Here is the right one: