I am trying to pass two local variables to one where clause. As seen in the documentation here http://devcenter.appery.io/documentat...
This is the code I am using. I have placed it in the Where clause.
var RestaurantNameObject = localStorage.getItem(RestaurantName);
var RestaurantHeaderObject = localStorage.getItem(RestaurantHeader);
var RestaurantNameJSON = JSON.stringify(RestaurantNameObject);
var RestaurantHeaderJSON = JSON.stringify(RestaurantHeaderObject);
return {"$and":[{"RestaurantName": RestaurantNameJSON},{"HeadingName": RestaurantHeaderJSON}]};
When I test the app I get an error with this description -- RestaurantName is not defined
I have RestaurantName and Header save in local variables from previous pages.