Chris Ross
Posts: 0
Joined: Wed Feb 13, 2013 4:06 pm

Creating a search with 2 variables

says its invalid. I used the one Katya told me about:

var whereClause = { "County": Tiggzi("select_component_name").val(),
"Restaurant": Tiggzi("select_component_name").val()};
return JSON.stringify(whereClause);

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Creating a search with 2 variables

In the console, you only enter the {...} part.

Chris Ross
Posts: 0
Joined: Wed Feb 13, 2013 4:06 pm

Creating a search with 2 variables

okay thank you

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Creating a search with 2 variables

Also, the actual data goes there, no variables.

Chris Ross
Posts: 0
Joined: Wed Feb 13, 2013 4:06 pm

Creating a search with 2 variables

still telling me incorrect query

Chris Ross
Posts: 0
Joined: Wed Feb 13, 2013 4:06 pm

Creating a search with 2 variables

I don't know what else to do

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Creating a search with 2 variables

Please post two rows from your collection and the sample query you are trying to run.

Chris Ross
Posts: 0
Joined: Wed Feb 13, 2013 4:06 pm

Creating a search with 2 variables

Image

And from my snapshots earlier:

Image

Image

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

Creating a search with 2 variables

Hello! In JS code in mapping to "where" paste alert(JSON.stringify(whereClause)); before return JSON.stringify(whereClause);

Please post what did you get in alert window so we can see what you send on server in "where"

Chris Ross
Posts: 0
Joined: Wed Feb 13, 2013 4:06 pm

Creating a search with 2 variables

Sorry for the late response, I've been in class. Here you go:
Image

Return to “Issues”