Lim Samantha
Posts: 0
Joined: Wed Jun 11, 2014 6:50 am

Deleting of items

Hi so sorry.
please do run from RealStep1
http://appery.io/app/project/8ede79da...

Lim Samantha
Posts: 0
Joined: Wed Jun 11, 2014 6:50 am

Deleting of items

i just found that there are errors here. have deleted and recreated but still the same errors. why is this so? Image Image

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Deleting of items

HI Lim,

Please set request parameter _id = a value of 'shoppinglist' collection object:

Image

Lim Samantha
Posts: 0
Joined: Wed Jun 11, 2014 6:50 am

Deleting of items

What do you add in the response tab?

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Deleting of items

Hi Lim,

Sorry but don't understand your question.

Please clarify it, perhaps some screen shots will help.

Regards.

Lim Samantha
Posts: 0
Joined: Wed Jun 11, 2014 6:50 am

Deleting of items

Hi,
Ms Katya asked me to set request parameter _id = a value of 'shoppinglist' collection object, but what does this means?

What am i suppose to add in the response tab here? :

Image

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Deleting of items

Hi Lim,

If you using delete service you need to pass object that's you want to delete into "_id" parameter.

Please pass this tutorial to understand how to work with delete service http://devcenter.appery.io/tutorials/...

Also - you don't need to add anything in the "response" tab.

Regards.

Lim Samantha
Posts: 0
Joined: Wed Jun 11, 2014 6:50 am

Deleting of items

Hi, i followed all the steps from the tutorial.

First i would like to delete both the label as shown in the screen shot:
Image

So, i set my storage variable of the label which is know as itemName.
under data tab at the list service, i map my _id to my local storage variables - itemName.

Image

At my delete service, i map my _id to itemName.
Image

then i invoke service at my deleteButton where once user click, itemName will be deleted.
Image

after these steps, i check my delete service and test it, it still have error.
Image

hope u guys understand. please do assist .thanks.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Deleting of items

Hi Lim,

Thanks for these details.

I see following mistakes in your implementation:

1 You did not add "itemId" hidden label into your item.

2 You did not add response mapping from "_id" to "itemId" component. see details here http://devcenter.appery.io/tutorials/...

4 You link "itemName" to "id" in request (delete) mapping. You need to link "itemId" from 1st step to "id" request parameter.

Regards.

Lim Samantha
Posts: 0
Joined: Wed Jun 11, 2014 6:50 am

Deleting of items

please advise on how to add in 'itemId'?
i have named it as itemName instead.

Return to “Issues”