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
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
(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
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
4 matches
Mail list logo