[Zope] what if the query gives no records?

siva k mannis2000 at hotmail.com
Tue Apr 10 07:36:22 EDT 2007


Hi,

A very basic question: a dtml-in loop calls an zsql method
it works fine when there is data but when there is no data
it should display no records found. But it displays nothing when
there are no records. Please suggest a soultion


<dtml-in     "select_something(parameter=parameter ,parameter1=parameter1)">

  <dtml-if "_['sequence-start']==_['sequence-end']">
no records found

   <dtml-else>
<dtml-var fieldname>

</dtml-if>

</dtml-in>

thanks,

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



More information about the Zope mailing list