namoot Posted December 1, 2010 Share Posted December 1, 2010 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 messageIncompatible operand types Integer and intvalue = (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.2Post Edited by ramul at 12/01/2010 07:36Post Edited by ramul at 12/01/2010 07:41 Link to comment Share on other sites More sharing options...
svenn Posted December 1, 2010 Share Posted December 1, 2010 ($F{TPARROMBONGANJENIS_FK}.intValue() ==1 ? $F{DUFAN} : new Integer(0)) Assuming both of your field values are Integer and the item your putting the value into is also an Integer Link to comment Share on other sites More sharing options...
namoot Posted December 2, 2010 Author Share Posted December 2, 2010 Thank you so much for your help.. :) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now