maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

mapping a search for the tiggzi database

You need to create the correct string in JavaScript:

return "{'name':'"+localStorage.getItem('...')+"'}";

Mike4997955
Posts: 0
Joined: Wed Sep 12, 2012 7:50 pm

mapping a search for the tiggzi database

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.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

mapping a search for the tiggzi database

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;

Mike4997955
Posts: 0
Joined: Wed Sep 12, 2012 7:50 pm

mapping a search for the tiggzi database

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?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

mapping a search for the tiggzi database

How do you pass the variable from the first page..?

Mike4997955
Posts: 0
Joined: Wed Sep 12, 2012 7:50 pm

mapping a search for the tiggzi database

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?

Mike4997955
Posts: 0
Joined: Wed Sep 12, 2012 7:50 pm

mapping a search for the tiggzi database

NameLabel is a label, the info loaded form the database. And that label is working.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

mapping a search for the tiggzi database

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.

Mike4997955
Posts: 0
Joined: Wed Sep 12, 2012 7:50 pm

mapping a search for the tiggzi database

OK. Thanks

Mike4997955
Posts: 0
Joined: Wed Sep 12, 2012 7:50 pm

mapping a search for the tiggzi database

Ok. it's returning a: null
why isn't it saving into local storage from the clickable list?

Return to “Issues”