I believe 'extracolumns' is an undocumented feature of SQLTABLE, however, it doesn't seem to work because it throws a ticket. Maybe someone could try something like this and let me know what I'm doing wrong.
extracolumns = [{'label': A('Extra', _href='#'), 'class': '', 'width': '', 'content':lambda row, rc: A('Edit', _href='edit/%s'%row.id), 'selected': False}] SQLTABLE(rows,truncate=35,extracolumns=extracolumns) Once it is working maybe we could include in the book. Many thanks! PS ticket example here: File "C:\Users\David\Documents\GitHub\web2py\gluon\globals.py", line 403, in <lambda> self._caller = lambda f: f() File "C:\Users\David\Documents\GitHub\web2py\gluon\tools.py", line 3583, in f return action(*a, **b) File "C:/Users/David/Documents/GitHub/web2py/applications/prearrival/controllers/default.py" <http://localhost:8000/admin/default/edit/prearrival/controllers/default.py>, line 262, in change_test_email ret = SQLTABLE(rows,truncate=35,extracolumns=extracolumns) File "C:\Users\David\Documents\GitHub\web2py\gluon\sqlhtml.py", line 3295, in __init__ row.append(TD(contentfunc(record, rc), **attrcol)) File "C:/Users/David/Documents/GitHub/web2py/applications/prearrival/controllers/default.py" <http://localhost:8000/admin/default/edit/prearrival/controllers/default.py>, line 258, in <lambda> 'content':lambda row, rc: A('Edit', _href='edit/%s'%row.id), File "C:\Users\David\Documents\GitHub\web2py\gluon\packages\dal\pydal\helpers\classes.py", line 348, in __getattr__ raise AttributeError AttributeError -- 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.