Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
geoffgibbs opened this issue May 16, 2018 · 2 comments
Open

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

geoffgibbs opened this issue May 16, 2018 · 2 comments
Assignees

Comments

@geoffgibbs
Copy link

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.

@dadza dadza self-assigned this Oct 5, 2018
@teodord
Copy link
Collaborator

teodord commented Oct 9, 2018

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.

@geoffgibbs
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants