Jump to content

How do you sum Variables


wilkanah

Recommended Posts

Hi,

I have a report where in one column i try to show dynamically a variable value based on one or more data fields and certain conditions

 

($P{DEALER_ID}.intValue()!=1 && $F{dealer_id}.intValue()==1)?1.5:$F{dealer_contract}.doubleValue()

 

Such that in my detail band i can have

 

$F{dealer_name}    $F{value}    $V{variable1}

 

$V{variable1} evaluates to the expression above

 

What i want to do is sum up all  $V{variable1} and display the sum in a group header band above.

 

Any pointers will be appreciated.

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