Thanks for your response.
I changed the fields to a list and that works fine. Ditto for the field.represent feature. Thanks!
I am still having problems getting the WHERE clause correctly inserted in the query. (The 2-3 different query assignments I originally posted were variations I had tried with no luck.)
I would like the query string for a SQLGrid that accomplishes the same as the following DAL:
db.auth_user.last_name, db.auth_user.first_name, db.auth_group.role,
The above DAL works fine if I am simply outputting it as HTML. However, if I supply it as a the query parameter to SQLFORM.grid, I get an error from the grid.
Ideally I would like to create a SQLFORM.grid that matches the following SQL:
Select auth_user.first_name, auth_user.last_name, auth_group.role FROM auth_user
LEFT OUTER JOIN auth_membership ON
auth_user.id = auth_membership.user_id
LEFT OUTER JOIN auth_group ON auth_membership.group_id =
auth_group.id
Any help in pointing out how to get that WHERE clause correctly supplied to the SQLFORM.grid is appreciated.