Page 1 of 1

Parse service results manually

Posted: Wed Sep 18, 2013 7:19 pm
by Eduardo Ramos

Hi,

I have a service "MyService". I would like to execute in javascript like this:

MyService.execute({});

But I would like to parse the results, which is gonna be an array. How can I have access to the "data" variable or the results of the service?

Could you post an example on how to do that?

Thanks!!!


Parse service results manually

Posted: Wed Sep 18, 2013 8:30 pm
by Maryna Brodina

Hello! Use service success event, there in "data" variable will be entire service response http://docs.appery.io/documentation/u...


Parse service results manually

Posted: Wed Sep 18, 2013 8:40 pm
by Eduardo Ramos

Perfect! Thanks!