Re: [web2py] Re: grid: deletion row callback

2014-07-08 Thread Manuele Pesenti
Il 08/07/14 07:54, Manuele Pesenti ha scritto: Il 07/07/14 23:49, Anthony ha scritto: I'm not sure how easy that would be in the browser without hacking web2py.js, but on the server, you can check for when a deletion happens and then send back some JS to be executed. Not tested, but maybe

[web2py] Re: grid: deletion row callback

2014-07-07 Thread 黄祥
pardon me, i'm not sure what do you mean with _javascript_ trigger. please explain more about it. btw, web2py have ondelete (executed on HTML Form Side) and before_delete callback (executed on DAL side). ref: http://web2py.com/books/default/chapter/29/07/forms-and-validators#SQLFORM-grid

[web2py] Re: grid: deletion row callback

2014-07-07 Thread Anthony
I'm not sure how easy that would be in the browser without hacking web2py.js, but on the server, you can check for when a deletion happens and then send back some JS to be executed. Not tested, but maybe something like: def mygrid(): if request.args(-3) == 'delete': deleted_record =

Re: [web2py] Re: grid: deletion row callback

2014-07-07 Thread Manuele Pesenti
Il 07/07/14 22:43, 黄祥 ha scritto: pardon me, i'm not sure what do you mean with _javascript_ trigger. please explain more about it. btw, web2py have ondelete (executed on HTML Form Side) and before_delete callback (executed on DAL side). Thank you 黄祥 :) I mean that I need to refresh some part

Re: [web2py] Re: grid: deletion row callback

2014-07-07 Thread Manuele Pesenti
Il 07/07/14 23:49, Anthony ha scritto: I'm not sure how easy that would be in the browser without hacking web2py.js, but on the server, you can check for when a deletion happens and then send back some JS to be executed. Not tested, but maybe something like: | defmygrid():