I store a cliked value of a listitem to a localstorage from Page 1. I navigate on a Click event to Page 2, which has the following textlabels on a listitem: tid, aid, spg, The textlabel "aid" correponds to the value of the data I am trying to filter. But I have 2 problems here:
All the data show if I test the data response with a static value:
code{"aid": "John Doe"};/codeSo, I put the following code in the JS in the Storage/Where mapping:
codevar result = localStorage.getItem("myaid");
alert("Local Storage received: " + result); //Gives correct data
return {"aid": myauthor};
/codeBut this gives blank page. If I delete the Storage mapping, all data show up.
I need to get the value of each of the text fields inside the listitem on Click event . This Click JS:
codealert("tid: " + Apperyio('tid').text());/codeonly gives the text of the first item and not the particular one clicked.
I appreciate your help on these 2 situations.