Jump to content

adding of variables which is of different variable class


agilaganesh92

Recommended Posts

hi,

Iam new to jasper reports. i am having four variables in summary band which are of sum of unique text fields in the detail band. i need to sum those variables in the summary band. 

variable1=100(variable class-java.math.Bigdecimal)

variable2=100(variable class-java.lang.string)

variable3=100(variable class-java.lang.string)

variable4=100(variable class-java.lang.string)

              ___________

                   400

           ____________

 

i tried like $v{variable1}+$v{variable2}+$v{variable3}+$v{variable4} in a static text field. it is not giving correct result. Any one help me in resolving this. Thanks in advance.

 

Thanks

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • 2 weeks later...

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