Page 1 of 1

Restservice call with multiple conditions

Posted: Sat Dec 29, 2012 11:27 am
by Joe Bohen

Hi,

I am attempting to call a Tiggzi restservice using a where and 'AND' parameters! I have mapped the request and tested but I get records returned that do not meet the conditions, will you advise me on the correct method please.

Regards,
Joe

Image


Restservice call with multiple conditions

Posted: Sat Dec 29, 2012 12:48 pm
by Kateryna Grynko

Hello,

You should delete Request parameter "and" and write code{account: "systems", driver:"JOE"}/code in parameter "where".

Then multiple conditions search will work properly.


Restservice call with multiple conditions

Posted: Sat Dec 29, 2012 1:53 pm
by Joe Bohen

Hi Katya,
The test works fine but how do I deliver the parameters? I have attempted to return the string but the syntax is not correct, how would I construct this?

var A = localStorage.getItem('account');
var D = localStorage.getItem('driver');
return '{"driver":"' + D + , + '"account":"' + A + '"}'


Restservice call with multiple conditions

Posted: Sun Dec 30, 2012 7:34 pm
by Joe Bohen

Hi Katya,

Managed to get my head around the correct syntax for the string. Thanks for your help.

Joe