mapping a search for the tiggzi database
You need to create the correct string in JavaScript:
return "{'name':'"+localStorage.getItem('...')+"'}";
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 need to create the correct string in JavaScript:
return "{'name':'"+localStorage.getItem('...')+"'}";
Ok. I added: return "{'name':'"+localStorage.getItem('IdTag')+"'}"; What am i doing wrong?
I tried using debug mode on the android mobile tester but didn't see any output.
You need to make sure you get the correct string wit some basic debugging. Print it out and see that the query string is correct:
var q = "{'name':'"+localStorage.getItem('IdTag')+"'}";
console.log(q);
return q;
The string is correct! But the variable from the first page isn't being passed correctly to the next page. I set it up so that the variable is assigned to a component, a label in a clickable list. any ideas?
How do you pass the variable from the first page..?
The variable is set up like this:
I click on the list component and create an event on click set local storage
It's set up like this:
Variable name: IdTag
Target Component: NameLabel
Property name: Text
Doesn't the variable automatically go to the next page?
NameLabel is a label, the info loaded form the database. And that label is working.
It's in local storage, so it's available on every page. Check to make sure the value is actually saved into local storage. You can use Chrome Developer Tools to check that.
OK. Thanks
Ok. it's returning a: null
why isn't it saving into local storage from the clickable list?