Page 2 of 9

Update Service

Posted: Fri Jul 25, 2014 1:02 am
by eascards

Tried that but its still not working. Also followed the ToDo app w/ backend services tutorial so I can delete but that won't work either.


Update Service

Posted: Fri Jul 25, 2014 2:48 am
by Yurii Orishchuk

Dear Eascards,

Did you really test it?

I've checked your app for you and have following result:

Request: http://prntscr.com/4634u9/direct

Response: http://prntscr.com/46351l/direct

Seems to be your "update" service works.

Regards.


Update Service

Posted: Fri Jul 25, 2014 3:02 am
by eascards

I tested it and when I change the text in either of the inputs, click update then change the page or logout then back in, it goes back to the original text that was there instead of staying there.

Same with the delete service.


Update Service

Posted: Fri Jul 25, 2014 4:06 am
by Yurii Orishchuk

Eascards,

That's means you just don't pass needed request parameter in update service.

So you need:

1 On "update" button click store goal input component value in some LSV. Exactly the same as with itemId.
Note: you need adjust order for this action to be before "update" service execution.

2 In "update" service mapping - link LSV from 1st step to request parameter that's you need to update.

Regards.


Update Service

Posted: Fri Jul 25, 2014 1:40 pm
by eascards

Yay!! The update service is working now!

I tried to use those steps to get the delete service working but there are still problems.
This is the test error:
Image


Update Service

Posted: Sun Jul 27, 2014 1:37 pm
by eascards

Anything here yet?


Update Service

Posted: Sun Jul 27, 2014 3:26 pm
by Illya Stepanov

Hi - You should specify the X-Appery-Database-id and X-Appery-Session-Token.


Update Service

Posted: Sun Jul 27, 2014 6:03 pm
by eascards

Is the database id that I should use? When I try it, it says that it doesn't exist. Image


Update Service

Posted: Sun Jul 27, 2014 6:09 pm
by Illya Stepanov

Where you try it? Can you show the error message?


Update Service

Posted: Sun Jul 27, 2014 6:12 pm
by eascards

Image

Error from console:
Image