Thanks fo rthe support In my dtml document the DTML-IN tag used to fill the data in my 2nd combobox in my form i'm using a ZSQL method with one param districtname. this value i've to get from the submit of the same form upon selecting from 1st combobox 'districtname'. the dtml-in tag i used goes like this: <dtml-in getDistrictUser (districtname=REQUEST.form.districtname)> <dtml-var username> </dtml-in> error on saving changes: document template parse error, invalid attribute name getDistrictUser(districtname for tag "<dtml-in...." both the parameter name n the first combobox name is "districtname" . i made them similar thinking it wud take the request variable automatically. plz help me out sir.
prabuddha ray wrote at 2005-3-10 07:09 -0000:
... the dtml-in tag i used goes like this: <dtml-in getDistrictUser (districtname=REQUEST.form.districtname)> <dtml-var username> </dtml-in>
Learn about the difference between the "name" attribute and the "expr" attribute. Maybe <http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html> would make a good reading? In short: '<dtml-in XXX>' is equivalent to '<dtml-in name="XXX">' In this case "XXX" is not interpreted as a function call, even when it may look like one. You want '<dtml-in expr="XXX">' which can also be written as '<dtml-in "XXX">' In this case, "XXX" is interpreted not as a name but as a Python expression. The same applied not only to "dtml-in" but to almost all DTML commands. -- Dieter
participants (2)
-
Dieter Maurer -
prabuddha ray