Query Service??
you can find a lot of source information in the internet. You can take a look here http://www.w3schools.com/js/
Appery.io documentation
http://docs.appery.io/documentation/a...
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
you can find a lot of source information in the internet. You can take a look here http://www.w3schools.com/js/
Appery.io documentation
http://docs.appery.io/documentation/a...
Thanks again...!!
Hi everyone. I'm looking at this post because I have the same problem. Thanks for the example. I have exactly the same situation and have implemented the code just like you have here.
return '{"user_id": "' + localStorage.getItem("local_user_id") + '"}';
But I still get every record in the collection rather than just the ones with who's user_id equals the local_user_id (local storage variable).
I've tested the fact that I have the right value in local storage by displaying it in a label.
I must have something else wrong. Any other hints?
Hey Ralph! I think the user_id is a string so you would want to use:
codereturn '{"user_id": ' + localStorage.getItem("local_user_id") + '}';/code
hi Stephen, your solution don't work for me.
My poor solution with the same logic:
code
var local_user_id = localStorage.getItem("local_user_id");
var startString = "{'"
var fieldName = "user_id"
var midString = "':'"
var endString = "'}'"
return = startString.concat(fieldName,midString,local_user_id,endString);
/code
Did this work?
yes, thanks for your hint
Stephen. sorry it took so long to respond. I'm just logging back on to this system for the first time and noticed this. Yes, it worked perfectly!
Thanks again.