Oh, it's called BEFORE the delete! That's why I was getting unexpected results.
I need to perform an action AFTER the delete. Is there a workaround? Thanks. On Saturday, 25 January 2014 01:00:25 UTC-5, Anthony wrote: > > Does the record actually get deleted from the database? If so, ondelete > should be getting called right before the delete. You may need to show some > code and explain what you're seeing and what you expect. Also, note that > the ondelete code in .grid has changed in more recent versions, but should > have worked in 2.4.2. > > Anthony > > On Friday, January 24, 2014 8:22:17 PM UTC-5, horridohobbyist wrote: >> >> I'm using Version 2.4.2. >> >> I'm finding that the ondelete function is never called when I delete a >> record in SQLFORM.grid. Is this a bug, or am I doing something wrong? The >> onupdate function does get called when I update a record. >> >> Thanks. >> > -- 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/groups/opt_out.