Depends on exactly what you want to customize. First, the grid itself takes
an "onupdate" argument that it passes to form.accepts, and it takes an
"editargs" argument, which is a dict of arguments to pass to the edit form.
Aside from that, in your controller, you can do:
grid = SQLFORM.grid(db.mytable, ...)
if 'edit' in request.args:
if grid.accepted:
...
etc.
And in your grid view:
{{if 'edit' in request.args:}}
[custom form display code]
{{pass}}
In other words, you can still let the grid do most of the form
creation/processing, and just jump in to customize what you need to change.
Anthony
On Friday, February 21, 2014 9:42:38 AM UTC-5, Luca Guerrieri wrote:
>
> mmmh... sorry Anthony but you know i'm new on web2py... can you show me
> more in deep this your last? ....
> thank you
> lucs
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (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
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.