Problem: Display break groups next to each other.
With standard break functionality the break header is rendered as a row.
If the report template makes use of thead and tbody then the break row is
rendered as part of the tbody of the previous group.
Making it impossible to place the groups next to each other.
Solution: Using a named column type report template.
Use the row_number() analytic function to calculate the row numbers
with in the breaking group.
In the row template for the very first row start with an opening tag
of the break group.
The row template for the first row of the next group start with
the closing tag of the break group.
Followed by the opening tag.
This means that each break group is hold in it's own container.
Making it possible to display groups next to each other using CSS.
In this example there are 3 row templates used.
With the following conditions
-
#RN#=1 and #ROWNUM#=1 => for the very first row.
-
#RN#=1 and #ROWNUM#<>1 => for the first row in a group.
-
#RN#<1> for all the other rows.
Where #RN# is the column alias for the row_number() column.
#ROWNUM# is the standard rownumber.