this should work:

ids = [1, 2, 3, 4, 5]
db.myTable.id.represent = lambda id: A(id, _href=URL('viewDetail',
args=id))
form = crud.select(db.myTable, db.myTable.id.belongs(ids), _id='myid',
_class='smarttable')

On Jun 7, 8:14 pm, DJ <sebastianjaya...@gmail.com> wrote:
> Hi Massimo,
>
> Here's a snippet of my code:
>
> ids = [1, 2, 3, 4, 5]
> # I tried something like this but it does not work
> # db.myTable.id.represent = lambda value: A(myID, _href=URL (r=request,
> c='default', f='viewDetail', args=myID))
> form = crud.select(db.myTable, db.myTable.id.belongs(ids), _id='myid',
> _class='smarttable')
>
> Let me know if you need more specific code. Thanks!
>
> -Sebastian

Reply via email to