Within a DTML method, I have two forms, each having their action point to back to itself - the DTML method. The query to execute is determined by a dtml-if statement, looking for the NAME from the form. The DTML method id is 'atp_search' <FORM METHOD="GET" ACTION="atp_search"> Enter any character to search by Model #: <INPUT TYPE="Text" NAME="model"> <INPUT TYPE="Submit" VALUE="Go!"> </FORM> <!-- PN search --> <FORM METHOD="GET" ACTION="atp_search"> Enter any character to search by Mfg Part #: <INPUT TYPE="Text" NAME="mfg" > <INPUT TYPE="Submit" VALUE="Go!"> </FORM> <dtml-if model> <dtml-in atp_model size=50 start=query_start> display stuff from the atp_model ZSQL query </dtml-in> </dtml-if> <dtml-if mfg> <dtml-in atp_mfg size=50 start=query_start> display different stuff from the atp_mfg ZSQL query </dtml-in> </dtml-if> -Scott -----Original Message----- From: Lynn Mayes [mailto:LMayes@advpol.com] Sent: Friday, November 02, 2001 1:08 PM To: 'Zope@zope.org' Subject: [Zope] Newbie Question Hi there, Looked through many archived mailing lists, and I don't see specifally what I want - or I didn't look in the right place. In any case, if this is an old question, please forgive me. Couple of things: 1) Working with SQL tables through Zope - Have created queries, and they work fine. However, I would like to create one area (DTML method), where I can have 3 different submit buttons, querying 3 different queries - I am sure this is possible, I just am not too sure how, as this is still new to me. Want to have the user be able to pick what ever he/she wants to query from one location. 2) If I run query A, I get results, but when I try to edit the results page, I can't. I need to edit the query results page, how do I do this? 3) In the SQL table, I have values 1-4 from a option box in an Access from. I want to substitue the 1 for the word use in the query results - how do I do this? Thanx so much for your time. Sincerely, Lynn Mayes _______________________________________________ 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 )
participants (1)
-
Meilicke, Scott