[Zope-DB] Passing Database variables
cetuttle at rottlundhomes.com
Fri Jun 11 09:03:23 EDT 2004
I may be wrong here... I am assuming that items is another DTML document.
The parameter you want to pass is the document title.
the href would change to
<href=items?document=<dtml-var title>><dtml-var title></a>
This would pass the document title as a parameter.
The items page would need to retrieve the parameter.
From: Billy [mailto:billy.oconnell at verizon.net]
Sent: June 11, 2004 1:39 AM
To: zope-db at zope.org
Subject: [Zope-DB] Passing Database variables
I have just started using zope, and I hope the problem I am experiencing is
relevant to this group; if not sorry.
I am trying to create a link based on data taken from the database. I am
using dtml method (although, at this point, I am willing to try
anything). The list grabs the date and title of a documents out of the
database and creates the list. The title is shown as a link. When the
link is clicked on, I want to pass these values to another page and print
out the document on its own. I am unable to pass the values to the next
Here is my code that creates the list:
list_all_docs is the ZSQL used... just a simple select statement.
<dtml-var month>/<dtml-var day>/<dtml-var year> <a
This prints out what I want. Now I need to pass the values to the next
page... I have tried using hidden fields with post/get, but with no
luck. Any suggestions would be very appreciated.
Zope-DB mailing list
Zope-DB at zope.org
More information about the Zope-DB