Some of the information here may be outdated, please check the book instead
[edit]

example:

def show_records():
    if len(request.args):
       page=int(request.args[0])
    else: 
       page=0
    query=db.table.id>0 ### for example
    rows=db(query).select(limitby=(page,page+100))
    backward=A('backward',_href=URL(r=request,args=[page-100]) if page else ''
    forward=A('forward',_href=URL(r=request,args=[page+100]) if len(rows) else ''
    return dict(rows=rows,backward=backward,forward=forward)
© 2008-2010 by Massimo Di Pierro - All rights reserved - Powered by web2py - design derived from a theme by the earlybird
The content of this book is released under the Artistic License 2.0 - Modified content cannot be reproduced.