itchytoes Posted April 5, 2008 Share Posted April 5, 2008 Hi -- I am still struggling with this custom ordering thing. So, I created a simple MyWrapper class that I want to use to just switch the order of Integers (so that highest comes first). I modified the OrdersReport.jrxml from the jasper2.0.4 samples folder to just use this MyWrapper for columGroup bucketExpression. My order got swapped okay, but my cells are not showing data. There's too many zeros. I must be doing something stoopid, but I cannot figure it out. This is similar to my actual reporting problem, where my cells are showing as null when I try this custom ordering. I've attached the modified OrdersReport.jrxml and my tiny MyWrapper.java. I hope someone can help. BEtty [file name=OrdersReport-b76dd75c7cd3edd557d2b0690549c746.jrxml size=8701] Link to comment Share on other sites More sharing options...
itchytoes Posted April 5, 2008 Author Share Posted April 5, 2008 Hi -- I could not figure out how to attach both files, so here's the MyWrapper.java Link to comment Share on other sites More sharing options...
Solution itchytoes Posted April 5, 2008 Author Solution Share Posted April 5, 2008 Hi -- Okay -- I figured out my problem! I needed an equals() and a hashCode() also. Link to comment Share on other sites More sharing options...
djohnson53 Posted January 3, 2013 Share Posted January 3, 2013 No MyWrapper.java found. 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