[Zope] Passing Arguments to a dtml menthod
Doyon, Jean-Francois
Jean-Francois.Doyon@CCRS.NRCan.gc.ca
Tue, 16 Apr 2002 12:54:34 -0400
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C1E567.62913440
Content-Type: text/plain;
charset="ISO-8859-1"
Just do:
<dtml-in "mymethod(Item_Id='ABC123')">
do stuff whith the results here
</dtml-in>
J.F.
-----Original Message-----
From: Rob Senk [mailto:SenkR@mascorp.com]
Sent: Tuesday, April 16, 2002 12:50 PM
To: 'zope@zope.org'
Subject: [Zope] Passing Arguments to a dtml menthod
I created ZSQL query and added an argument using the
issue_id=<dtml-sqlvar Item_Id type=string>
and placing "Item_Id" in the Arguments field.
Then Created a Search method (mymethod) which uses the ZSQL query via the
standard <dtml-in theZSQLquery>.............
Now I can create a hyperlink and pass the argument via adding the
"?Item_Id=ABC123" to the end and I get the expected results.
However I want to be able to do:
<dtml-var "mymethod(_, _.None, Issue_Id=ABC123)">
or
<dtml-let Item_Id="ABC123"><dtml-var mymethod></dtml-let>
Both of which return Missing Input Variable Item_Id
Any Help is most appreciated. I must me missing something basic but I can
find anyone else that has writting about this......It should work
right?!!!!!!
Thanks
Rob
Disclaimer: The information contained in this transmission, including any
attachments, may contain confidential information of Matsushita Avionics
Systems Corporation. This transmission is intended only for the use of the
addressee(s) listed above. Unauthorized review, dissemination or other use
of the information contained in this transmission is strictly prohibited. If
you have received this transmission in error or have reason to believe you
are not authorized to receive it, please notify the sender by return email
and promptly delete the transmission.
------_=_NextPart_001_01C1E567.62913440
Content-Type: text/html;
charset="ISO-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=546285316-16042002><FONT face=Arial color=#0000ff size=2>Just
do:</FONT></SPAN></DIV>
<DIV><SPAN class=546285316-16042002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=546285316-16042002><FONT face=Arial color=#0000ff
size=2><dtml-in "mymethod(Item_Id='ABC123')"></FONT></SPAN></DIV>
<DIV><SPAN class=546285316-16042002><FONT face=Arial color=#0000ff size=2>do
stuff whith the results here</FONT></SPAN></DIV>
<DIV><SPAN class=546285316-16042002><FONT face=Arial color=#0000ff
size=2></dtml-in></FONT></SPAN></DIV>
<DIV><SPAN class=546285316-16042002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=546285316-16042002><FONT face=Arial color=#0000ff
size=2>J.F.</FONT></SPAN></DIV>
<DIV><SPAN class=546285316-16042002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Rob Senk
[mailto:SenkR@mascorp.com]<BR><B>Sent:</B> Tuesday, April 16, 2002 12:50
PM<BR><B>To:</B> 'zope@zope.org'<BR><B>Subject:</B> [Zope] Passing Arguments
to a dtml menthod<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=590513816-16042002>I created ZSQL
query and added an argument using the </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=590513816-16042002>issue_id=<dtml-sqlvar Item_Id
type=string></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=590513816-16042002></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=590513816-16042002>and placing
"Item_Id" in the Arguments field.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=590513816-16042002></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=590513816-16042002>Then Created a
Search method (mymethod) which uses the ZSQL query via the
standard <dtml-in theZSQLquery>.............</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=590513816-16042002></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=590513816-16042002>Now I can create a
hyperlink and pass the argument via adding the "?Item_Id=ABC123" to
the end and I get the expected results.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=590513816-16042002></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=590513816-16042002>However I want to
be able to do:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=590513816-16042002></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=590513816-16042002><FONT
size=3><dtml-var "mymethod(_, _.None,
Issue_Id=ABC123)"><BR></FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=590513816-16042002><FONT size=3>or
</FONT></SPAN></FONT></DIV><FONT size=2><SPAN class=590513816-16042002><FONT
size=3>
<DIV><BR><FONT face=Arial><dtml-let Item_Id="ABC123"><dtml-var
mymethod></dtml-let></FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><SPAN class=590513816-16042002></SPAN><FONT face=Arial><FONT
size=2>B<SPAN class=590513816-16042002>oth of which return Missing Input
Variable Item_Id</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=590513816-16042002></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=590513816-16042002></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=590513816-16042002>Any Help is
most appreciated. I must me missing something basic but I can find
anyone else that has writting about this......It should work
right?!!!!!!</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=590513816-16042002></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=590513816-16042002>Thanks</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=590513816-16042002></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=590513816-16042002>Rob</SPAN></FONT></DIV>
<DIV><BR><BR></FONT></FONT><FONT face=Arial> </FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=590513816-16042002></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=590513816-16042002></SPAN></FONT> </DIV>
<P><FONT face=Arial size=2>Disclaimer: The information contained in this
transmission, including any attachments, may contain confidential information
of Matsushita Avionics Systems Corporation. This transmission is intended only
for the use of the addressee(s) listed above. Unauthorized review,
dissemination or other use of the information contained in this transmission
is strictly prohibited. If you have received this transmission in error or
have reason to believe you are not authorized to receive it, please notify the
sender by return email and promptly delete the
transmission.</FONT></P></BLOCKQUOTE></BODY></HTML>
------_=_NextPart_001_01C1E567.62913440--