Hi I have used the DAL to execute code before or after I make database changes. Maybe that might work in your situation: http://www.web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#callbacks-on-record-insert-delete-and-update
Cheers Andrew ___________________________ *www.TenOutOfTen.org* <https://www.TenOutOfTen.org> [email protected] (+95) 09 250018669 (Myanmar) On Fri, 2 Oct 2020 at 00:07, [email protected] <[email protected]> wrote: > > Hello, > i use sqlformgrid and like this : > controller: > def art_manage(): > records= SQLFORM.grid(query=db.t_art,maxtextlength = > 40,deletable=False,create=True, fields=[db.t_art.f_name, db.t_art.f_team, > db.t_art.f_tit]) > return dict(records=records) > > view: > {{=records}} > > > the records displayed are good and i let the possibility to add records > (create=True). > My question is : when i add a record and i submit i would to exectue a > function , how can i do ? > Thank you > > (i know how to do with form .. if form.process (onvalidation .. and so on) > > -- > 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]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/web2py/399f0935-40d6-4277-829e-2fe5f7f0784bn%40googlegroups.com > <https://groups.google.com/d/msgid/web2py/399f0935-40d6-4277-829e-2fe5f7f0784bn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/CACWMBMMrnhVc0BzjPgh_gZAPz0Sa0b2z3RUK4XG5ks4teuL%2Byw%40mail.gmail.com.

