rene.beck Posted December 17, 2020 Share Posted December 17, 2020 HiI'm migrating cystal reports to jasper reports.Regarding the formula on the fields in crystal, there is no such thing in jasper, except the expression on the fields.But this is not so powerful? Is there another way to implement more complex fomula/calcluation?BR René Link to comment Share on other sites More sharing options...
gustavofarias Posted December 17, 2020 Share Posted December 17, 2020 Maybe one technology is more powerful in some aspects than the other and the other way around.Looking at your code, I see nothing that Jasper can't handle with parameters, fields and variables.c, menge, nomSap, denomSap could be variables.Basically what you doing are tests and assignments, which can be easily hadled by the ternary operator (test ? a : b);SV{menge} = $F{APOS.STATUS} == "FR" ? $F{APOS.MENGE_SOLL} : $F{APOS.MENGE_KOMM}Replacements, rounding, formating, all this can be done in expressions. 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