i have two dtml-in nested

....
  <dtml-in ZSQLMethod>
     <tr>
        <td>&dtml-field1; </td><td>&dtml-field2; </td>
        <td>
           <select>
              <dtml-in AnotherZSQLMethod>
                  <option <dtml-if
expr="anotherfield1==field3">selected</dtml-if>
value="&dtml-anotherfield1;">&dtml-anotherfield2;</option>
              </dtml-in>
           </select>
        </td>
     </tr>
  </dtml-in>
....


but they are many calls to AnotherZSQLMethod.
So I am trying this

<dtml-let RS=AnotherZSQLMethod>   <----return results to one variable
  <dtml-in ZSQLMethod>
     <tr>
        <td>&dtml-field1; </td><td>&dtml-field2; </td>
        <td>
           <select>
              <dtml-in RS>
                  <option <dtml-if
expr="anotherfield1==field3">selected</dtml-if>
value="&dtml-anotherfield1;">&dtml-anotherfield2;</option>
              </dtml-in>
           </select>
        </td>
     </tr>
  </dtml-in>
</dtml-let>

i think this is more quick Check data in memory (variable RS) what a
ZSQLMethod. But is real. RS is a result of ZSQL or a instance?


ps. Sorry for my english.
--
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 )

Reply via email to