Newbie-ish dtml-with vs dtml-in question
Hello everyone, Is there a way to use the dtml-in tag, and not iterate over the results? The problem I'm having is that I can call a ZSQL method, and pull a variable out of it using dtml-in, and I get a nice iteration over that variable. But in the case of one of my variables, I just want to pull it out, without iteration. I've tried to do it with both dmtl-call and dtml-with, but they don't do what I want, and I get a key error for that variable. Can any one offer any hints at what I should do? Thanks! Russell
On Thursday, December 6, 2001, at 04:09 PM, Russell Hires wrote:
Hello everyone,
Is there a way to use the dtml-in tag, and not iterate over the results? The problem I'm having is that I can call a ZSQL method, and pull a variable out of it using dtml-in, and I get a nice iteration over that variable. But in the case of one of my variables, I just want to pull it out, without iteration. I've tried to do it with both dmtl-call and dtml-with, but they don't do what I want, and I get a key error for that variable.
not quite sure what you mean... would this do? <dtml-in my_sql_method size=1> <dtml-if sequence-start> do something</dtml-if> </dtml-in> -- tom smith | tom@othermedia.com http://www.othermedia.com/blog 3rd Floor, The Pavilion, Newhams Row, London, SE1 3UZ 0207 089 5959
Russell Hires writes:
... The problem I'm having is that I can call a ZSQL method, and pull a variable out of it using dtml-in, and I get a nice iteration over that variable. But in the case of one of my variables, I just want to pull it out, without iteration. I've tried to do it with both dmtl-call and dtml-with, but they don't do what I want, and I get a key error for that variable.
<dtml-let result=SQL_Method> <dtml-with expr="result[0]"> <dtml-var your_column> </dtml-with> </dtml-let> Dieter
participants (3)
-
Dieter Maurer -
Russell Hires -
Tom Smith