[Zope] Simple DTML question: SOLVED

hpinson at indepthl.com hpinson at indepthl.com
Fri Aug 27 16:41:11 EDT 2004


Thanks all-- with some fiddling got it working, based on your 
suggestions. ZPT is better for this!  DTML-IF is a bit 
conterintuitive here.

Anyway, here's what finally worked (simplified):

<table>
<dtml-in SQL_getName>

  <dtml-if sequence-start>
    <tr> 
      <td><strong>Name</strong></td>
    </tr>
  </dtml-if>
  
  <tr align="left" valign="top">
    <td><dtml-var last_name></td>
  </tr>
     
  <dtml-if sequence-end>
  
  </dtml-if>
 
  <dtml-else>
    <p>No records were returned.</p>
  
</dtml-in>
</table>

Harlow Pinson
Indepth Learning
Email: hpinson at indepthl.com 
Web: http://www.indepthl.com
Voice: 505-994-2135
FAX: 208-475-7678



More information about the Zope mailing list