Trouble using local storage variable in Salesforce Integration soql query
I'm fairly new to queries and to mobile app development. I'm currently trying to make an app that will show a list of warehouses (currently works - creates a list of possible warehouse choices). The app then takes the selection and stores the unique salesforce id of the warehouse into a local storage variable. I then want to go to another page to show a list of items in that warehouse (basically I want to list out the items of a related list from salesforce).
Here is what I have for my query request parameters:
SELECT Id, Name, Productr.Name FROM Inventoryc WHERE Warehousec={Warehouser.Id}
Here is what I get in the test data screen:
{
"status":"400 Bad Request",
"url":"https://dac.my.salesforce.com/service...",
"response":[
{
"message":"\nInventoryc WHERE Warehousec=\n \nERROR at Row:1:Column:70\nunexpected token: ''",
"errorCode":"MALFORMED_QUERY"
}
]
}
Note: For some reason when I paste the data in here it cuts < EOF from after the unexpected token part.
I've also included a screenshot:
Any thoughts what I'm doing wrong?
Thanks,
Nick