Page 1 of 1

the delete service on my to do app is not working, i have shared my app with you.

Posted: Fri Mar 07, 2014 5:54 pm
by bella bruno

I have already re-done this app 3 different times because the delete service is not working. The delete service wants to delete when i am tested the app but it will not delete. Also it will delete from my database but not my app.


the delete service on my to do app is not working, i have shared my app with you.

Posted: Fri Mar 07, 2014 6:06 pm
by Maryna Brodina

Hello! Sorry, not sure I understand "Also it will delete from my database but not my app" - record is deleted from DB, but data isn't updated in app? Do you invoke service or code which refreshes data on page?


the delete service on my to do app is not working, i have shared my app with you.

Posted: Fri Mar 14, 2014 5:04 pm
by bella bruno

yes i invoked the service. I followed all the instructions on the tutorial and my teacher has also checked it over and cannot seem to find the problem. When i am testing the app, and i am trying to delete it the loading image pops up as if it is trying to delete but doesn't actually delete. Also when i am testing it and trying to delete it, the action will not delete from my app. However afterwards i will go into my database and it will be deleted from my database.


the delete service on my to do app is not working, i have shared my app with you.

Posted: Fri Mar 14, 2014 5:50 pm
by Nikita

Hello,

Please add before invocation of delete service following JS:

var taskId = $(this).find("[name=taskId]").text();
localStorage.setItem("taskId", taskId);

And on mapping of delete service instead of component "taskid" use variable "taskid" from localStorage.