ajith.devendra Posted March 4, 2019 Share Posted March 4, 2019 Hi DearI am using below expression just to check whether the variable is greater than 5000 then to initialize to Zero IF($V{DUTYPageTotal}>=5000 , 0 )[/code]but its giving me an error “The operator >= is undefined for the argument types BigDecimal,int . Class of the $V{DUTYPageTotal} is java.math.BigDecimal Pls help me the fix this error Ajith Link to comment Share on other sites More sharing options...
hozawa Posted March 4, 2019 Share Posted March 4, 2019 You're suppose to use compareTo() method to compare BigDecimal. You should learn Java before trying to use JasperReports.https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html#compareTo-java.math.BigDecimal- Link to comment Share on other sites More sharing options...
ajith.devendra Posted March 6, 2019 Author Share Posted March 6, 2019 Thanks Hozawa, Managed to resolve it using ComareTo method as you mentioned . Appreciated your support rgdsAjith 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