[web2py] Re: drop down for grid or smart grid search fields

2013-10-25 Thread Sarbjit
Thanks a lot Paolo Caruccio!! On Friday, October 25, 2013 6:39:46 PM UTC+5:30, Paolo Caruccio wrote: > > It's not necessary modify the code in gluon. > You could replace the text input in the query panel. For example: > > 1) in db.py we define our table > > db.define_table('contact', >Field(

[web2py] Re: drop down for grid or smart grid search fields

2013-10-25 Thread Paolo Caruccio
It's not necessary modify the code in gluon. You could replace the text input in the query panel. For example: 1) in db.py we define our table db.define_table('contact', Field('name'), Field('phone')) 2) in default.py we define our controller to create the grid def contacts(): grid=SQ

[web2py] Re: drop down for grid or smart grid search fields

2013-10-25 Thread Sarbjit
I was looking at the code in gucon.sqlform elif (field.type.startswith('reference ') or field.type.startswith('list:reference ')) and \ hasattr(field.requires,'options'): value_input = SELECT( *

[web2py] Re: drop down for grid or smart grid search fields

2013-10-25 Thread Sarbjit
On Wednesday, October 23, 2013 9:01:23 AM UTC+5:30, Sarbjit wrote: > > Can someone please help. > > On Tuesday, October 22, 2013 4:39:00 PM UTC+5:30, Sarbjit wrote: >> >> I am using GRID for displaying my database results. I want to use search >> feature provided by GRID/SMARTGRID where users ca

[web2py] Re: drop down for grid or smart grid search fields

2013-10-22 Thread Sarbjit
Can someone please help. On Tuesday, October 22, 2013 4:39:00 PM UTC+5:30, Sarbjit wrote: > > I am using GRID for displaying my database results. I want to use search > feature provided by GRID/SMARTGRID where users can build queries and get > the results. I want to have a drop down field popula