CarmeloMilian
Posts: 0
Joined: Sat Apr 06, 2013 4:01 am

Issues Deleting Item from server

I am having some issues, I trying to delete an item from the database. I am passing the _id to an item label named ItemID. Then I am running the delete service using that field. I am very confused, it as working then after adding other services that I needed it broke.

I can see in firebug that the right value is on the label, but when i run the delete I get this error and the value in the seems to be catching all of the _id from the list.

Dala looks good in there...

[{"id":"5164f2ece4b055aafd1f1d70","ItemOwner":"cmilian","SerialNumber":"1","State":"Florida","ItemName":"Sebi","ItemDescription":"Sebi","createdAt":"2013-04-09 22:04:44.554","updatedAt":"2013-04-09 22:04:44.554"},{"id":"5164f306e4b055aafd1f1d71","ItemOwner":"cmilian","SerialNumber":"33","State":"Florida","ItemName":"Cristina","ItemDescription":"Esposa","createdAt":"2013-04-09 22:05:10.394","updatedAt":"2013-04-09 22:05:10.394"},{"id":"5164f311e4b055aafd1f1d72","ItemOwner":"cmilian","SerialNumber":"43","State":"Florida","ItemName":"Carmelo","ItemDescription":"Yo","createdAt":"2013-04-09 22:05:21.298","updatedAt":"2013-04-09 22:05:21.298"},{"id":"5164f3bee4b055aafd1f1d75","ItemOwner":"cmilian","SerialNumber":"Dummy","State":"Alabama","ItemName":"Dummy","ItemDescription":"Dummy","createdAt":"2013-04-09 22:08:14.126","updatedAt":"2013-04-09 22:08:14.126"}]

Click on delete button here...

DELETE https://api.tiggzi.com/rest/1/db/coll...

Error here....

500 Internal Server Error
288ms
HeadersResponseJSON

{"code":"DBSD000","description":"invalid ObjectId [5164f2ece4b055aafd1f1d705164f306e4b055aafd1f1d715164f311e4b055aafd1f1d725164f3bee4b055aafd1f1d75]"}

Any Help will be appreciated. My Project is public.
http://project.tiggzi.com/mobile-fram...

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Issues Deleting Item from server

Hello! Thank you for public link, we'll take a look and I update.

CarmeloMilian
Posts: 0
Joined: Sat Apr 06, 2013 4:01 am

Issues Deleting Item from server

I found the issue, I needed to create a variable first. I am creating a variable on click and using it, It works. Not elegant, but it works.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Issues Deleting Item from server

Thank you for update.

Return to “Issues”