[Zope] Problems with response.redirect
Andre Luiz Dourado de Castro
adourado at eln.gov.br
Tue Nov 11 08:05:34 EST 2003
What is wrong with that code ? I´m trying to pass a variable EdtCodigo as a
parameter in expression:
<dtml-call expr="RESPONSE.redirect('02_contratos_altera?codigo=<dtml-var
EdtCodigo>')">
The full code.
<dtml-try>
<dtml-if "operacao=='I'">
<dtml-call "sql_contratos_itens_insert( EdtItem=EdtItem
,EdtDescricao=EdtDescricao
,EdtUnidade=EdtUnidade
,EdtQuantidade=EdtQuantidade
,EdtPrecoFornec=EdtPrecoFornec
,EdtPrecoMontag=EdtPrecoMontag
,EdtEspecificacao=EdtEspecificacao
,EdtCodigo=EdtCodigo)">
<dtml-else>
<dtml-call "sql_contrato_itens_update(EdtCodigo=EdtCodigo,
EdtNumero=EdtNumero,CmbEmpresa=CmbEmpresa)">
</dtml-if>
<dtml-except>
<dtml-var standard_html_header>
<p align="center"> </p>
<p align="center"><b><font face="Arial" size="5">Erro na gravação do
registro !</font></b></p>
<p align="center"><a href="javascript:history.back()"><font
face="Verdana" size="2"><b>Voltar</b></font></a></p>
<p align="center"> </p>
<dtml-var standard_html_footer>
<dtml-else>
<dtml-if "operacao=='I'">
<dtml-call
expr="RESPONSE.redirect('02_contratos_itens_inclui?codigo=<dtml-var
EdtCodigo>')">
<dtml-else>
<dtml-call
expr="RESPONSE.redirect('02_contratos_altera?codigo=<dtml-var EdtCodigo>')">
</dtml-if>
</dtml-try>
Thanks for any help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.zope.org/pipermail/zope/attachments/20031111/8f646610/attachment.html
More information about the Zope
mailing list