{Disarmed} [web2py] Re: custom filter in grid

2017-08-15 Thread Carlos Cesar Caballero Díaz
Thanks Leonel, I will go with this. Greetings. El 14/08/17 a las 11:34, Leonel Câmara escribió: Here's one way to do it. Note that when I start having this kind of problems I usually stop using the grid and make a custom solution. In the grid, the searchable argument, can be a function. In

[web2py] Re: custom filter in grid

2017-08-14 Thread Leonel Câmara
Here's one way to do it. Note that when I start having this kind of problems I usually stop using the grid and make a custom solution. In the grid, the searchable argument, can be a function. In that case it gets the fields and keywords and its responsibility is to generate and return a

{Disarmed} [web2py] Re: custom filter in grid

2017-08-14 Thread Carlos Cesar Caballero Díaz
Yes, that's a possible solution, but I don't want to duplicate information that is already there, I just want to find a way to use it in the way I need. Greetings. El 11/08/17 a las 16:07, 黄祥 escribió: just an idea why not create the new field with the date type with default value =

Re: {Disarmed} [web2py] Re: custom filter in grid

2017-08-11 Thread 黄祥
just an idea why not create the new field with the date type with default value = request.now? so that user can search through the new date field best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

{Disarmed} [web2py] Re: custom filter in grid

2017-08-11 Thread Carlos Cesar Caballero Díaz
Sitfan, thanks for your answer, I know about that, but is annoying for the users to put datetime values twice and they are asking about use only the day, they don't need to filter in that grid by date and time, just by date. Greetings. El 10/08/17 a las 20:15, 黄祥 escribió: in grid search

[web2py] Re: custom filter in grid

2017-08-10 Thread 黄祥
in grid search form field you can use : table.table_datetime >= "2017-04-04 00:00:00" and table.table_datetime <= "2017-04-04 24:00:00" table.table_datetime >= "2017-04-04 00:00" and table.table_datetime <= "2017-04-04 24:00" table.table_datetime >= "2017-04-04 00" and table.table_datetime <=