Hi,
I'm trying to execute a query with a local storage variabel in the where-clause.
This is my javascript for the where-parameter:
var value1 = localStorage.getItem('userid');
return '{"ReceiverID":"value1"}';
But it won't return anything ?
Hi,
I'm trying to execute a query with a local storage variabel in the where-clause.
This is my javascript for the where-parameter:
var value1 = localStorage.getItem('userid');
return '{"ReceiverID":"value1"}';
But it won't return anything ?
Please use browser dev. tools to test whether you are sending the correct request and if there are any errors.
This is the correct request because I tested the service with the value that is stored in the 'userid'-variable and it gave me the correct results..
Also note that userid holds a number not a string
I think the way you have it, it's passed as string.
So how do I pass it as a number ?
Still no solution
code
var myCount = 6;
return "{'count':"+myCount+"}"
/code
Ok thanks Max !