Thank you Dave but this URL <URL: https://web2py.com/boobs/default/29/07/forms-and-validators#SQLFORM-and-insert-update-delete <https://www.google.com/url?q=https%3A%2F%2Fweb2py.com%2Fboobs%2Fdefault%2F29%2F07%2Fforms-and-validators%23SQLFORM-and-insert-update-delete&sa=D&sntz=1&usg=AFQjCNEmKY8Tb9YkNBPY49CtQzkRfAgZzA>> is not working, its giving an Invalid Request error
On Wednesday, September 26, 2018 at 10:15:44 PM UTC+2, Dave S wrote: > > > > On Wednesday, September 26, 2018 at 1:07:51 PM UTC-7, Dave S wrote: >> >> [...] >> > > >> (controllers/myhotel.py) >> [...] >> > > >> define assignroom(): >> [...] >> > > >> db(db.rooms.id == roomid).update(available=F, client = >> form.vars.id) >> [...] >> >> > I just noticed the book (at least the version currently at > web2py.com/books/default) has at > <URL: > https://web2py.com/boobs/default/29/07/forms-and-validators#SQLFORM-and-insert-update-delete > > > an example that says "Assuming form=SQLFORM(db.test)" and then say the id > is "accessible in myform.vars.id". > I haven't checked to see if the master has corrected this or not, and I'm > not sure when I would get around to doing a PR > (the smaller the change, the longer it waits, no?), but I can advertise > the blip. > > /dps > > -- 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.