Hi all.<br><br>I have a table with a list of values. To list my values
in a dtml method i write &lt;dtml-var value&gt; inside the appropriate
dtml-in tag. In the next column I have the &lt;dtml-var
sequence-number&gt;<br><br>
This gives me something like:<br><br>VALUE SEQNUMBER<br>13 1<br>10 2<br>11 3<br>10 4<br>12 5<br>...<br><br>I want to accumulate my values so the result will be:<br><br>VALUE SEQNUMBER ACCU<br>
13 1 56<br>
10 2 43<br>
11 3 33<br>
10 4 22<br>
12 5 12<br>
...<br><br>Is it possible to make this accumulated value as a <br>&lt;dtml-var expr=&quot;[something like sum of values where seq-num &lt;=seq-num]&quot;&gt;<br><br>I
can't do it in the ZSQL that gets the values, as the value field itself
is a calculated value (can only do it on non-calc'd data).
<br>Any other non-SQL suggestions as to how this is achieved is highly appreciated!<br><br>Thanks from Denmark<br><br>Steff