Page 1 of 1

Updating multiple objects ?

Posted: Sat Feb 14, 2015 1:00 am
by Bruce Stuart

I've built a service according to the docs found here - to do an update to multiple objects:

http://devcenter.appery.io/documentat...

My service looks like this when I test it:

Image

And - I click 'test' - and it updates the objects I expected.... I should be happy right ?? only issue - there's no response ?? Nothing comes back - it does the work - but no response from the service.... is this expected??

How do I know if this was successful or not? Shouldn't some response come back like : __ Rows updated ??

Thanks!
Bruce


Updating multiple objects ?

Posted: Sat Feb 14, 2015 3:36 am
by Illya Stepanov

Hi Bruce -

Everything is correct with your service, the only thing that you will don't need the Success mapping in this service call, so you can remove it in the Data tab view and add a JavaScript code on the Success/Error with appropriate alert message.


Updating multiple objects ?

Posted: Sat Feb 14, 2015 4:13 am
by Bruce Stuart

Illya , thanks ... So my question is ... When the service succeeds ... Or more specifically it fails ... Since nothing came back when I clicked test ... Is the service actually populating the xhr status so that it can be queried on completion ?


Updating multiple objects ?

Posted: Mon Feb 16, 2015 4:54 am
by Yurii Orishchuk

Hi Bruce,

Unfortunatly you can not know about how much items was affected. If you need this information you can make additional query with such "where" clause.

Regards.


Updating multiple objects ?

Posted: Mon Feb 16, 2015 5:43 am
by Bruce Stuart

Yurii, thanks ... I guess I suspected as much given the silence from the test query I wrote. Thanks for the update ...