Johny
Posts: 0
Joined: Wed Aug 06, 2014 10:27 am

Update collection not working (bad request)

Hang on. I just did something and suddenly it worked. Think i found the magic code.

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

Update collection not working (bad request)

Hi Johny,

Glad to hear that! Let us know if you need any help please.

Johny
Posts: 0
Joined: Wed Aug 06, 2014 10:27 am

Update collection not working (bad request)

Ok, it didn't work in the end. Maybe a glitch :) so I'm still stuck and don't know what i'm doing wrong :(

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

Update collection not working (bad request)

Hi Johny,

As we can see from this screenshot https://getsatisfaction.com/apperyio/... 'operations' is a string while it should be an object.

Johny
Posts: 0
Joined: Wed Aug 06, 2014 10:27 am

Update collection not working (bad request)

Ok, I changed it and still not working. By the way, i'm now getting this screen continuously loading, meaning i cannot edit my page anymore. While the app is still working. I will write with screenprints exactly what my setting are now. Maybe I just don't see it anymore :S Image

Johny
Posts: 0
Joined: Wed Aug 06, 2014 10:27 am

Update collection not working (bad request)

So, this is the current setup.

I create a database with 2 columns and 2 rows.
Image

I created a service that looks like this:

Image

And

Image

And this is how I invoke the service

Image

Obviously this is pointing to the correct service

Image

On the back of this I created a msg that would be displayed if the service was successfully executed, and this seems to be working. So i suspect there is still something wrong with my URL.

Image

Looking at the development tools in chrome, I can see that its doing nothing other than retrieving information, but not updating anything.

Image Image

Probably the solution is obvious, but i just don't see it :(

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

Update collection not working (bad request)

Hi Johny,

Please use PUT method rather than GET: http://devcenter.appery.io/documentat...

Johny
Posts: 0
Joined: Wed Aug 06, 2014 10:27 am

Update collection not working (bad request)

Ok, that works. Thought I had to use GET. Thanks for being so patient with me.

If i can get help with the other issue as well, where i cannot open one of the pages anymore. Originally i got this error message:

Image

I simply removed that service completely (delete it). But now its still not loading. Its now hanging on "Initializing component 'Service Editor' for 'PlannedWorks_PWList_query_service'". But if not needed I prefer not to delete all the services because i have some scripts that i didn't backup.

Johny
Posts: 0
Joined: Wed Aug 06, 2014 10:27 am

Update collection not working (bad request)

I have recreated the page, so all is fine now. Thanks for the support.

Return to “Issues”