Page 2 of 2

service is not definied

Posted: Thu Aug 18, 2016 10:05 am
by Jack Batty

the first image isn't the query service its the update service


service is not definied

Posted: Thu Aug 18, 2016 11:29 pm
by Sum Media

sorry I uploaded wrong image. (updated, please check it)


service is not definied

Posted: Thu Aug 18, 2016 11:30 pm
by Sum Media

service is not definied

Posted: Thu Aug 18, 2016 11:30 pm
by Sum Media

service is not definied

Posted: Fri Aug 19, 2016 9:33 am
by Illya Stepanov

Please check is this service working in the test tab with your query?

In AngularJS service invocation code should look something like this:

precode
var requestData = {};
/CLICK TO EDIT MAPPING/

Apperyio.get("service_name")(requestData).then(
function(success){ // success callback
/CLICK TO EDIT MAPPING/

},
function(error){ // callback to handle request error

},
function(notify){ // notify callback, can fire few times

});
/code/pre

You can drag and drop the service into your function field.


service is not definied

Posted: Mon Aug 22, 2016 5:29 am
by Sum Media

it's available and work when using in coding page. However, when I create a new JS, it is not available


service is not definied

Posted: Mon Aug 22, 2016 8:16 am
by Serhii Kulibaba

You are right, it is impossible to run services in the global scope, without connection to the page