Hi,
I'm looking for suggestions or examples on how I can implement a custom
edit function for SQLFORM.grid that will remember the page it was called
from, and return to it once the editing is complete.
I was able to call the custom edit function easily enough by using the
'links' parameter
links=[dict(header='edit',body=lambda row:
A('edit',_href=URL('edit_markup',args=(row.id))) )]
edit_markkup uses SQLFORM to edit the record, and this is working
correctly, but I don't know how to code the redirect to return to the same
page position in the grid that it was called from. (In other words, if the
record I wanted to edit was on the second page, once editing was done, the
second page would be displayed)
After searching through this group I believe that I have to pass the page
number and the signature, but I haven't figured out how to do this.
If this is possible, I'd really appreciate a simple example of how to do
it. - Tom
--
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.