Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

Restservice call with multiple conditions

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

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

Restservice call with multiple conditions

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.

Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

Restservice call with multiple conditions

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 + '"}'

Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

Restservice call with multiple conditions

Hi Katya,

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

Joe

Return to “Issues”