think you can use condition to check the request.args value then assign the 
represent on it, before defining SQLFORM.grid
if 'view' in request.args:
    db.mytable.myfield.represent = function_to_represent
grid = SQLFORM.grid(...)

best regards,

- (Documentation)
- (Source code)
- (Report Issues)
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
For more options, visit

Reply via email to