Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

I am unable to save values from select components into localstorage and vice versa

Hello,

You can find how to work with component here http://devcenter.appery.io/documentat...
Code below allows to set and get localStorage variables value:
prelocalStorage.getItem('name');
localStorage.setItem('name', 'value');/pre

Abhijeet Singh
Posts: 0
Joined: Thu May 08, 2014 5:54 pm

I am unable to save values from select components into localstorage and vice versa

Suppose I have an array of 10 name stored in lsv, how do i get these values to show it in the select component using javascript?

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

I am unable to save values from select components into localstorage and vice versa

Hi Abhijeet,

At first you should set your LSV as storage.

  1. Open "Storage and models".

  2. Add new model with type "Array". http://prntscr.com/4uey7v/direct

  3. Add storage with type model from 2nd step. http://prntscr.com/4ueyq8/direct

    Then you can add any event handler with action Mapping. And link this storage to your select component(populate select with data from this storage).

    Regards.

Return to “Issues”