[web2py] Re: csv download problem from an SQLFORM.grid populated by an AJAX call

2015-04-25 Thread drmbded
> > While putting together an example of the error I found that my example >> worked fine, in fact I'm getting HTML instead of CSV from a grid that was >> not created from an AJAX call. >> > This must be something that I've cause but with such a simplified application I'm stumped as to what is

[web2py] csv download problem from an SQLFORM.grid populated by an AJAX call

2015-04-20 Thread drmbded
I regularly use the SQLFORM.grid, does exactly what I need with very little effort. Recently I've been doing a lot more with AJAX to enhance how my pages look and feel. But when combining AJAX with the grid, my CSV downloads don't work as expected. In a simple page with only a combobox an empty

[web2py] sqlform.grid populated with an AJAX call, grid search doesn't work correctly

2015-03-04 Thread drmbded
I have a relatively simple page which has a drop down selection and an empty DIV. When a user selects an item from the drop down an ajax call back to web2py creates an sqlform.grid with a left join query and populates the empty DIV with the grid. This works great. Now if I use the search capabi

Re: [web2py] how to set a default represent for all fields

2014-10-14 Thread drmbded
I was expecting an elegant web2py solution but brute force works too. 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

[web2py] how to set a default represent for all fields

2014-10-13 Thread drmbded
I've gotten several "complaints" from my users about fields that display the value None. In some cases the actual field value could be None verses the database field just being empty (and displaying the value None). I've started using represent when I describe my tables so that an empty field d