[web2py] SQLFORM.grid ondelete not working

2014-01-24 Thread horridohobbyist
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/boo

[web2py] SQLFORM.grid ondelete

2013-06-28 Thread Kyle Flanagan
I have an SQLFORM.grid w/ an ondelete calling a function customer_delete(). However, the the function is not being called and the records are not actually being deleted from the DB. If I remove the "ondelete=customer_delete" in my grid args, the records are being deleted. The way I understand i

[web2py] SQLFORM.grid ondelete and other callbacks

2013-01-11 Thread Kostas M
(This is the 3rd time I am trying to post this question. For some reason the message was deleted. Is using links in the message considered harmful?) I see there are many questions on the workings of ondelete and oncreate callbacks of the grid and smartgrid, but I can't find a valid answer. The b

[web2py] SQLFORM.grid ondelete possible bug

2011-10-26 Thread Bob St John
using 1.99.2 in gluon.sqlhtml.SQLFORM.grid: line 1489: return ondelete(table,request.args[-2],ret) I think it should be: return ondelete(table,request.args[-1],ret) As it is now, ondelete gets (table, table, ret), whereas I believe it should get (table, record_id, ret) to work properly... I li