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

"edit js' code on where for query which takes input values for 2 variables and does collection lookup, then allows anoth

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?

kabrams
Posts: 0
Joined: Mon Nov 18, 2013 2:05 am

"edit js' code on where for query which takes input values for 2 variables and does collection lookup, then allows anoth

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

kabrams
Posts: 0
Joined: Mon Nov 18, 2013 2:05 am

"edit js' code on where for query which takes input values for 2 variables and does collection lookup, then allows anoth

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?

kabrams
Posts: 0
Joined: Mon Nov 18, 2013 2:05 am

"edit js' code on where for query which takes input values for 2 variables and does collection lookup, then allows anoth

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....

kabrams
Posts: 0
Joined: Mon Nov 18, 2013 2:05 am

"edit js' code on where for query which takes input values for 2 variables and does collection lookup, then allows anoth

Hello, are you deliberately ignoring my requests for help?

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

"edit js' code on where for query which takes input values for 2 variables and does collection lookup, then allows anoth

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'.

Return to “Issues”