How to invoke service with multiple parameters using javascript?

This forum contains topics that were moved from Get Satisfaction
B510
Posts: 0
Joined: Wed Jun 04, 2014 2:17 pm

How to invoke service with multiple parameters using javascript?

Post by B510 »

How to invoke service with multiple parameters using javascript?

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

rsCheckDevice.execute({}});

thanks

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

How to invoke service with multiple parameters using javascript?

Post 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.

B510
Posts: 0
Joined: Wed Jun 04, 2014 2:17 pm

How to invoke service with multiple parameters using javascript?

Post 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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

How to invoke service with multiple parameters using javascript?

Post by Kateryna Grynko »

Hi,

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

Post Reply