I still have problems with the SQLFORM.smartgrid callbacks. I don't 
understand what is the correct usage of these functions. There are many 
different conflicting examples in the wiki.

I define my ondelete callback:

ondelete=dict( samples=my_sample_delete )

and  I define the function:

def my_sample_delete():
    print "In callback"  

Is this the correct format for the arguments of ' my_sample_delete'?. Why I 
never get this print message in the web2py console? How could I debug this 
function? The book says, it takes no arguments. In other posts, I have seen 
it as :

def my_sample_delete(table, record_id):

Either way, clicking the 'Delete' button, the row disappears, but having a 
browser refresh, the deleted line appears again! 

What is the problem?

(I am using now trunk Version 2.4.1-alpha.2+timestamp.2013.01.13.13.14.47, 
since the last correction on the ajax Delete function was recently fixed by 
Niphod I think)
)


-- 



Reply via email to