Draw a Separating Line Every N Rows in a Crosstab

mwilliams
edited February 11, 2022 in Analytics #1
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.<br />
<br />
This design was created in BIRT 4.2.2.
Warning No formatter is installed for the format ipb