Draw a Separating Line Every N Rows in a Crosstab

mwilliamsmwilliams BIRT Guru
edited March 4, 2014 in DevShare Downloads
This example shows how you can create a separating line every N rows in a crosstab. A counter is created in the initialize script of the report, in a persistent global variable. This variable is recalled in the crosstab's onCreate script, n the onCreateCell function. The value is incremented each time a new dimension cell is created and stored back in the persistent global variable for use later. The mod N (%N) is taken out of the count. If the remainder is 0, the bottom border of the cell is set. The same check is done for the measure cell. Now, when you run your report, you'll see a line drawn every N rows. In this example, it's set up to be every five rows.



This design was created in BIRT 4.2.2.

Regards,

Michael Williams

eSignLive Evangelism & Community Manager | eSignLive by VASCO
 
Find me on:
Twitter
Facebook
Blog

LinkedIn

eSignLive Developer Community
 
Email me:
Google: [email protected]

Sign In or Register to comment.