Page 1 of 1

How to invoke service with multiple parameters using javascript?

Posted: Fri Oct 03, 2014 10:28 am
by B510

How to invoke service with multiple parameters using javascript?

var param1 = "1";
var param2 = "2";
var param3 = "3";

rsCheckDevice.execute({}});

thanks


How to invoke service with multiple parameters using javascript?

Posted: Fri Oct 03, 2014 10:46 am
by Kateryna Grynko

Hello,

First, you should add "serviceInstanceName" service datasource on a page.
pre//Note you should replace "serviceInstanceName" with your actual datasource name.
serviceInstanceName.execute({});/preYou can pass all the additional parameters inside this service execution.


How to invoke service with multiple parameters using javascript?

Posted: Fri Oct 03, 2014 10:49 am
by B510

no.. I want to invoke it using javascript... since the new version of the builder does not allow me to invoke with optional parameters.. then I would try to invoke it thru javascript code..

var param1 = "1";
var param2 = "2";
var param3 = "3";

something like this..

myservicename.execute(param1, param2, param3)

please help


How to invoke service with multiple parameters using javascript?

Posted: Fri Oct 03, 2014 11:36 am
by Kateryna Grynko

Hi,

Please see how to pass parameters here:
https://getsatisfaction.com/apperyio/...