Re: [web2py] .grid() my own search widget possible? How?

2015-03-06 Thread Richard Vézina
What you want I think is plain text search... There is a example using Whoosh, if you search the google group you should find Massimo email annoncing it... Good luck. Richard On Fri, Mar 6, 2015 at 10:44 AM, Ron Chatterjee wrote: > Basically, quick and dirty way to display the search bar on th

Re: [web2py] .grid() my own search widget possible? How?

2015-03-06 Thread Ron Chatterjee
Basically, quick and dirty way to display the search bar on the top of the site using smartgrid without showing the table. Then when someone put a query and hit, "search", be able to redirect to another page. That way, the prototype will be complete without writing a customized search routine.

Re: [web2py] .grid() my own search widget possible? How?

2015-03-06 Thread Richard Vézina
You want the table to pop when there will be results selected? If so, I guess you will need some JS. You will need to init the table with a query that prevent any result to be selected (this query will require to be hiden somehow JS this is the tricky part, you will need to clear behind the scene

Re: [web2py] .grid() my own search widget possible? How?

2015-03-05 Thread Ron Chatterjee
I just posted a question in the web2py group. Searching I came to this post. Since you guys worked on this. What if I do like the default search and want to stick with it and display the search box that comes out of SQLFORM.grid or smartgrid but I don't want to display the table underneath. Do

Re: [web2py] .grid() my own search widget possible? How?

2014-06-04 Thread JoeCodeswell
Dear Richard, Would you (and Jim) please post your sample code? Thanks in advance. Love and peace, Joe On Thursday, April 24, 2014 8:10:01 AM UTC-7, Richard wrote: > > I am reading the sqlhtml.py search_widget... > > So I would just pass my function (search widget) like that : > > SQLFORM.grid

Re: [web2py] .grid() my own search widget possible? How?

2014-04-24 Thread Richard Vézina
I am reading the sqlhtml.py search_widget... So I would just pass my function (search widget) like that : SQLFORM.grid(..., search_widget=my_search_widget_function) ? Thanks Richard On Thu, Apr 24, 2014 at 10:38 AM, Jim S wrote: > Yes, you definitely can. > > I don't

Re: [web2py] .grid() my own search widget possible? How?

2014-04-24 Thread Jim S
Yes, you definitely can. I don't ever use the default search. In a nutshell, you have to create your own search form and then apply the results of that form to the query passed to the grid. Let me know if you need an example and I'll see if I can put a quick one together for you today. -Ji

[web2py] .grid() my own search widget possible? How?

2014-04-24 Thread Richard
Hello, Is it possible to create my own search widget? How does I get the grid to use it? Thanks Richard -- 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) ---