blt9881 Posted August 5, 2010 Share Posted August 5, 2010 I'm attempting to upgrade my JasperReports install from 3.1.2 to 3.7.4. I have a report that uses a custom object for the bucket expression in a crosstab report. The bucket expression implements Comparable which allows me to sort columns by something other than the display value. This worked fine in 3.1.2. In 3.7.4, the sorting works, but for some reason the data is all messed up. Rather than showing the sum, almost all values are 0. Neither the report nor the datasource has changed. Does anyone have any suggesstions on where I should begin my debugging? Any reason why custom bucket expressions can't be used to sort crosstab columns anymore? I'd appreciate any pointers you might have. Link to comment Share on other sites More sharing options...
lucianc Posted August 9, 2010 Share Posted August 9, 2010 Log that as a bug, it needs an investigation. A self-contained test case would of course help.Regards,Lucian Link to comment Share on other sites More sharing options...
blt9881 Posted August 9, 2010 Author Share Posted August 9, 2010 Thank you for your response. I actually figured out the problem last night and forgot to post back. isDataSorted was set to true. This worked in 3.1.2 but not in 3.7.4. Setting to false fixed my problem.I'm assuming that my data was not actually presorted. I have no idea why it would have worked in 3.1.2. I will try to verify that correctly sorted data with a custom BucketExpression works as designed.Thanks for a great reporting engine! Link to comment Share on other sites More sharing options...
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