[Zope] Passing Arguments to a dtml menthod

Rob Senk SenkR@mascorp.com
Tue, 16 Apr 2002 09:50:14 -0700


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_01C1E566.C7A035F8
Content-Type: text/plain;
	charset="ISO-8859-1"

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_01C1E566.C7A035F8
Content-Type: text/html;
	charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DISO-8859-1">


<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D590513816-16042002>I =
created ZSQL query=20
and added an argument using the </SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D590513816-16042002>issue_id=3D&lt;dtml-sqlvar&nbsp;Item_Id=20
type=3Dstring&gt;</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D590513816-16042002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D590513816-16042002>and =
placing=20
"Item_Id" in the Arguments field.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D590513816-16042002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D590513816-16042002>Then =
Created a=20
Search method&nbsp;(mymethod) which&nbsp;uses&nbsp;the ZSQL query via =
the=20
standard &lt;dtml-in theZSQLquery&gt;.............</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D590513816-16042002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D590513816-16042002>Now I =
can create a=20
hyperlink and pass the argument via&nbsp;adding the =
&nbsp;"?Item_Id=3DABC123" to=20
the end and I get the expected results.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D590513816-16042002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D590513816-16042002>However I want to be=20
able to do:</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D590513816-16042002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D590513816-16042002><FONT =

size=3D3>&lt;dtml-var "mymethod(_, _.None,=20
Issue_Id=3DABC123)"&gt;<BR></FONT></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D590513816-16042002><FONT =
size=3D3>or=20
</FONT></SPAN></FONT></DIV><FONT size=3D2><SPAN =
class=3D590513816-16042002><FONT=20
size=3D3>
<DIV><BR><FONT face=3DArial>&lt;dtml-let =
Item_Id=3D"ABC123"&gt;&lt;dtml-var=20
mymethod&gt;&lt;/dtml-let&gt;</FONT></DIV>
<DIV><FONT face=3DArial></FONT>&nbsp;</DIV>
<DIV><SPAN class=3D590513816-16042002></SPAN><FONT face=3DArial><FONT =
size=3D2>B<SPAN=20
class=3D590513816-16042002>oth of which return Missing Input Variable=20
Item_Id</SPAN></FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2><SPAN=20
class=3D590513816-16042002></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial><FONT size=3D2><SPAN=20
class=3D590513816-16042002></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial><FONT size=3D2><SPAN =
class=3D590513816-16042002>Any Help is=20
most appreciated.&nbsp; I must me missing something basic but I can =
find anyone=20
else that has writting about this......It should work=20
right?!!!!!!</SPAN></FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2><SPAN=20
class=3D590513816-16042002></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial><FONT size=3D2><SPAN=20
class=3D590513816-16042002>Thanks</SPAN></FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2><SPAN=20
class=3D590513816-16042002></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial><FONT size=3D2><SPAN=20
class=3D590513816-16042002>Rob</SPAN></FONT></DIV>
<DIV><BR><BR></FONT></FONT><FONT =
face=3DArial>&nbsp;</FONT></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D590513816-16042002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D590513816-16042002>&nbsp;</SPAN></FONT></DIV></BODY></HTML>

<P><FONT SIZE=3D2 FACE=3D"Arial">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>

------_=_NextPart_001_01C1E566.C7A035F8--