[Zope] Accessing individual items within a list
Thu, 29 May 2003 14:04:23 -0400
> If I display <dtml-var pbtemp[sequence-index], I will see ['11', '22',
> '33']. I need to store each variable in the three seperate=20
> rows in a table.
> Row1 pbtemp
> Row2 pbtemp
> Row3 pbtemp
> I believe I need to use another <dtml-in expr=3D"_.range(3)">=20
> statement but I
> am coming up short in the correct syntax.
First you have to decide what HTML you want to produce. Then you can
work out how to generate it.
I take it that you want something like this -
This is easy - you just put it into the loop you already have -
<tr><td><input type=3D"text" name=3D"pbtemp[sequence-index]"
There is no sense trying tp generate anything if you do not know - at
least have a good idea of - the results you want. Always work out the
If this is not what you had in mind, then please communciate the output