On Monday, June 22, 2015 at 4:07:30 PM UTC-7, KevC wrote: > > Hi community. > > I am trying paginate a query well is a sub query, I have differents field > from differents tables and I inserted these in a form, I make a query and I > got many results, What can I do to show this results for example, 10 per > page? > >
On Monday, June 22, 2015 at 4:07:30 PM UTC-7, KevC wrote: > > Hi community. > > I am trying paginate a query well is a sub query, I have differents field > from differents tables and I inserted these in a form, I make a query and I > got many results, What can I do to show this results for example, 10 per > page? > > > *db(table).select()* takes a *limitby* parameter looking like: db(table).select(limitby=(start, stop)) If that doesn't work for you, perhaps you could post your query/queries, so the experts can give more precise advice. /dps -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

