Page 2 of 3

mapping a search for the tiggzi database

Posted: Thu Sep 20, 2012 3:35 am
by maxkatz

You need to create the correct string in JavaScript:

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


mapping a search for the tiggzi database

Posted: Thu Sep 20, 2012 5:48 am
by Mike4997955

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.


mapping a search for the tiggzi database

Posted: Thu Sep 20, 2012 1:42 pm
by maxkatz

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;


mapping a search for the tiggzi database

Posted: Thu Sep 20, 2012 4:47 pm
by Mike4997955

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?


mapping a search for the tiggzi database

Posted: Thu Sep 20, 2012 4:49 pm
by maxkatz

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


mapping a search for the tiggzi database

Posted: Thu Sep 20, 2012 5:18 pm
by Mike4997955

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?


mapping a search for the tiggzi database

Posted: Thu Sep 20, 2012 5:23 pm
by Mike4997955

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


mapping a search for the tiggzi database

Posted: Thu Sep 20, 2012 5:23 pm
by maxkatz

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.


mapping a search for the tiggzi database

Posted: Thu Sep 20, 2012 5:31 pm
by Mike4997955

OK. Thanks


mapping a search for the tiggzi database

Posted: Thu Sep 20, 2012 5:35 pm
by Mike4997955

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