Re: [web2py] Re: Differnt represent in SQLFORM.grid and in the view

2018-05-16 Thread Martin Weissenboeck
nice idea - thank you! 2018-05-16 10:11 GMT+02:00 黄祥 : > think you can use condition to check the request.args value then assign > the represent on it, before defining SQLFORM.grid > *e.g.* > if 'view' in request.args: > db.mytable.myfield.represent =

[web2py] Re: Differnt represent in SQLFORM.grid and in the view

2018-05-16 Thread 黄祥
think you can use condition to check the request.args value then assign the represent on it, before defining SQLFORM.grid *e.g.* if 'view' in request.args: db.mytable.myfield.represent = function_to_represent grid = SQLFORM.grid(...) best regards, stifan -- Resources: - http://web2py.com -