blt9881
-
Posts
9 -
Joined
-
Last visited
Content Type
Profiles
Forum
Events
Featured Visualizations
Knowledge Base
Documentation (PDF Downloads)
Blog
Documentation (Test Area)
Documentation
Dr. Jaspersoft Webinar Series
Downloads
Posts posted by blt9881
-
-
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.
-
Couldn't find a feature request so posted one here:
http://jasperforge.org/sf/go/artf3165?nav=1
This would be very helpful indeed.
-
FYI: bug filed: artf3110
-
I am attempting to use style templates (jrtx files) with JasperReports 2.0.4. It seems to be ignoring everything between the <style></style> tags.
For example, if I have a style such as:
Code: <style name="Normal" leftPadding="2"/>
everything looks fine and the padding is applied, however I get a warning that leftPadding is deprecated in 2.0.4. So I try to use the new method of applying the style:
Code: [code]<style name="Normal">
<box leftPadding="2"/>
</style>This seems to "silently fail". I get no error messages when I compile, and the report fills fine, however the padding does not exist.
If I use the exact same style in the jrxml instead of in a template it works perfectly. Am I missing something or is this a bug?
Thanks for your help.
Crosstab Comparable BucketExpression in 3.7.4
in Products
Posted
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!