Re: [Zope] Help with Nested ZSQL methods

2000-11-29 Thread Dieter Maurer

[EMAIL PROTECTED] writes:
 > ... passing parameters to Z SQL methods ...
This is an FAQ.

You already know the searchable list archive at NIP?

Z SQL methods do *NOT* take parameters from the DTML
namespace. They only look at "REQUEST".

You have two options:

 1. put your parameters into the REQUEST object:




 2. call the Z SQL method with explicit parameters:




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 )




Re: [Zope] Help with Nested ZSQL methods

2000-11-29 Thread Pavel V. Piankov

try calling like this : 
also you might what to use dmt-sql var instead of dtml-var inside ZAQL
Methods.


regards
--
pashah


>Here's the operative part of the dtml method that calls these methods:
>==
>
> 
> Item No.DescriptionMn/DOT
>No.Units
> 
>  
>   
>   
>   
>   
> 
> 
> 
>
>==
>
>I get the error:
>
>Error Type: Bad Request
>Error Value: ['SchedID']
>
>I suspect there is some type of namespace-related problem going on here
>where the var SchedID is not getting passed to the internal ZSQL method.
>
>P. Johnson



___
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 )