Page 4 of 7
Creating a search with 2 variables
Posted: Sat Mar 02, 2013 8:35 pm
by Chris Ross
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);
Creating a search with 2 variables
Posted: Sat Mar 02, 2013 9:53 pm
by maxkatz
In the console, you only enter the {...} part.
Creating a search with 2 variables
Posted: Sat Mar 02, 2013 10:00 pm
by Chris Ross
Creating a search with 2 variables
Posted: Sat Mar 02, 2013 10:01 pm
by maxkatz
Also, the actual data goes there, no variables.
Creating a search with 2 variables
Posted: Sat Mar 02, 2013 10:05 pm
by Chris Ross
still telling me incorrect query
Creating a search with 2 variables
Posted: Sat Mar 02, 2013 10:05 pm
by Chris Ross
I don't know what else to do
Creating a search with 2 variables
Posted: Sat Mar 02, 2013 10:08 pm
by maxkatz
Please post two rows from your collection and the sample query you are trying to run.
Creating a search with 2 variables
Posted: Sat Mar 02, 2013 10:48 pm
by Chris Ross
And from my snapshots earlier:
Creating a search with 2 variables
Posted: Mon Mar 04, 2013 5:46 pm
by Maryna Brodina
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"
Creating a search with 2 variables
Posted: Mon Mar 04, 2013 8:29 pm
by Chris Ross
Sorry for the late response, I've been in class. Here you go: