[Zope] Looping in DTML
Flavio
flavio@welke.com
Mon, 24 Feb 2003 16:04:07 -0500
Hi,
I would like to know if someone can help me with this one. I need to loop by
a set of variables so I can insert then into my database.
I started looking at the following example:
<dtml-in "16,21,3,49">
item# <dtml-var sequence-index>,<dtml-var sequence-number> = <dtml-var
sequence-item>
</dtml-in>
and it's output
item# 0,1 = 16
item# 1,2 = 21
item# 2,3 = 3
item# 3,4 = 49
So.. I changed the <dtml-in> tag by repalcing the fixed values with one of
my variables. It did worg fine :
<dtml-in description>
<dtml-var sequence-item>
</dtml-in>
The problem is that I need more than one column per line of data
E.G.
<dtml-in (ordnumber,description)>
<dtm-var sequence-item>
</dtml-in>
output
01 Freight
02 Delivery
Is there a way I can do that ?
thanks,
Flavio
---
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.458 / Virus Database: 257 - Release Date: 2/24/2003