law Posted October 10, 2006 Share Posted October 10, 2006 I'd like not to display nulls in my iReport. I have the following at the moment but it doesn't work:(if($F{BEGCYC6} != null) $F{BEGCYC6}) Is it possible to check for nulls several fields at once so that I wouldn't rewrite the same line of code for every output? Link to comment Share on other sites More sharing options...
C-Box Posted October 10, 2006 Share Posted October 10, 2006 Just use the "Blank when NULL" attribute at each field! ;) hthC-Box Link to comment Share on other sites More sharing options...
jmoll26 Posted October 10, 2006 Share Posted October 10, 2006 You could also setup a group band. You can then setup your Print When expression to be new Boolean(if($F{BEGCYC6} != null) $F{BEGCYC6}). That would prevent you from writing the same check for each field as well. Link to comment Share on other sites More sharing options...
law Posted October 10, 2006 Author Share Posted October 10, 2006 Thanks a lot. I saw the "Set to null" option few hours after I made a post. 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