title: JasperReport how sum values of an sub report?
body: <p>I have this structure of my report:</p>
  
  <pre><code>MAIN
      DETAIL   
          SUB
              DETAIL 1 { date of travel }
              DETAIL 2 { table of orders of date of travel
                  TABLE { 
                      HEADER
                      ROWS
                      FOORTER { SUMMARY VALUES } &lt;- i need sum this
                  }
  
              }
              DETAIL 3 { table of spendings of date of travel
                  TABLE {
                          HEADER
                          ROWS
                          FOORTER { SUMMARY VALUES } &lt;- i need sum this 
                  }
              }
      SUMMARY 
          total : sum of summary values of orders
          total : sum of summary valyes of spendings
  </code></pre>
  
  <p>I have 3 detail bands in my sub report. So.. I need SUM ALL summary of orders and spendings of my travel and print this in MAIN SUMMARY BAND. But how?</p>