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

sum Variable shows value of last row in the report


atsu

Recommended Posts

I created a sum variable to calculate the total of of every column at the end of the page. The variable only shows the value of the final value in the result set. when I try to set the Expression class to java.lang.Double, the compiler throws the error:

Cannot cast String to Double. Attached is a code and a copy of the file..... Somebody  please help me out.......

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

in the TOTAL_SQUID_QUANTITY variable definition you try to sum the squidQuantity field... but this field is defined (see the field declarations) as a String field...

so this is the reason of your casting error.

 

try to set squidQuantity type to double or float setting TOTAL_SQUID_QUANTITY type to the same one.

give us feedback.

_________________________________________

if it works... give me KARMA points please!    : ) 
_________________________________________

listening:  Underworld - Rez/Cowgirl

 

Link to comment
Share on other sites

  • 8 years 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...