[web2py] Re: Problem with combination of SQLForm.grid + LEFT JOIN + Computed Fields

2015-10-30 Thread Yebach
I have quite similar problem, except when I use row.table_name.field_name, then my edit view stops working Any suggestions?? here is my code @auth.requires_login() def workers_skills(): user = auth.user_id org = db(db.auth_user.id == user).select(db.auth_user.organization)[0]["organization"

[web2py] Re: Problem with combination of SQLForm.grid + LEFT JOIN + Computed Fields

2013-10-29 Thread hiro
Having the same problem, thank you for the info. The problem for me is that I can get either the left join to work using row.table_name.field_name, or the simple view to work by using row.field_name. Is there anyway to define a represent-function to work with both? On Tuesday, January 15, 2013 4

[web2py] Re: Problem with combination of SQLForm.grid + LEFT JOIN + Computed Fields

2013-01-15 Thread Sebastien Stormacq
OK, using a debugger, I found out my problem. When doing a left join, the "row" variable does not contain directly the fields. We must use row.table_name.field_name instead. This is now working. Problem solved. Seb On Tuesday, January 15, 2013 4:13:45 PM UTC+1, Sebastien Stormacq wrote: > >