Could you try to remove the stepWidth attributes? maxRows works in the
bookstore example

Henner

> -----Ursprüngliche Nachricht-----
> Von: kangi [mailto:[EMAIL PROTECTED] 
> Gesendet: Donnerstag, 17. Februar 2005 08:21
> An: jdbforms-interest@lists.sourceforge.net
> Betreff: [dbforms] how to navigate to the next 10 rows
> 
> hi,
>     i have one table called ODS_NE with about 20 thousand 
> records, i want to list 10 every page, i have the following codes:
> <db:dbform multipart="false" autoUpdate="true" 
> followUp="/ODS_NE_list.jsp" maxRows="10" tableName="ODS_NE"> 
> <db:header> <db:errors/>  <table align="center" >
>   
> <tr class="clsHeaderDataTableRow"><td 
> class="clsHeaderDataTableCell"> <db:message 
> key="ID"/></td><td class="clsHeaderDataTableCell"> 
> <db:message key="OID"/></td><td 
> class="clsHeaderDataTableCell"> <db:message 
> key="ROOMNAME"/></td><td class="clsHeaderDataTableCell"> 
> <db:message key="CODE"/></td><td 
> class="clsHeaderDataTableCell"> <db:message 
> key="NETYPE"/></td><td class="clsHeaderDataTableCell"> 
> <db:message key="NAME"/></td><td 
> class="clsHeaderDataTableCell"> <db:message 
> key="ALIAS"/></td><td class="clsHeaderDataTableCell"> 
> <db:message key="ABBREV"/></td><td 
> class="clsHeaderDataTableCell"> <db:message 
> key="APPLYFORID"/></td><td class="clsHeaderDataTableCell"> 
> <db:message key="SOFTWAREVERSION"/></td><td 
> class="clsHeaderDataTableCell"> <db:message 
> key="PROJECTID"/></td><td class="clsHeaderDataTableCell"> 
> <db:message key="NEINSERVICEID"/></td><td 
> class="clsHeaderDataTableCell"> <db:message 
> key="NAMEINEMS"/></td><td class="clsHeaderDataTableCell"> 
> <db:message key="VERSION"/></td></tr> </db:header> <db:body 
> allowNew="false"><tr class="<%= (i++%2==0) ? 
> "clsOddDataTableRow" : "clsEvenDataTableRow" %>"><td><a 
> href="<db:linkURL href="/ODS_NE_single.jsp" 
> tableName="ODS_NE" position="<%= position_ODS_NE %>"/>" ><%= 
> currentRow_ODS_NE.get("ID") %></a>&nbsp;</td> <td><%= 
> currentRow_ODS_NE.get("OID") %>&nbsp;</td> <td><%= 
> currentRow_ODS_NE.get("ROOMNAME") %>&nbsp;</td> <td><%= 
> currentRow_ODS_NE.get("CODE") %>&nbsp;</td> <td><%= 
> currentRow_ODS_NE.get("NETYPE") %>&nbsp;</td> <td><%= 
> currentRow_ODS_NE.get("NAME") %>&nbsp;</td> <td><%= 
> currentRow_ODS_NE.get("ALIAS") %>&nbsp;</td> <td><%= 
> currentRow_ODS_NE.get("ABBREV") %>&nbsp;</td> <td><%= 
> currentRow_ODS_NE.get("APPLYFORID") %>&nbsp;</td> <td><%= 
> currentRow_ODS_NE.get("SOFTWAREVERSION") %>&nbsp;</td> 
> <td><%= currentRow_ODS_NE.get("PROJECTID") %>&nbsp;</td> 
> <td><%= currentRow_ODS_NE.get("NEINSERVICEID") %>&nbsp;</td> 
> <td><%= currentRow_ODS_NE.get("NAMEINEMS") %>&nbsp;</td> 
> <td><%= currentRow_ODS_NE.get("VERSION") %>&nbsp;</td> </tr> 
> </db:body>
> <db:footer></table>     
> <center>
> <hr width="400"/>
> <db:navPrevButton stepWidth="20" styleClass="clsButtonStyle" 
> style="width:90" caption="Previous"/> <db:navNextButton 
> stepWidth="20" styleClass="clsButtonStyle" style="width:90" 
> caption="Next"/> <db:navNewButton styleClass="clsButtonStyle" 
> followUp="/ODS_NE_single.jsp" caption="Insert new ..."/> 
> </center> </db:footer> </db:dbform>
> 
> 
>     but it doesn't work, the first 10 records can be shown 
> correctly, but when i click the "next" button, still the 
> first 10 records are listed, it doesn't work, why?
> 




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
DbForms Mailing List

http://www.wap-force.net/dbforms

Reply via email to