*Solution to the error*:
**
elif headers=='labels':
headers = {}
for c in columns:
(t,f) = c.split('.')
try:
field = sqlrows.db[t][f]
headers[c] = field.label
except KeyError:
> This is my working
> code: http://snipt.net/rochacbruno/virtual-fields-in-sqltabe
> Note the headers=None
> So need to patch the header definition to use the virtualfieldname, or
> better, How to define a label for a virtual field?
I think you can try to add label property to your MyVirtualFiel
This is my working code:
http://snipt.net/rochacbruno/virtual-fields-in-sqltabe
Note the headers=None
So need to patch the header definition to use the virtualfieldname, or
better, *How to define a label for a virtual field?*
*
*
for work with SQLTABLE (or plugin_datatable) we need to add the col
I think this patch needs to be reviewed, as sqlhtml.py changed a lot.
4 matches
Mail list logo