i am able to delete tableviewrow when click on button,bt one problem is that it delete from row from database but not reflected in view.js file.to see effect of query i need to start application again.i want to display the row when click on button immediately instead if start application again.could u suggest me how could i achieve that. here is my code
if (e.index === e.source.del)
{
var db=Titanium.Database.install('/mydata/ToDoDB', 'ToDoDB');
var d=db.execute("DELETE FROM task WHERE content =?",delrow);
yourTable.deleteRow(e.source.i);
// rowview.setData(yourTable.data);
Ti.API.info('The Delete button was clicked'+e.index);
}
it shows deleted rows after running applicaton.