Jump to content
Changes to the Jaspersoft community edition download ×

Double blank when zero


Recommended Posts

By: Ruben Misrahi - rnmisrahi

Double blank when zero

2003-11-06 13:33

Is it possible to print a blank (or not print obviously) when a field/variable of type Double is zero?

 

 

 

 

 

By: Fred Welland - fwelland

RE: Double blank when zero

2003-11-06 13:43

How about some thing like this:

 

 

<field name="someDoubleVal" class="java.lang.Double"/>

 

........

.......

........

 

<textFieldExpression class="java.lang.String">

( $F{someDoubleVal}.doubleValue() == 0) ? $F{someDoubleVal}.toString() : ""

</textFieldExpression>

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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