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

Incompatible operand types Integer and int


namoot

Recommended Posts

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
Link to comment
Share on other sites

  • Replies 2
  • 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...