[Zope] Problem using nested dtml-in with zsql

Miguel Beltran R. yourpadre at gmail.com
Thu Nov 6 14:53:05 EST 2008


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20081106/31353b3a/attachment.html 


More information about the Zope mailing list