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@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: [EMAIL PROTECTED] - 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

begin:vcard
fn:Andreas Jung
n:Jung;Andreas
org:ZOPYX Ltd. & Co. KG
adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany
email;internet:[EMAIL PROTECTED]
title:CEO
tel;work:+49-7071-793376
tel;fax:+49-7071-7936840
tel;home:+49-7071-793257
x-mozilla-html:FALSE
url:www.zopyx.com
version:2.1
end:vcard

_______________________________________________
Zope maillist  -  Zope@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 )

Reply via email to