Virtual fields can already be added to Rows
objects: http://web2py.com/book/default/chapter/06#Virtual-Fields.
Also, SQLTABLE takes an 'extracolumns' argument, like this:
extracolums = [{'label':A('Extra',_href='#'),
'class': '', #class name of the header
'width':'', #width in pixels or %
'content':lambda row, rc:
A('Edit',_href='edit/%s'%row.id),
'selected': False #agregate class selected to this
column
}]
And SQLFORM.grid takes a 'links' argument, which can be used to add extra
columns.
Anthony
On Sunday, November 27, 2011 7:30:15 AM UTC-5, villas wrote:
>
> I know we had this discussion about a year ago and Bruno et al wrote their
> own code and proposed patches to try and get around this limitation, which
> also limits the usefulness of SQLTABLE.
>
> I just wondered if we had any new methods or techniques to add columns
> etc to the rows object.
>
> Thanks,
> David
>