Page 1 of 1

Manual service invocation with multiple request parameters

Posted: Mon Apr 28, 2014 12:59 am
by anon

How do I correctly execute a service in JavaScript using data with more than one parameter? For example:

myService.execute({ "data" : [{"where": {"_id": myID}, {"limit":listData.limit}, {"skip":listData.skip}]});

This doesn't seem to work, as I am not sure how to format this data name value pair


Manual service invocation with multiple request parameters

Posted: Mon Apr 28, 2014 1:05 am
by anon

Ah, turns out I got it.

myService.execute({ "data" : {"where": JSONquery, "limit": listData.limit, "skip": listData.skip} });

just make sure if your where value consists of many filters, that it is both well formed, and passed in as a JSON object.


Manual service invocation with multiple request parameters

Posted: Mon Apr 28, 2014 1:15 am
by Alena Prykhodko

Great!