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 =
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
-
2 matches
Mail list logo