Thanks for the answer.
There is a way to use the facilities of the SmartGrid, and catch the insert? I am able to make a workaround using the One-Form-Multiple-Tables stile but using the data of the form of one table making a new Insert with the data (I see I am on the right course reading the Link Anthony gave me). However this db.mytable._after_insert db.mytable._after_update should be part of the table definition on the model? Thanks in advance! El martes, 16 de mayo de 2017, 14:38:35 (UTC-3), Anthony escribió: > > 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.

