Hi, I manage a page with a sqlform ("Order") and a sqlform.grid ("Articles"). Test1 : On the grid, when I click on the button "Delete", this Article is removed from the grid ... on the screen. When I reload the order, I see the article again. Test2 : I add a line un my grid instruction, with an "ondelete"... But the callback is not executed.
Extract of code : def delArticle(NomTable,IdArt): print "Suppression article " + NomTable + string(IdArt) def saisieda(): ....... formModArt = SQLFORM.grid(dbW(dbW.TArt.NumDA==NumDA),formname= 'GridArticle', fields=[dbW.TArt.id,dbW.TArt.Article,dbW.TArt.Compte ,dbW.TArt.PUHT,dbW.TArt.Quantite,dbW.TArt.Description], create=True,deletable=True,searchable=False,csv= False,user_signature=False, ondelete=delArticle) ........ -- 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/d/optout.