[Zope-DB] Passing Database variables
Tuttle, Gene
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.
-----Original Message-----
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
Hi all,
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
page.
Here is my code that creates the list:
list_all_docs is the ZSQL used... just a simple select statement.
<ul>
<dtml-in list_all_docs>
<li>
<dtml-var month>/<dtml-var day>/<dtml-var year> <a
href="items"><dtml-var title></a>
</li><br>
</dtml-in>
</ul>
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.
Thanks,
Billy
_______________________________________________
Zope-DB mailing list
Zope-DB at zope.org
http://mail.zope.org/mailman/listinfo/zope-db
More information about the Zope-DB
mailing list