ktrinad Posted August 31, 2006 Share Posted August 31, 2006 By: Andy Tan - tanyd How to write the PrintWhenExpression 2003-09-19 00:50 I want to display a field $F{qty} only if it is greater 10000,how to write the Print when expression? I try to put as below: $F{qty}>100000 It show me the error: operator > cannot be applied to java.lang.Integer,int. Hot to do it? Help me,thanks. By: Sachin Aggarwal - sk_aggarwal RE: How to write the PrintWhenExpression 2003-09-19 00:54 Hi, try using this new Boolean($F{qty}.intValue()> 100000) Assumning datatype of qty in Integer. hope it helps Sachin By: Andy Tan - tanyd RE: How to write the PrintWhenExpression 2003-09-19 01:01 It works. Thanks................. 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