[Zope] Zcatalog query

Sebal sbaline@excite.com
Fri, 11 May 2001 05:44:49 -0700 (PDT)


I have 2 dtml method in my Catalog folder :
 
-----search_html----
<dtml-var standard_html_header>
<form action="report" method="get">
<h2><dtml-var document_title></h2>
Enter query parameters:<br><table>
<tr><th>Numero doc</th>
    <td><input name="numero_doc"
               width=30 value=""></td></tr>
<tr><td colspan=2 align=center>
<input type="SUBMIT" name="SUBMIT" value="Submit Query">
</td></tr>
</table>
</form>
<dtml-var standard_html_footer>
--------------------
and 
-----report_html----
<dtml-var standard_html_header>
<dtml-in Catalog size=50 start=query_start>
      <table border>
        <tr>
          <th>Title</th>
          <th>Meta type</th>
          <th>Id</th>
          <th>Summary</th>
          <th>Bobobase modification time</th>
          <th>Data record id </th>
        </tr>
       </table>
<dtml-else>
  There was no data matching this <dtml-var title_or_id> query.
</dtml-in>
<dtml-var standard_html_footer>
------------------

<dtml-in Catalog size=50 start=query_start> is called in the context of
"numero_doc". I'd like to know if it's possible to create a context for this
query without passing by a form/submit.
I thought to use <dtml-with> or <dtml-in> but I don't have the right syntax.
THANX...

    ()                       
   /  \                         
  | <> |                   
  (____)   zazen rules ... SBALINE





_______________________________________________________
Send a cool gift with your E-Card
http://www.bluemountain.com/giftcenter/