[Zope] dtml-in totals
D. Rick Anderson
ruger@comnett.net
Thu, 14 Feb 2002 12:01:33 -0800 (PST)
------=_J/Y18O'EF0:13auoFjTkC/54haK)hmGR7BtLidIr_'?0XoT)WUJ-_C/t?/-N
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
I need to total variable from a dtml-in and give the result at the bottom.
I can't seem to figure out what needs to be done to get this result. If I
have the following:
<dtml-in sql_statement>
<table>
<tr>
<td>
<dtml-var dollar_amount>
</td>
</tr>
</table>
</dtml-in>
How do I total all the iterations of dollar_amount? Is there a way in dtml
to put a variable in that stores a running total?
TIA
Rick
------=_J/Y18O'EF0:13auoFjTkC/54haK)hmGR7BtLidIr_'?0XoT)WUJ-_C/t?/-N
Content-Type: application/octet-stream;name=""
Content-Disposition: attachment; filename=""
Content-Transfer-Encoding: base64
DQo=
------=_J/Y18O'EF0:13auoFjTkC/54haK)hmGR7BtLidIr_'?0XoT)WUJ-_C/t?/-N--