Jump to content
We've recently updated our Privacy Statement, available here ×

How to write conditional expression


kamalisto

Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Hi kamalisto,

what kind of field is your  $F{ELAPSED}? As far as I know this will only work with double or int Values. So if your field is a BigDecimal just try the following term:  ($F{ELAPSED} .doubleValue() < new java.math.BigDecimal(1440).doubleValue() ? "":null)

Please note that this will work with Java, not with Groovy.

HTH

Christina.

Link to comment
Share on other sites

Code:
thanks ckampshoff for your suggestion,

actually i used the other alternative which is write those condition
in report query

eg : select (CASE WHEN ("ISSUE"."RELEASE_DATE" - "ISSUE"."ORI_DEADLINE_DATE") < 0 THEN 'VERY GOOD' END) as ratingDate
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...