Page 2 of 5

Deleting of items

Posted: Thu Jul 17, 2014 3:33 am
by Lim Samantha

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


Deleting of items

Posted: Thu Jul 17, 2014 2:02 pm
by Lim Samantha

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


Deleting of items

Posted: Thu Jul 17, 2014 3:06 pm
by Kateryna Grynko

HI Lim,

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

Image


Deleting of items

Posted: Fri Jul 18, 2014 3:07 am
by Lim Samantha

What do you add in the response tab?


Deleting of items

Posted: Fri Jul 18, 2014 4:47 am
by Yurii Orishchuk

Hi Lim,

Sorry but don't understand your question.

Please clarify it, perhaps some screen shots will help.

Regards.


Deleting of items

Posted: Fri Jul 18, 2014 6:38 am
by Lim Samantha

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


Deleting of items

Posted: Sun Jul 20, 2014 11:05 pm
by Yurii Orishchuk

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.


Deleting of items

Posted: Mon Jul 21, 2014 2:32 am
by Lim Samantha

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.


Deleting of items

Posted: Mon Jul 21, 2014 4:24 am
by Yurii Orishchuk

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.


Deleting of items

Posted: Mon Jul 21, 2014 6:32 am
by Lim Samantha

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