[Zope] Building a list programmatically under DTML
Timothy Grant
tjg@avalongroup.net
Mon, 06 Sep 1999 18:51:50 -0700
Hi,
I'm working on a project where I need to build a list programmatically
I have tried a number of variations of the following without much
success. Once the list has been built, I need to pass it on to the next
page:
<dtml-call "REQUEST.set('idx', 0)">
<dtml-call "REQUEST.set('desc', [])">
<dtml-call "REQUEST.set('desc_qty', [])">
.
.
.
<td>
<dtml-var expr="_[Category]">
<dtml-if "_[Category][0:2] <> 'No'">
<dtml-call "REQUEST.set('desc[&dtml-idx;]', _[Category])">
<dtml-call "REQUEST.set('desc_qty[&dtml-idx;]', qty)">
<dtml-call "REQUEST.set('idx', idx + 1)">
</dtml-if>
</td>
All help would be greatly appreciated!
--
Stand Fast,
tjg.
Red Hat Certified Engineer tjg@avalongroup.net
Chief Technology Officer www.avalongroup.net
Avalon Technology Group, Inc. (503) 246-3630
>>>>>>>>>>>>Exceptional Minds, Innovative Products<<<<<<<<<<<<