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.
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.
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?
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.
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.