Marc6388140
Posts: 0
Joined: Tue Nov 05, 2013 3:04 pm

How to select a value in a list and retrieve data in a new page based on that value?

My issue is still there.

Maybe it is not the best way to define the architecture of my App and I should have 24 pages with filters set manually? How do the other people achieve what I'm asking at the first post?

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

How to select a value in a list and retrieve data in a new page based on that value?

  • On "startScreen" remove mobilelistitem_44 click event;

    • On "startScreen" add localStorage variable like on screenshot

      Image

    • put next code to where clause:
      prereturn '{"COMARCA":"'+value+'"}';/pre

Marc6388140
Posts: 0
Joined: Tue Nov 05, 2013 3:04 pm

How to select a value in a list and retrieve data in a new page based on that value?

Now the problem I have is that if I set an event into another mobilelistitem with another text ("Alt Empordà"), when doing click the value stored stills being "Alt Camp" and not "Alt Empordà". How can I do it to "flush" or empty the locally stored data?

Image

Image

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

How to select a value in a list and retrieve data in a new page based on that value?

You can set it to an empty string value. For instance:

localStorage.setItem("key", "");

You can also remove the item:
localStorage.removeItem("key);

Marc6388140
Posts: 0
Joined: Tue Nov 05, 2013 3:04 pm

How to select a value in a list and retrieve data in a new page based on that value?

It works now.

For some reason the element was storing a wrong value (the same as the first element). So, I just deleted the second list element and created it again.

Thank You,

Marc

Return to “Issues”