Jump to content

How to display the "Unknown" text ?


nikitha

Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

I think you can do it basically like this:

 

Create a static text element and set it to only print when the field is null using "Print When Expression".

 

On your text field, set it to print blank when null.

 

Put the two fields on top of each other.

 

Good luck,

ken

Link to comment
Share on other sites

You can create a Java String variable which you can fill using $F{your_field}==null?"Unknown":$F{your_field}

if your_field is not a String the toString() method can be used to make it a string. This will simplfy the report since you will not have text_fields stacked on top of other text fields. 

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...