[web2py] Re: SQLFORM.grid with args: customizing the Add form

2012-09-11 Thread villas
Take a look at this: db.dog._common_filter = lambda query: db.dog.owner.created_by == request.args(0) Maybe it could help... Regards, D --

[web2py] Re: SQLFORM.grid with args: customizing the Add form

2012-09-11 Thread Niphlod
1st: "args" in grids is only the arguments the grid should not consider. therefore if you use request.args(0) to identify the id of the record, grid(args=request.args(0)) is what you need to call. 2nd: prefetch the default author and set it as a default field for the table before returning the g