Passing Server Response To App
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?
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
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?
Hello Eri,
Please follow this documentation page: https://devcenter.appery.io/documenta...
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.
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.