Jump to content
Changes to the Jaspersoft community edition download ×

blank when null in text field


olehenrik

Recommended Posts

Hi,

 

I'm using iReport 1.2.8 and have an issue concerning text field with concatenated fields with styled text (using underline for query fields).

If the "Blank when null" is checked and its contains static text inside the text field the database fields ($F{}) will return null (if the field has no value).

 

I could use a NVL(test,' '), but the space will be underlined. Is there a way to avoid this problem?

 

Regards

Ole Henrik

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

You can try something like this in your field expression:

 

("Your static text "+(($F{field}!=null)?$F{field}:""))

 

Or, if you don't want your static text to be visible when the field is null, try putting $F{field}!=null in your "Print when expression".

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