I have an SQLMethod (SQLRicercaAnnuncio) that accept a parameter "Parola:tokens" The sql statement is: select * from annunci <dtml-sqlgroup where> <dtml-in Parola> <dtml-unless sequence-start> or </dtml-unless> testo like '%<dtml-var sequence-item>%' </dtml-in> </dtml-sqlgroup> When I test it from inside zope environment it does work properly. I declared an dtml method with an input field named "EditParola". On the submit of this form is called another dtml-method that is this: <dtml-var standard_html_header> <TABLE CELLSPACING="2"> <dtml-in "SQLRicercaAnnuncio(Parola='<dtml-var EditParola>')"> <TR> <TH ALIGN="LEFT" VALIGN="TOP">Id </TH> <td align="center" valign="top"> <dtml-var testo> [This is the field I want to show in table] </TD></TR> </dtml-in> </TABLE> </FORM> <dtml-var standard_html_footer> But I have the following error: Zope Error Zope has encountered an error while publishing this resource. Error Type: InError Error Value: Strings are not allowed as input to the in tag. I don't know: 1) which is the in tag that generates the error? It seem the in tag on the parameter but inside the zope env. it work 2) What am I making wrong? Thank you in advanced, Cesare Cesare Raoss Planning srl Via Bolzano 45 38014 Gardolo (TN) cesare@planningsrl.it http://www.planningsrl.it
In article <OF8859D0AF.CAA6833F-ONC125686A.0061A437@planningsrl.it>, cesare@planningsrl.it writes
I have an SQLMethod (SQLRicercaAnnuncio) that accept a parameter "Parola:tokens"
But I have the following error:
Zope Error
Zope has encountered an error while publishing this resource.
Error Type: InError Error Value: Strings are not allowed as input to the in tag.
I had this error message come up when I upgraded from one version of zope to one of the latest. Eventually I tracked it down to where I had <input type=hidden name=<!--#var tpcode-->:tokens and changing it to <input type=hidden name="<!--#var tpcode-->:tokens" fixed it. Does this help?? ------- Regards, Graham Chiu gchiu<at>compkarori.co.nz http://www.compkarori.com/dynamo - The Homebuilt Dynamo http://www.compkarori.com/dbase - The dBase bulletin
participants (2)
-
cesareļ¼ planningsrl.it -
Graham Chiu