Page 1 of 1

call built in service from server script

Posted: Fri Mar 03, 2017 5:45 am
by EJLD

Hi There, I m used to call scripts from scripts using the script id number ...
my question: is it possible to call a service generated by the UI side like DB service from a server script ?
thk you in advance,
Eric


call built in service from server script

Posted: Fri Mar 03, 2017 2:45 pm
by Serhii Kulibaba

Hello,

No, it is impossible. Server Code doesn't have visual functions. Please run any request there with a XHR2 function: https://docs.appery.io/v2.2.0/reference


call built in service from server script

Posted: Fri Mar 03, 2017 5:24 pm
by EJLD

Sergiy, thank you for your prompt reply and the link. it helped.