Hi Guys,
I use below controller function:
def my_grid():
query = (db.table.id > 0)
fields=(db.table.id,db.table.field1)
selectable=[('Send IDs to another function', lambda ids: redirect(URL(
'default','new_function',vars=dict(ids=ids))))]
grid = SQLFORM.grid(query=query,fields=fields,selectable=selectable,
groupby=db.table.field1)
return dict(grid=grid)
def new_function():
return dict()
view for new_function is:
{{=request.vars.ids}}
Unfortunately because of i used groupby in grid, i don't send IDs to
new_function but values of field1. Is there any way to groupby by field1
but pass IDs inside request?
Regards
--
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/d/optout.