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

How to store the value of Expression to a variable?


jhustinel

Recommended Posts

I have a variable $V{Col_Var} 

and I've edited the expression like this : ($F{debit}.intValue()==0 ? -$F{credit}.intValue() : $F{debit}.intValue() )

but when I call the varible in the other expression. It seems that the $V{Col_Var}  variable dont store the value when the expression is already been initialized. 

For example : $V{REPORT_COUNT}.intValue() == 1 ? $P{param1}.intValue()+$V{Col_Var}.intValue():$V{Col_Var}.intValue()  

or even just a simple $V{Col_Var}  to print-out the values after its been initialized.

 

Any ideas on how will i get the value of $V{Col_Var}? Any help is appreciated. Thanks in advance. 

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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