Get value of service request parameters
Hello. How can I get value of service request parameters with help of the javascript? Thanks!
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/
Hello. How can I get value of service request parameters with help of the javascript? Thanks!
Hello! Could you clarify please when you want to get that values? What service and parameters you use?
I have file with services settings.
http://easycaptures.com/fs/uploaded/5...
I use this settings in my services.
http://easycaptures.com/fs/uploaded/5...
And I want to get some value from this settings file with javascript for example in my custom function.
http://easycaptures.com/fs/uploaded/5...
You can refer using parameter name just like that RESTSettingsName["valueName"]. In your case it's Settings["api_key"]
I'm having same trouble. I do not know how to reference my 'tour_id' request parameter from WITHIN my Generic Service javascript implementation.
I'd like to use this tour_id parameter in my SQL statement.
For example.... (partial code)....
_____________________________$t.js_gsvc_local_poi = $t.createClass(null, {
Code: Select all
init: function(requestOptions) {
this.__requestOptions = $.extend({}, requestOptions);
},
process: function(settings) {
alert(Request['tour_id']); //??? doesn't work
alert(Settings['tour_id']); //??? doesn't work thanks for any help,
Helen
This should help: https://getsatisfaction.com/apperyio/...
Thanks, this is the answer I was looking for:
"Request parameters you define will be available in settings.data "
So below works...
alert(settings.data['tour_id']);
Is there documentation for this anywhere besides the forum?
Thanks!
Right now this post on the forum... we'll add something more comprehensive to the docs.