Page 1 of 1

Passing Server Response To App

Posted: Fri Jun 19, 2015 11:56 am
by Eri

I need to get a response from a server code var to the app object that I display to user. Please is there any tutorial on how to do this?


Passing Server Response To App

Posted: Fri Jun 19, 2015 8:39 pm
by Serhii Kulibaba

Hello Eri,

Please follow this documentation page: https://devcenter.appery.io/documenta...


Passing Server Response To App

Posted: Sat Jun 20, 2015 4:17 pm
by Eri

Thank you sir. But I am still not getting it.

I have a label in my app call distance,
I need to pass or (mapped) the result of a calculated var from the server code
var dis = getDistance(lat, latitude, lng, longitude);

to label distance in my app.

Please I need a guide, thanks.


Passing Server Response To App

Posted: Mon Jun 29, 2015 4:59 am
by Yurii Orishchuk

Hi Eri,

You need:

1 Return needed response(should contain needed information) in your server code.

2 Import server code in the app.

3 On the test tab - click test and then populate response parameters with actual response.

4 Add service on the needed page.

5 Click "Success" event handler and make link from needed response parameter to label on the page.

Regards.