Try this:

{{db[table].id.represent=lambda id: A(id,_href=URL(r=request,
c='default',f='data_clienti',args=id,vars={'table':table})}))
{{=SQLTABLE(rows,_class='sortable',headers=dict([(rows.colnames[i],c)
for (i,c) in enumerate(colonne)]))}}



On Feb 2, 11:13 am, carlo <syseng...@gmail.com> wrote:
> thank you Massimo, this is my code snippet:
>
> <table class='sortable'>
> <tr>
> {{for c in colonne:}}
> <th>{{=c}}</th>{{pass}}
> </tr>
> {{for r in rows.response:}}
> <tr>
> {{for k in range(len(r)):}}
> {{if k==0:}}
> <td><a href="{{=URL(r=request,c='default',f='data_clienti',args=[r
> [k]],vars={'table':table})}}">{{=r[k]}}</a></td>
> {{else:}}
> <td>{{=r[k]}}</td>
> {{pass}}
> {{pass}}
> </tr>
> {{pass}}
> </table>
>
> On 2 Feb, 16:53, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > There is no more rows.response. That was an internal variable. It is
> > gone long ago.
> > If you show us how you were using we can point to a simple fix.
>
> > On Feb 2, 9:43 am, carlo <syseng...@gmail.com> wrote:
>
> > > I must have missed something lately, so forgive my question if it is a
> > > faq.
>
> > > I have an application where I used rows.response in a view: it was ok
> > > until version 1.6.xx but it fails in the latest version, what is
> > > changed?
>
> > > thank you
> > > carlo
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to