[web2py] Re: Add link to view a referenced table in SQLFORM.grid

2015-08-25 Thread Thomas Sitter
This worked perfectly, thanks! On Tuesday, 25 August 2015 09:00:48 UTC-4, Jim S wrote: > > Here is what I do to put custom buttons on my grid view in SQLFORM.grid > > In my Controller: > > if not request.args(0) in ['view']: > details = False > links = [lambda row: getProductionDisplayAnchor(row

[web2py] Re: Add link to view a referenced table in SQLFORM.grid

2015-08-25 Thread Jim S
Here is what I do to put custom buttons on my grid view in SQLFORM.grid In my Controller: if not request.args(0) in ['view']: details = False links = [lambda row: getProductionDisplayAnchor(row)] grid = SQLFORM.grid(query, fields=fields, orderby=orderby, left=left, create=create, details=de

[web2py] Re: Add link to view a referenced table in SQLFORM.grid

2015-08-25 Thread Thomas Sitter
I have, but I run into two issues. 1) I do not know how to specify a query in a smartgrid. 2) The link brings me to a list of records, but this is a 1-to-1 relationship so it will always be unnecessary to display the list. On Tuesday, 25 August 2015 02:26:14 UTC-4, Anthony wrote: > > Have you c