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/
Sebal wrote:
<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...
Hi... <dtml-in "Catalog(numero_doc=foo)"> ... </dtml-in>
I am not sure if you mean a predefined or stored query. For this you can call: <dtml-in "Catalog({'numero_doc','thedoc'})" size=50 start=query_start> For more details have a look at Chap 9 of the Zope Book. Best regards Arno On Fri, 11 May 2001, Sebal wrote:
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/
_______________________________________________ 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 (3)
-
Arno Gross -
Chris McDonough -
Sebal