i think you want to fetch data of particular row.......Please use the
following code for the same
def myfunctionit_detail():
links = [lambda row:
A('Upload',_href=URL("default","myfunction",args=[row.id] ))]
query = ((db.tracker.id>=0 ) )
grid = SQLFORM.grid(query=query, links=links,maxtextlength=250,
sortable=True,csv=False ,fields=fields, paginate=40 ,
sorter_icons=(XML('↑'), XML('↓')) ,
editable=auth.has_membership('editor_group'),
deletable=auth.has_membership('delete_group'),
create=auth.has_membership('create'), showbuttontext=False)
return dict(form =grid)
On Monday, August 25, 2014 12:30:47 PM UTC+5:30, Dmitry Ermolaev wrote:
>
> SQLFORM.grid(db.pets,
> field_id = db.pets.url,
>
>
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.