tmagalhaes Posted December 22, 2009 Share Posted December 22, 2009 A calculation="Percentage" would be somthing very handy to us.Many times we don't want to simply display percentages in the reports but also use the values of those percentages as a base for other calculations.Took a look at the Jasper source code and I see all the supported calculations calculate their result line by line and don't require values that will only be available at the reset time of the variable. And as such it looks like it's not possible to do a calculation Last or Percentage. Is this model something that you might change? With the way calculations work now, the api to implement new incrementers ends up feeling a bit limited.Something else that would solve this kind of situation would be to add a Evaluation Time property to variables much like the Text Field's. But looking at the source for the JRFillVariable, adding something like this is far from simple, the infrastucture to support this just doesn't seem to be there.So my question ends up being, do you see a good way to promote Percentage calculations to first class citizens in Jasper Reports? When dealing with a vast number of reports, the workarounds needed to properly show and use percentage calculations are quite a pain that we want to try and solve with code. Link to comment Share on other sites More sharing options...
lucianc Posted December 22, 2009 Share Posted December 22, 2009 As you've already found out, implementing such calculations would be difficult given the way the engine currently works. Otherwise we would have probably done it a long time ago.There's nothing more that I can tell you. I agree that such features would be useful, so we have been considering it, but there's no concrete plan to implement it at the moment.Regards,Lucian Link to comment Share on other sites More sharing options...
tmagalhaes Posted December 22, 2009 Author Share Posted December 22, 2009 Thanks for the reply.Even if it's not the reply I would prefer getting, it's always nice to have an idea of where things stand. =)Consider this post feedback then.Keep up the good work guys. ;) 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