Jump to content
JasperReports Library 7.0 is now available ×

We need to replace null value with Ellipsis in Jaspersoft


chaitanya.mamunuru

Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Hi,
So, you can use this:

<textFieldExpression>    <![CDATA[($F{Street} != null  ? $F{Street} : " " )+" - "+($F{Number} != null ? $F{Number} : " " )+" - "+($F{Complement} != null ? $F{Complement} : " ")]]></textFieldExpression>[/code]

I caught this of one part of a report I have in my system, it is like a IF, or TERNARY, if the field is different of null he print the field, else he print just a blanc space, you can do this with a variable (I guess), or change the blanc space for a other field or variable.

Hope this helps.

Gabriel Nadoroski

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