Hi!

I'm using a report that must return one instance by page, but it's not
working very well... If the query returns more than one result, Zope
presents only two pages. I'm using Zope 2.1.6 in a Linux box.

Here are a excerpt of the dtml code used:

<dtml-in
        sqlQuery
        size=1
        orphan=1
        overlap=0
        start=query_start>

  <dtml-if sequence-start>
    <dtml-if previous-sequence>
      <a href="<dtml-var URL><dtml-var
sequence-query>query_start=<dtml-var previous-sequence-start-number>">
      (previous)</a>

    </dtml-if previous-sequence>

    <table>
  </dtml-if sequence-start>

     ... a lot of <tr><td> ...

  <dtml-if sequence-end>
    </table>
    <dtml-if next-sequence>
      <a href="<dtml-var URL><dtml-var
sequence-query>query_start=<dtml-var next-sequence-start-number>">
        (next)</a>
    </dtml-if next-sequence>

  </dtml-if sequence-end>

<dtml-else>
<p>
No records.
</p>

</dtml-in>

In case someone is wondering about the utility of a report with only one
record per page, all I can say is that this is a very big one record,
and the original idea was to present only one record at time.

-- 
César A. K. Grossmann [EMAIL PROTECTED] http://members.xoom.com/ckant/
http://www.halcyon.com/sciclub/cgi-pvt/instr/instr.html

_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to