Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Query service with Request that gets information based on part of the data field

Nope
Neither
return('{"Client":{$regex: "'+ value +'", $option: 'i'}}');
or this works
return('{"Client":{$regex: "'+ value +'", $options: 'i'}}');

The error
Uncaught SyntaxError: Unexpected string

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Query service with Request that gets information based on part of the data field

I have tried quite a few options. There seems to be no consistency in Java syntax translations.

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Query service with Request that gets information based on part of the data field

This works but has no effect on case and is useless
{"Client":{$regex: "'+ value +'", $option: "i"};

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

Query service with Request that gets information based on part of the data field

Hi Deon,

Sorry, no news, working on it.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Query service with Request that gets information based on part of the data field

Hello! Please try this way prereturn '{"Client":{$regex: "'+ value +'", $options: "i"}}';/pre

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Query service with Request that gets information based on part of the data field

Maryna........ you are brilliant! Thank you.

Ketan Patil
Posts: 0
Joined: Tue Dec 03, 2013 1:10 pm

Query service with Request that gets information based on part of the data field

it is working fine, but not searching in between string
for example
if datafield = "mother father"
above js searches for mother only

how to search father

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Query service with Request that gets information based on part of the data field

Hello! Not sure I understand the question. Could you clarify what string have you set for search and what strings should have been found, but they're not?

Return to “Issues”