psratcliff Posted November 26, 2009 Share Posted November 26, 2009 I am using a printwhen expression on a particular field that is not working.The expression is new Boolean ($F{Field}.equals (""))However despite the field it's evaluating being null (I know this because I get a null if I display the evaluation field in the report) the field still does not print. I have tried changing to .equals (null) and that doesn't work either.Any suggestions please. Link to comment Share on other sites More sharing options...
kchaudhry Posted December 1, 2009 Share Posted December 1, 2009 new Boolean ($F{Field}.equals ("") || $F{Field} == null) Link to comment Share on other sites More sharing options...
yaminirathaur Posted December 2, 2009 Share Posted December 2, 2009 use this( $F{Field} == "" ? $F{field1_value} :$F{field_value2} )or( $F{Field} == "" ? "msg 1" : "msg 2" ) 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