Hi.. I need to add some javascript to the 'where' request parameter on a query service that will show my users a list of Posts on a message board in my app. The Posts collection has columns for CityId and a CategoryId, which are both also local storage variables that get set during the session before the user gets to the Posts page. So the steps are:
User logs in
Searches their city and chooses it - sets CityId local storage variable
Chooses their category - sets CategoryId as local storage variable
Hits View Posts
It takes them to the Posts page and runs the Posts Query Service, and I want them to see only the rows from the Posts collection that have the CityId and CategoryId they chose.
Can someone provide the javascript I need to add to the 'where' request parameter on the Posts query service so that it looks at the Local Storage Variables for CityId and CategoryId and returns only rows that match?
Thanks!