[Zope] dtml-in totals...

Michael Fox Michael@CenturySoftware.com.au
Tue, 3 Sep 2002 11:09:29 +1000


Hi *,

I have a dtml-in occurance, which returns several columns from a table, =
all of which are numeric values, but strings.

Each is a different quantity of something, and I want to be able to =
display the total for each column.

What I'm trying to get at is this...

<dtml-in myZSQLMethod>

    <td>&nbsp;</td>
    <td><dtml-var qty1></td>
    <td><dtml-var qty2></td>
    <td><dtml-var qty3></td>

  <dtml-if sequence-end>

    <td>Total</td>
    <td>total for qty1</td>
    <td>total for qty2</td>
    <td>total for qty3</td>

  </dtml-if sequence-end>

<dtml-in>

My question is what logic do I use to calculate these totals?

Cheers,
Michael