Please open a ticket. This may be a bug and an easy one to fix. On Monday, 20 April 2015 17:55:19 UTC-5, drm...@gmail.com wrote: > > 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 DIV and small amount of > javascript (actually using Nathan Freeze's client tools, excellent bit of > kit!), selecting an item from the combobox causes an AJAX call back to > web2py. The AJAX call returns an SQLFORM.grid, looks good! > > But when I click the CSV download button Excel opens up with a bunch of > HTML instead of the CSV contents of the grid. In fact it looks like the > HTML doesn't include any of the grid's contents. > > I believe that the CSV URL that gets created by the SQLFORM.grid is > presuming that the grid itself is included in the original URL download so > that the grid will see the CSV download request. Since the grid is download > through AJAX the CSV URL is incorrect and I just get the original HTML with > the combobox and empty DIV. > > Is there a way to "tell" the grid what the actual URL should be for the > CSV? > > Thanks, > -Michael > > >
-- 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.