javascript - How to refresh the tableview after deleted -
i able delete tableviewrow when click on button,bt 1 problem delete row database not reflected in view.js file.to see effect of query need start application again.i want display row when click on button instead if start application again.could u suggest me how achieve that. here code
if (e.index === e.source.del) { var db=titanium.database.install('/mydata/tododb', 'tododb'); var d=db.execute("delete task content =?",delrow); yourtable.deleterow(e.source.i); // rowview.setdata(yourtable.data); ti.api.info('the delete button clicked'+e.index); }
it shows deleted rows after running applicaton.
Comments
Post a Comment