eascards
Posts: 0
Joined: Mon Jul 14, 2014 2:42 am

Update Service

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.

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

Update Service

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.

eascards
Posts: 0
Joined: Mon Jul 14, 2014 2:42 am

Update Service

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.

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

Update Service

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.

eascards
Posts: 0
Joined: Mon Jul 14, 2014 2:42 am

Update Service

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

eascards
Posts: 0
Joined: Mon Jul 14, 2014 2:42 am

Update Service

Anything here yet?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Update Service

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

eascards
Posts: 0
Joined: Mon Jul 14, 2014 2:42 am

Update Service

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Update Service

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

eascards
Posts: 0
Joined: Mon Jul 14, 2014 2:42 am

Update Service

Image

Error from console:
Image

Return to “Issues”