vmsteps Posted July 23, 2012 Share Posted July 23, 2012 Hello All, I have a field in my report that i want not to print if another field is null. I have tried the "isEmpty(true)" but to no avail. what expression would work for what I am trying to achomplish.Thank you in Advance,-Vlad Link to comment Share on other sites More sharing options...
cmatthews Posted July 23, 2012 Share Posted July 23, 2012 Try this on the field you want to only print conditionally ... In the "Print When Expression"new Boolean($F{myField} != null) Link to comment Share on other sites More sharing options...
vmsteps Posted July 25, 2012 Author Share Posted July 25, 2012 Thanks for the help cmatthews, I wasn't able to get that to work for the null field. Instead I created another column that would be zero if it is null so I have: new Boolean($F{myField} != 0) Link to comment Share on other sites More sharing options...
Djo_hn Posted April 11, 2013 Share Posted April 11, 2013 Hi, For doing this, you can try in the "print when expression" : !$F{Myfield}.isEmpty() Link to comment Share on other sites More sharing options...
nileshwarinovio16 Posted November 23, 2016 Share Posted November 23, 2016 @Djo_hnYour answer was perfect and solved my issue also.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