15 Apr
2002
15 Apr
'02
7:04 a.m.
zopedan writes:
I know this will sound dumb to you but when dealing with ZSqlMethod in loops use <dtml-var "correction"> not <dtml-var correction>
If I put <dtml-var "correction">, I've got : Error Value: global name 'Correction' is not defined with <dtml-var correction >, I've got : Error Value: Correction The problem is the dtml-with as Dieter Maurer suggest :
"treat" returns a sequence of "Done" records. While a single "Done" record has a "correction" attribute, the sequence does not.
Try: '<dtml-with expr="treat[0]">' ....
This works fine. -- Christophe DELARUE E-Generis Tel.: (+33) 299 842052 Fax.: (+33) 299 639331 13, sq. du Chene Germain / 35510 Cesson-Sevigne / France mailto:cdelarue@e-generis.com