[Zope] passing a variable from one form to another

Dieter Maurer dieter at handshake.de
Sat Dec 20 13:45:03 EST 2003


Kate Legere wrote at 2003-12-19 16:08 -0500:
>I have a form that opens up, gets date and location from the user and then
>calls an sql method to insert a row with those parameters into a table in
>the database. It also pops open a persistant window with another form to
>collect statistics from the user. This all works well.
>
>The pop-up form calls a sql method and updates  the information in the row
>created above.
>
>I want to pass the date and location to the pop-up form so that the user
>only has to select these the first time (I'll leave a cookie to remember).
>How do I do this - I've been using REQUEST but don't seem to be finding the
>right syntax.

>From Zope's point of view a second form is a second request with
its own "REQUEST" object. This "REQUEST" does not know
anything about the first "REQUEST".

You have to use either parameters (either hidden variables or
parameters in the query string) to pass this information
or use a session (see Zope Book, for details).

-- 
Dieter



More information about the Zope mailing list