Passing Server Response To App

This forum contains topics that were moved from Get Satisfaction
Eri
Posts: 0
Joined: Wed Jun 17, 2015 8:51 pm

Passing Server Response To App

Post 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?

Serhii Kulibaba
Posts: 147
Joined: Tue Aug 27, 2013 1:47 pm

Passing Server Response To App

Post by Serhii Kulibaba »

Hello Eri,

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

Eri
Posts: 0
Joined: Wed Jun 17, 2015 8:51 pm

Passing Server Response To App

Post 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.

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

Passing Server Response To App

Post 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.

Post Reply