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

namoot

Members
  • Posts

    3
  • Joined

  • Last visited

namoot's Achievements

Newbie

Newbie (1/14)

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

Recent Badges

0

Reputation

  1. hi.. i try to divide two integer variable, and i get this error message : java.lang.ArithmeticException: / by zero maybe it cause zero value in my variable.. and it is.. my variable value is 0. i use this expression new java.lang.Integer($V{RealTIJApel}.intValue()*100 / $V{AnggTIJApel}.intValue()) any idea...??? how to handle this exception..?? thanks before :)
  2. Hi.. help me please.. i have a problem.. i try to give condition on variable.. variable type is Integer ($F{TPARROMBONGANJENIS_FK}==1 ? $F{DUFAN} : 0) when i run in Ireport, no error but when i call from java.. have this error message Incompatible operand types Integer and int value = (java.lang.Integer)(((java.lang.Integer)field_TPARROMBONGANJENIS_FK.getOldValue()) == 1 ? ((java.lang.Integer)field_GSA.getOldValue()) : 0); //$JR_EXPR_ID=43$ i change the variable exspression still didn't work.. $F{TPARROMBONGANJENIS_FK}.intValue== 1 ? $F{PGU}: 0 help me please.. where did i go wrong..??? i'm using Ireport 3.7.2 Post Edited by ramul at 12/01/2010 07:36 Post Edited by ramul at 12/01/2010 07:41
×
×
  • Create New...