> 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 MyVirtualFields class. Like: __init__(self): self.label = "mylabel" > for work with SQLTABLE (or plugin_datatable) we need to add the colname for > every virtual field: myrows.colnames.append('task.teste') > How to append every virtual field to rows.colnames? I think this could be > done in sqlhtml.py as: > for field in sqlrows.virtualfields: > sqlrows.colnames.append('tablename.'+field) > Is it possible? Its late, I can be understanding you wrong. Why you don't want to do it by hand the way it is in your code? myrows.colnames.append('task.teste')