Jump to content

How to stop null from showing up on the report


justdk

Recommended Posts

Hi

I 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

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...