thank you so much for your link.
i just need to add request.vars on the function in controller.
e.g.
*controllers/default.py*
def revert():
ids = request.vars.ids
for id in ids:
detail = db(db.rent_detail.id == id).select().first()
db.revert_detail.insert(rent_no = detail.rent_no, 
due_date = detail.due_date, 
customer = detail.customer, 
dvd = detail.dvd, 
quantity = detail.quantity)
redirect(URL('report', 'report_revert') )

best regards,
stifan

-- 
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.

Reply via email to