how improving dtml-in nested?
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
mbr wrote at 2006-6-20 09:58 -0500:
... <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?
You idea (and thinking) was very good! -- Dieter
participants (2)
-
Dieter Maurer -
mbr