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

$V{REPORT_COUNT}.intValue() == 1 error


jhustinel

Recommended Posts

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

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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

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...