nash.seq Posted May 1, 2014 Posted May 1, 2014 Is there any way to not print a group even once in a report? Using null or blank as a group expression always prints the group at least once after the first page's column headers band. According to the iReport Ultimate guide for group expressions:This is the expression that JasperReports will evaluate against each record. Whenthe expression changes in value, a new group is created. If this expression isempty, it is equal to null, and since a null expression will never change in value,the result is a single group header and a single group footer, respectively, after thefirst column header and before the last column footer.I want to be able to change the frequency of group occurence based on a GroupBy parameter (e.g. $P{groupBy1}.equals("foo")?$V{REPORT_COUNT}:null), and while I already have a solution to have two seperate tables that print conditionally based on GroupBy parameter, one for grouping, and one for not grouping by setting group header and footer height to 0, I'd rather desire to reduce number of tables I use in the report if there's a better way.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now