Good morning all, I am using SQLFORM.grid for the first time and I'm baffled (not for the first time). Related posts don't illuminate my issue and at least one seems to contradict what I'm seeing.
This is the controller - with some dross removed... tasks = (db.task.person == person.id) fields = (db.task.id, db.task.charge, db.task.start_time, db.task.person, db.task.title, db.task.task_status) selectable = [('Allocate Payment', lambda ids: redirect(URL('new_payment_allocation', vars=dict(ids=ids))))] grid = SQLFORM.grid(db(billable_tasks), orderby=myorder, all fields=fields, selectable=selectable, deletable=False, editable=True, searchable=False, create=False, sortable=True, maxtextlength=150, paginate=task_count, details=True, csv=False) When I list the selected ids (returned by the lambda) in my new_payment_allocation view I can see a list of ids. One post indicated this was a list of the task ids but not from what I can see, instead it appears to me to be returning the grid row ids for checked items. My problem is that I can't see how to convert/relate this list of selected grid row ids to the required task objects or db.task.id field? As always any help would be appreciated. Regards Peter -- 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/d/optout.