dennistmh Posted January 30, 2007 Share Posted January 30, 2007 Dear All, May I know is there a way to reference a column's value of previous row?? Thanks,Dennis Link to comment Share on other sites More sharing options...
Nick Posted February 1, 2007 Share Posted February 1, 2007 Hi dennistmh, I just can think in a servlet containing a variable where you will save the value you want to use later. I mean, for the first row use the AfterDetailEval method of the servlet to save the value you need in a variable in the servlet (remember the servlet is a class). Then for the next row use the BeforeDetailEval method to put the value in your servlet variable in a parameter in the report, and you've got it. I'm not a guru in JasperReport and don't know if there is a better way to do this, so I hope this helps.:whistle: Regards,Diego. Link to comment Share on other sites More sharing options...
dennistmh Posted February 1, 2007 Author Share Posted February 1, 2007 Dear Diego, Really thanks for the solution. Since I am just start to evaluate this reporting tools, my company hasn't buy the menu. Anyway, I can get your idea to solve my problem. However, I really don't know how to do it. Could you / anybody give me a sample of it? I am really happy that if you or anybody give me some reference link for this reporting tools before I buy the menu. Thanks a lot,Dennis 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