Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Try to hide first row on page - but second row is hidden
Yaroslav
I need to implement design where there is separator line between rows in the table. And this separator row have gray borders on the left and on the right. So I added additional detail row to the table for this purpose. But the problem is that such row appears right below the table header, so I need to hide it.<br />
I added Page Variable "start_page" which is "true" by default. Also in "visibility" section of row I added code to hide row if "start_page"="true", after that I set "start_page"="false":<br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
startPage = reportContext.getPageVariable("start_page");
if (startPage == "true") {
reportContext.setPageVariable("start_page", "false");
true
} else {
false
}
</pre>
<br />
But the problem is that BIRT resets "start_page" variable AFTER rendering of first row on second page. As a result, second row is hidden instead of first. I attached simplified rptdesign. When generate report to PDF, look at second page. There is no separator line between items 38 and 39, but correct behavior would be to hide separator above item 38.<br />
<br />
Could you help me how to solve this issue? Or is there another way to implement such design?
Find more posts tagged with
Comments
mwilliams
Try this.
Yaroslav
Thanks, Michael.
This works!
mwilliams
You're welcome. Let us know whenever you have questions!