Jump to content
Changes to the Jaspersoft community edition download ×

Field show as null eventhough it's empty


Recommended Posts

I have the following property in my report:

!$F{isg}.booleanValue() ? ""+$F{contactphone} : ""+$F{orgcontactphone}

F{isg} gives False

F{contactphone} is empty (Null)

F{orgcontactphone} contains 05-588887453


For some reason what I see in the report is null

I read this topic:


I thought this was the problem but it isn't. The property is checked.

What can cause this problem?



Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic


If $F{isg} is False then $F{isg}.booleanValue() is false then !$F{isg}.booleanValue()  is true (with the exclamation mark at the beginning makes it the opposite) so it will display ""+$F{contactphone} which in your case seems to be null.

Maybe you could try this expression instead:
$F{isg}.booleanValue() ? ""+$F{contactphone} : ""+$F{orgcontactphone}

(Without exclamation point)


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