Page 1 of 2
(Forbidden).
Posted: Wed Nov 27, 2013 5:05 am
by Jeff6301705
Failed to load resource: the server responded with a status of 403 (Forbidden).
when trying to delete service, can you tell me what I'm doing wrong?
I have mapped the variables like shown in the todo app tutorial but doesn't seem to be working for me. Any ideas why?
(Forbidden).
Posted: Wed Nov 27, 2013 5:09 am
by Igor
Hello,
Try to remove service invokes first and than remove service.
(Forbidden).
Posted: Wed Nov 27, 2013 5:23 am
by Jeff6301705
I'm not trying to delete a service, I'm trying the delete service. I am trying to delete an item from the list. I've mapped the taskId to the _id in the service, and it does not delete the item. Once the button is pushed, it invokes the service, and upon complete, I have it running js. The following script is what I have added to service:
Appery('thisPage').trigger('pageshow')
This seems to work with all of the other pages that I use it on. Any idea why I'd get a forbidden error?
(Forbidden).
Posted: Wed Nov 27, 2013 7:34 am
by Kateryna Grynko
Hi Jeff,
Please post a public link. How can we reproduce the issue?
(Forbidden).
Posted: Wed Nov 27, 2013 7:51 am
by Jeff6301705
http://appery.io/app/mobile-frame?src...
Is the link and it should be public.
The way that I got the error message was logged in, waited for the list to load, click on the delete button that is in the list. Hit my F12 key and looked at the errors.
You should be able to create a new id and pass word, so you shouldn't need any login information.
(Forbidden).
Posted: Wed Nov 27, 2013 12:05 pm
by Kateryna Grynko
Hi Jeff,
In the service, you should specify 'object_id' (ID of the object you want to delete).
(Forbidden).
Posted: Wed Nov 27, 2013 3:06 pm
by Jeff6301705
I have the taskId mapped to the 'object_id' which is what I want deleted, I followed the ToDo app tutorial, which should delete the items that i want deleted. Please see the following image for my mapping.
(Forbidden).
Posted: Wed Nov 27, 2013 4:33 pm
by Kateryna Grynko
Jeff,
1) You should save object id in a hidden label.
2) On Delete button click save object _id from hidden label to a localStorage variable taksId. To do this, you can use 'Set local storage variable' action before invoking Delete service.
(Forbidden).
Posted: Wed Nov 27, 2013 8:33 pm
by Jeff6301705
Ok I've set the object to local storage taskId. I get the DB identification to load, (when you make the label visable) but when I click the delete button I get an error message in my console I am uploading a bunch of screen shots that I think will help you see what's going on. Please let me know what it is that i need to do in order to make this work.
Does it make a difference if the objects that I'm trying to delete change from user to user? If so how do I, make sure that I don't delete everything in the DB?
I have also shared this app with Apprey it's call IowaStateBucketList
Thanks
(Forbidden).
Posted: Wed Nov 27, 2013 9:52 pm
by Maryna Brodina
Hello!
1) We checked your app and were able to delete items from MY BUCKET LIST (two lower ones). We don't see errors in console. What errors do you have? Please post steps to reproduce.
2) "how do I make sure that I don't delete everything in the DB"-- not sure I understand, what do you want and what you don't want to delete?