The grid allows you to implement a custom search widget (via the "search_widget" argument) as well as a custom server-side search function (via the "searchable" argument) to build a query based on the keywords returned by the widget. This isn't well documented, so you'll have to look at the source code to figure out what the widget and "searchable" function should look like.
Anthony On Friday, November 28, 2014 2:45:07 PM UTC-5, nick name wrote: > > I want to let the user do a query and paginate through the resulting > table. grid/smartgrid would be great, except that I need to supply the > query through a form and not leave it open -- the query has minimum and > maximum values for most fields, multiple selects for others (I build the > search query form itself with SQLFORM.factory, though it can be done any > other way). > > Is there a simple way to do this using grid? > > If not, is there a simple way to do this within SQLform, like add "first > page", "last page", "next page" and "prev page" buttons that would resubmit > the form with a hidden field of "page" that changes between calls? > > I would much prefer grid (or similar), so that I would also get result > sorting for free, etc. > -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.