Hi all.<br><br>I have a table with a list of values. To list my values
in a dtml method i write <dtml-var value> inside the appropriate
dtml-in tag. In the next column I have the <dtml-var
sequence-number><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><dtml-var expr="[something like sum of values where seq-num <=seq-num]"><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