[web2py] Re: Global search form example

2015-03-20 Thread Ron Chatterjee
you can put this in layout.html above the NAV section. Thats how Leonel taught me. form = FORM(INPUT(_name='Search', requires=IS_NOT_EMPTY()),INPUT(_type='submit')) On Friday, March 20, 2015 at 9:21:58 AM UTC-4, Gael Princivalle wrote: Hi Ron. For the moment I've not done this function,

[web2py] Re: Global search form example

2015-03-20 Thread Gael Princivalle
Hi Ron. For the moment I've not done this function, I'll do it asap. Thank you for this suggestion, but using response.title the search function will search only in title pages, right? Il giorno venerdì 20 marzo 2015 01:44:00 UTC+1, Ron Chatterjee ha scritto: Were you able to find a way

[web2py] Re: Global search form example

2015-03-19 Thread Ron Chatterjee
Were you able to find a way around for the global search option. I believe one way you can do this is to create a form and call that form in menu.py using response.title. I am sure there are lot of other ways. Any thoughts? On Wednesday, March 11, 2015 at 4:43:29 AM UTC-4, Gael Princivalle

[web2py] Re: Global search form example

2015-03-11 Thread Gael Princivalle
Thanks Ron but I've don't understand your answer, and I've don't find anything about this question page 84 of the web2py_manual_5th.pdf book. Anyway I can imagine the solution is crawling all searchable fields in all tables, saving in the for loop all rows references (function/args), and

Re: [web2py] Re: Global search form example

2015-03-10 Thread Johann Spies
On 9 March 2015 at 20:08, Ron Chatterjee achatterjee...@gmail.com wrote: SQLFORM.build_query[(db.table.field)] Passing a list ([]) into that will give you a text in that field. and then you can use a form input to do the display like the book on page 84 on the book. Damn I am getting good at

[web2py] Re: Global search form example

2015-03-09 Thread Gael Princivalle
Sure. The search field at the top: http://www.chainreactioncycles.com/us/en Il giorno lunedì 9 marzo 2015 17:47:09 UTC+1, Ron Chatterjee ha scritto: Can you give an example of global Search. Any reference site? On Monday, March 9, 2015 at 12:18:54 PM UTC-4, Gael Princivalle wrote: Hello

[web2py] Re: Global search form example

2015-03-09 Thread Ron Chatterjee
Can you give an example of global Search. Any reference site? On Monday, March 9, 2015 at 12:18:54 PM UTC-4, Gael Princivalle wrote: Hello all. I would like to add a global search form in a website, the classical one with one field and a search button. I've got some idea's about how doing

[web2py] Re: Global search form example

2015-03-09 Thread Ron Chatterjee
SQLFORM.build_query[(db.table.field)] Passing a list ([]) into that will give you a text in that field. and then you can use a form input to do the display like the book on page 84 on the book. Damn I am getting good at this! On Monday, March 9, 2015 at 1:44:23 PM UTC-4, Gael Princivalle