When you do an insert, the .insert() method returns the id of the inserted record. Also, take a look at http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#callbacks-on-record-insert--delete-and-update.
Anthony On Tuesday, May 16, 2017 at 1:08:59 PM UTC-4, Santiago Cartasegna wrote: > > Hello, > > I am having a struggle in doing the following workflow: > > I have One table wich I need to get the values after insert/Update (I know > how to manage this case) to put in another table. > In the case of the update, I can make a workaround besacuse I can catch > the edit. But when I have a New Record I do not have the ID. > > I been looking in > http://web2py.com/books/default/chapter/29/7#One-form-for-multiple-tables > but I do not think that this is what i need. > > Best 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.

