thanks Mark for this. will save and use it...

On Fri, Oct 5, 2012 at 5:02 PM, Mark <czhang2...@gmail.com> wrote:

> I met the same problem and found a solution. I changed the id field into a
> button, and actually, any fields can be buttons or links in the grid.
>
> For example:
> db.person.id.represent=lambda id,r:
> DIV(A('View',_class='button',_href=URL('table',args=['person','view','person',
> r.id])), _class='row_buttons')
> db.person.name.represent=lambda name,r: A(r.name
> ,_href=URL('table',args=['person','edit','person',r.id]))
>
>

-- 



Reply via email to