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

neil.gambin

Members
  • Posts

    2
  • Joined

  • Last visited

neil.gambin's Achievements

Newbie

Newbie (1/14)

  • Dedicated Rare
  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare

Recent Badges

0

Reputation

  1. Hi All, I am new to JasperSoft and I am having some difficulty with the coding of a variable - The variable I am trying to create is similar to that the concept of Bands - i.e - If amount less than 5K, display 5, if Amount greater than 5000.01 and smaller than 10K, display 10... so on. The basis of the variable expression is as follows - ( $F{amount}.compareTo( new java.math.BigDecimal("1") ) >= 1 ) ? "€ 5.00" : "NA" - I have tried creating seperate variables but everytime i add variables using the '+' function, it displays both the 5 and 10 and NA in the field. Any ideas on how I can overcome this? Thanks.
×
×
  • Create New...