Andrew Kenneth Milton writes:
 > +----[ [EMAIL PROTECTED] ]---------------------------------------------
 > | I tried to embed an SQL method statement inside my <dtml-in> listing, the
 > | problem I'm facing was, will Z sql method detact the value I passed in, let
 > | say :
 > | 
 > | # This is my first listing
 > | <dtml-in abc_sql_statement>
 > |      #another sql_statement
 > |      <dtml-in bcd_statement>
 > |           <dtml-var xyz>
 > |      <dtml-in>
 > | </dtml-in>
 > | #  The bcd_statement will not be requested by a form
 > The inside loop bcd_statement needs to have the values passed to it
 > explicitly, because values from the outer dtml-in will not be 
 > acquired.
 > 
 > So...
 > <dtml-in "bcd_statement(a=a, b=b, c=c)">
Alternatively, you could place the values from "abc_sql_statement"
into the "REQUEST" object:

        <dtml-call "REQUEST.set(a=a)">
        ....


Dieter

_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
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 )

Reply via email to