Try this:
db.Test.name.represent = lambda name, row: A(name, _href=URL('default',
'download', args=name))
On Thursday, 31 May 2012 13:34:01 UTC+1, Saifuddin Rangwala wrote:
>
> Hi,
>
> I am new to web2py.
>
> I have created a simple table like below:
>
> db.define_table('Test',
> Field('name', 'string', required=True, unique=True),
> Field('Description', 'text'),
> )
>
> db.Test..name.represent=lambda r, v: A(v, _href=URL('default', 'download',
> args=v))
>
> I am using SQLTABLE to render a select on this table and expecting to get
> the name as hyperlinks, but this is not working.
>
> Can someone please help what am I missing?
>
>
> -Saif.
>