Jump to content


  • Posts

  • Joined

  • Last visited

jackiehal's Achievements


Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges



  1. Hello! I want to make a Jasper Report that desplays a field and at the end it sums all the numbers from it. The problem is that the column is java.lang.String because it has dashes(-) and numbers. For example I have the column in the picture. I create a variable that sums every number of the column. For every dash it should add a zero. So for the example column the result should be sum=282. I tried the following. IF(Boolean.valueOf($F{Column}).equals("-") ? $V{Sum} = $V{Sum } + 0 : $V{Sum}= $V{Sum} + Long.parseLong($F{Column})) But it gives an error "The left-hand side of an assignement must be a variable" Does anyone have any ideas on how to do it correctly? Thank you!
  • Create New...