jasperreports icon indicating copy to clipboard operation
jasperreports copied to clipboard

Allow for no total in crosstab groups of only 1 row/column

Open geoffgibbs opened this issue 6 years ago • 2 comments

Currently, for row and column groups you can specify a total as start, end or none.

It would be great to be able to also specify not to use a total if there is only 1 row or column in the group.

geoffgibbs avatar May 16 '18 15:05 geoffgibbs

This one is a little bit tricky. From a crosstab design perspective, the height of a row group header cell is the sum of the detail cell height and the total cell height, when total position is Start or End. In case the total cell no longer appears when there is only one detail row, the header cell would have to shrink in height. It would have to be smaller than it design time declared height. The problem is that in JR Lib, content never shrinks under its declared size.

teodord avatar Oct 09 '18 13:10 teodord

But, if I understand correctly, in order to calculate the height of the row group header cell, you need to know how many rows there are, so at that point wouldn't it be possible to set the height to be smaller, not shrink after the fact?

geoffgibbs avatar Oct 12 '18 09:10 geoffgibbs