jhustinel Posted February 5, 2015 Share Posted February 5, 2015 new java.lang.Integer($V{REPORT_COUNT}.intValue()== 1) ? ($P{param1} + $V{variable3}):($V{variable3})Expression is not working. I really dont know what the error is. "==1" is underlined in red so I think the error is there. EDITED: It seems that I cant get/store the value of expression to the variable3 because I've just query it in expression. Any solutions or other way to get the value of expression and store it in the variable3? Thanks in advance. Link to comment Share on other sites More sharing options...
meek Posted February 5, 2015 Share Posted February 5, 2015 Is this the exact expression you are using? Because right now you are calling the constructor of Integer with a boolean parameter, which won't work. Link to comment Share on other sites More sharing options...
jhustinel Posted February 6, 2015 Author Share Posted February 6, 2015 I Update it with : $V{REPORT_COUNT}.intValue() ==1 ?$P{param1}.intValue()+$V{Col_Var}.intValue():$V{Col_Var}.intValue() - It seems that the expression in the Variable "Col_Var" don't store the value after its been query. expression inside the Col_Var : ($F{debit}.intValue()==0 ? -$F{credit}.intValue() : $F{debit}.intValue()) - this query seems to be working. 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