example of REQUEST.form.keys() or REQUEST.form.items()?
I've created a form with several dynamically named fields. I can see the fields and the data with <dtml-var "REQUEST.form.items()">, but I don't know how to access the data within a <dtml-in ...> loop. How do I access the variables? The Zope book doesn't say and other documentation/examples has eluded my searching so far. Chris
On Sun, Sep 16, 2001 at 02:23:26PM -0400, Chris Cioffi wrote:
I've created a form with several dynamically named fields. I can see the fields and the data with <dtml-var "REQUEST.form.items()">, but I don't know how to access the data within a <dtml-in ...> loop. How do I access the variables? The Zope book doesn't say and other documentation/examples has eluded my searching so far.
<dtml-in "REQUEST.form.keys()"> Key: <dtml-var sequence-item>, Value: <dtml-var "REQUEST.form[_['sequence-item']]"><br> </dtml-in> <dtml-in "REQUEST.form.items()"> Key: <dtml-var sequence-key>, Value: <dtml-var sequence-item>, </dtml-in> Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
This may help.... <dtml-in "REQUEST.form.items()" sort=sequence-key> <dtml-var sequence-key> : <dtml-var sequence-item> </dtml-in> Tom => -----Original Message----- => From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Chris => Cioffi => Sent: Monday, 17 September 2001 4:23 AM => To: zope@zope.org => Subject: [Zope] example of REQUEST.form.keys() or REQUEST.form.items()? => => => I've created a form with several dynamically named fields. I can see the => fields and the data with <dtml-var "REQUEST.form.items()">, but => I don't know => how to access the data within a <dtml-in ...> loop. How do I access the => variables? The Zope book doesn't say and other => documentation/examples has => eluded my searching so far. => => Chris => => => _______________________________________________ => Zope maillist - Zope@zope.org => http://lists.zope.org/mailman/listinfo/zope => ** No cross posts or HTML encoding! ** => (Related lists - => http://lists.zope.org/mailman/listinfo/zope-announce => http://lists.zope.org/mailman/listinfo/zope-dev ) =>
participants (3)
-
Chris Cioffi -
Oleg Broytmann -
Tom Cameron