It turns out that in the objects.py, export_to_csv gets the fields from the 
grid, but when getting the column name to be used as the dict key to fetch 
the actual field object, the key is invalid. any idea to quick solve this?
Thanks!

On Thursday, August 9, 2018 at 10:07:19 PM UTC+2, Vic Ding wrote:
>
> I have one virtual field in SQLFORM.grid which works fine. However, when I 
> want to export the grid to CSV, it complains 
>
> <type 'exceptions.KeyError'> '"po"."amount"'
> is it a bug or expected behaviour? 
>
> Thanks!
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to