-----Original Message----- From: Arpad Kiss <sekter@mail.matav.hu> To: Timothy Grant <tjg@avalongroup.net> Date: Monday, February 01, 1999 10:37 AM Subject: Re: [Zope] Newbie DTML question
-----Original Message----- From: Timothy Grant <tjg@avalongroup.net> To: Zope Folk <zope@zope.org> Date: Monday, February 01, 1999 7:55 AM Subject: [Zope] Newbie DTML question
Hi again,
Is it possible to create a variable under DTML and assign it a value? Yes it is. Folders have manage_AddProperty, manage_ChangeProperties and manage_DelProperties. You can use them with <!--#call "... "--> tag. Look them up in Z Online Help.
I can figure out how to assign the properties of a document or folder, but I cannot figure out how to assign a value to a one-off variable that I
need
temporarily.
I have messed around with _.namespace(), but nothing I do there seems to work correctly. Any example?
Also, it seems that it is possible to create an indirect variable when doing forms processing e.g.,
<td> <B><!--#var Category--></B> </td> <td> <select name=<!--#var Category--> size=1> <!--#in "PriceTable(PriceGroup=_['Category'])"--> <option><!--#var Description--> <!--#/in--> </select> </td>
As far as I can tell I'm creating a select box named with whatever happens to be stored in Category at the moment. However, I can't seem to access the contents of the indirect variable.
Any light that can be shed would be greatly appreciated. -- Stand Fast, tjg. =================================== Timothy J. Grant tjg@avalongroup.net Avalon Technology Group www.avalongroup.net (503) 246-3630 voice (503) 246-3124 fax
This message may be digitally signed with PGP. A PGP signature guarantees that this message really did come from me. For more information regarding digital signatures and encryption, please contact me.
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope