bernhardFW Posted January 13, 2021 Share Posted January 13, 2021 Jaspersoft Studio 6.1.1On a report I like to print the text "Guthaben/Credit Amount" if field1(value) is greater then field2(value) - else print "Nachzahlung/Debit amount"?How to achive that?I tried this recommended example: (( $F{BETRAG} > $F{VORAUSZAHLUNG}) ? msg(Nachzahlung) : msg(Guthaben))But error says: "the operator ' > ' is not defined for argument type BigDecimal, int thanks for ur help ! Link to comment Share on other sites More sharing options...
gustavofarias Posted January 15, 2021 Share Posted January 15, 2021 If you are comparing a bigdecimal and an int, you should use .compareTo() 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