For reference, in case you want to add some basic inline editing to 
SQLFORM.grid. I wanted to add a radio button group so that for each row the 
user can select a number of different actions, as opposed to selectable 
which lets the user flag the row on or off.

1) any INPUT fields in a grid (added via links= for example) are submitted 
via request.post_vars. 
2) but you need a submit button. There are a few ways of doing it, like 
creating a form with only a submit button and adding it to the view

Using selectable in the SQLFORM.grid also adds a submit button, but you 
also get checkboxes.
The checkboxes can be removed after creating the grid:
 grid.elements(_type='checkbox',replace=None)

you can detect and process the submitted form elements by checking for this 
at the top of your controller function:
if len(request.post_vars) > 0:
        pass #do something




-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to