justdk Posted February 3, 2010 Share Posted February 3, 2010 HiI have a problem some of my boxes contains 10 parameters, sometime some of the parameters may be null.How do I stop them from showing null?I have set blankWhenNull to true. But when I have multiple parameters in the same box it doesn’t seem to matter.I have seen some use null!=$F{invoiceNumber} ? $F{invoiceNumber} : " "But when I have 10 parameters it’s going to be a lot of code.Isn’t there a simple way to fix this? Link to comment Share on other sites More sharing options...
rkm258 Posted February 3, 2010 Share Posted February 3, 2010 when u are using all parameters in the same text field element, i don't think u have any other option. blankWhenNull works when the field itself returns null.Other option is to use duplicate parameters, one to hold values and other to check for null and give an appropriate value. Link to comment Share on other sites More sharing options...
justdk Posted February 3, 2010 Author Share Posted February 3, 2010 could you show an example with duplicate values 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