[Zope] Trivial problem with sending form variables to an upda
te Zsql met hod..
Peter Borocz
P.Borocz@fi.com
Tue, 15 Jan 2002 18:15:11 -0800
Thanks Tom!
Calling the intermediate dtml page which then calls the zsql update method
worked like a champ..
Much appreciated!!!
Peter Borocz
p.borocz@fi.com
-----Original Message-----
From: Thomas B. Passin [mailto:tpassin@mitretek.org]
Sent: Tuesday, January 15, 2002 11:04 AM
To: zope@zope.org
Subject: Re: [Zope] Trivial problem with sending form variables to an
update Zsql met hod..
[Peter Borocz]
> Group, I've got a vexingly simple problem that'll probably push up another
> level to zope enlightenment. In particular, how to get the variables from
a
> regular HTML form passed through to a zsql method containing an update
> statement>
>
> So, a (paraphrased) simple dtml-document page like this:
>
> <dtml-in zsqlQueryARecord>
> <form action="zsql_UpdateRecord">
> <input name="keyField" type="hidden" value="<dtml-var keyField>">
> <textarea name="contentsField">
> <dtml-var contentsField>
> </textarea>
> <input type="submit">
> </form>
> <dtml-in>
>
Do I understand this right - your web page has a series of forms, one per
row from zsqlQueryARecord? And the user would be sending a text comment
against any one of these rows at a time?
As invoked, zsql_UpdateRecord probably will not be getting any namespace
passed to it, and it will have none of its own. So it can't find the form
data.
Normally, I would use a dtml document as the target of the form, and that
document would invoke <dtml-call zsql_UpdateRecord>. This way the
parameters get sent to the method by the dtml document.
Cheers,
Tom P
_______________________________________________
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 )
Content-Type: text/plain;
charset="iso-8859-1"
-------------------------------------------------
PLEASE READ THIS WARNING: All e-mail sent to or from this address will be
received or otherwise recorded by the Fisher Investments corporate e-mail
system and is subject to archival, monitoring or review by, and/or
disclosure to, someone other than the recipient.