[Zope] Problem using nested dtml-in with zsql
Andreas Jung
lists at zopyx.com
Sat Nov 8 01:21:20 EST 2008
Any particular reason for using DTML instead of ZPT? DTML is dead.
-aj
On 06.11.2008 20:53 Uhr, Miguel Beltran R. wrote:
> Hi list
>
> After read http://plope.com/Books/2_7Edition/AppendixA.stx#2-19 I tried
> use two dtml-in for get information from zsql diferents, but say "This
> resource may be trying to reference a nonexistent object or variable
> *'x_var_region'*."
>
> what is missing?
>
> The first dtml-in (prefix="q") only return one record.
> The second dtml-in return 12 records.
>
> [code]
> <dtml-in expr="zsql_taller(
> zregi=bregi, ztall=btall)"
> prefix="q">
> <p>
> <form class="formulario" action="estado.html" id="main_form"
> name="main_form">
> <input type="hidden" name="accion" value="insertar" />
>
> <ul>
> <li><label for="bregi" class="titulo">REGION</label>
> <select id="bregi" name="bregi">
> <dtml-in dime_region prefix="x">
> <option value="<dtml-var x_var_region>" <--- Here try access tha variable
> <dtml-if expr="x_var_region==q_var_region">selected</dtml-if>
> >
> </option>
> </dtml-in>
> </select>
> </li>
> </ul>
>
> </form>
> <p>
> </dtml-in>
> --
> ________________________________________
> Lo bueno de vivir un dia mas
> es saber que nos queda un dia menos de vida
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Zope maillist - Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
--
ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany
Web: www.zopyx.com - Email: info at zopyx.com - Phone +49 - 7071 - 793376
Registergericht: Amtsgericht Stuttgart, Handelsregister A 381535
Geschäftsführer/Gesellschafter: ZOPYX Limited, Birmingham, UK
------------------------------------------------------------------------
E-Publishing, Python, Zope & Plone development, Consulting
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lists.vcf
Type: text/x-vcard
Size: 316 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20081108/7fbf25d9/attachment.vcf
More information about the Zope
mailing list