Page 3 of 3
"edit js' code on where for query which takes input values for 2 variables and does collection lookup, then allows anoth
Posted: Wed Feb 12, 2014 9:30 pm
by Kateryna Grynko
Please open browser console (F12) and post a screenshot of a Network tab, this is to see what is actually sent.
I see an empty result even in service test. How is it supposed to work?
"edit js' code on where for query which takes input values for 2 variables and does collection lookup, then allows anoth
Posted: Wed Feb 12, 2014 9:52 pm
by kabrams
I'm not sure how to do that. Please advise.
"edit js' code on where for query which takes input values for 2 variables and does collection lookup, then allows anoth
Posted: Wed Feb 12, 2014 10:48 pm
by Kateryna Grynko
F12 on keyboard - open Network tab.
"edit js' code on where for query which takes input values for 2 variables and does collection lookup, then allows anoth
Posted: Thu Feb 13, 2014 2:05 am
by kabrams
"edit js' code on where for query which takes input values for 2 variables and does collection lookup, then allows anoth
Posted: Thu Feb 13, 2014 3:22 am
by kabrams
My goal is to search collection on 'state' & 'county' variables, pull all of the records that meet this criteria, assign to local storage variable, then use event js to calculate average of values in each of two additional variables 'grade_overall' & 'grade_courtesy'. Output to labels must reflect
county, average grade courtesy, average grade overall
"edit js' code on where for query which takes input values for 2 variables and does collection lookup, then allows anoth
Posted: Thu Feb 13, 2014 4:37 am
by kabrams
Does the data stay in the storage data indefinitely? I just need it to stay in the variable long enough to lookup the search. I need new values to be assigned to the storage variable for subsequent searches. Is there a release / clear function to clear values?
"edit js' code on where for query which takes input values for 2 variables and does collection lookup, then allows anoth
Posted: Thu Feb 13, 2014 3:18 pm
by kabrams
There's got to be a bug in this code. I have another page that works exactly the same way. Same logic, same 'where' and it executes just fine. Trying to solve this, 3 days and counting....
"edit js' code on where for query which takes input values for 2 variables and does collection lookup, then allows anoth
Posted: Thu Feb 13, 2014 3:36 pm
by kabrams
Hello, are you deliberately ignoring my requests for help?
"edit js' code on where for query which takes input values for 2 variables and does collection lookup, then allows anoth
Posted: Thu Feb 13, 2014 3:41 pm
by Kateryna Grynko
Hello,
[quote:]Does the data stay in the storage data indefinitely[/quote]Do you mean localStorage? There the data will be stored until you delete it.
[quote:]I need new values to be assigned to the storage variable[/quote]Just set a new value, it will replace an old one.
Please open console Network tab and wind where you access Database, then see what data you send to server. Or you can add an alert in mapping to a parameter 'where' to check what you pass to 'where'.