Are you saying you simply want to display all the records in case the user 
does a search? What if the query returns thousands of records? Anyway, in 
the case of a search, you can always set "paginate" to be sufficiently high:

grid = SQLFORM.grid(..., paginate=200 if request.get_vars.keywords else 20)

Anthony

On Wednesday, May 7, 2014 1:46:26 PM UTC-4, Kyle Flanagan wrote:

> Is there a straightforward way to get a Rows object representing ALL the 
> rows referred to by SQLFORM.grid? 
>
> Something similar to grid.rows, which is good, but it only gives a Rows 
> object with the rows currently being displayed on that page. 
>
> I'd like to allow the user to search using the grid, then get a Rows 
> object representing the queries rows.
>

-- 
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.

Reply via email to