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. Once it works, then I could go do all the hard work of writing up the search bar that search through my table based on user query.
Do you know a way to make a search bar on the top of a page in web2py (like one we have on this page or yahoo.com or any other page. Except, I don't want the web search. Search based on whats in my table/database), and then when someone type something redirect that to a page where the table is displayed? It should be a very common feature to have since every page I visit now a days seem to have a search bar with auto completion on upper right corner. It seems I am the only one who needs it. lol. I don't know why its such a big deal for web2py community. Why js? Why can't be done using a python script or web2py routine? Just curious. Since, my only purpose of using python and web2py framework that I don't know jscript that well. Ron On Friday, March 6, 2015 at 9:08:24 AM UTC-5, Richard wrote: > > 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 this select NONE creteria when the user will have to input it own > query). Then you write a little js that check if there is rows or not in > the table and un hide the table when there is row(s)... > > Richard > > > > On Thu, Mar 5, 2015 at 7:20 PM, Ron Chatterjee <achatte...@gmail.com > <javascript:>> wrote: > >> 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 you know a way to do that? >> >> >> >> On Thursday, June 5, 2014 at 10:19:16 AM UTC-4, Jim S wrote: >>> >>> Just dummy'd up this app quickly. >>> >>> Let me know if you have any issues. >>> >>> -Jim >>> >>> >>> On Wednesday, June 4, 2014 10:24:34 PM UTC-5, JoeCodeswell wrote: >>>> >>>> Dear Richard and Jim, >>>> >>>> Would you both please post your sample code? >>>> >>>> I am trying to implement an autocomplete search widget on a >>>> db.contact.l_name field using SQLFORM.grid. >>>> >>>> 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(..., >>>>> search_widget=my_search_widget_function) >>>>> >>>>> ? >>>>> >>>>> Thanks >>>>> >>>>> Richard >>>>> >>>>> >>>>> On Thu, Apr 24, 2014 at 10:38 AM, Jim S <j...@qlf.com> wrote: >>>>> >>>>>> 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. >>>>>> >>>>>> -Jim >>>>>> >>>>>> >>>>>> On Thursday, April 24, 2014 9:18:39 AM UTC-5, Richard wrote: >>>>>>> >>>>>>> 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) >>>>>> --- >>>>>> 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+un...@googlegroups.com. >>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>> >>>>> >>>>> -- >> 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+un...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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.