Mats Bergström
Posts: 0
Joined: Sat Jan 04, 2014 3:26 pm

Display data from multidimensional array stored with JSON in localstorage

I store this multidimensional array in localstorage :
var log = [["a","b","c","d","e"],["1","2","3","4","5"]];
localStorage.log = JSON.stringify(log);

I know I can use JSON.parse to get the array, but how can I display all data in the array in an appery component (maybe a list, grid or table)?

Many thanks

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

Display data from multidimensional array stored with JSON in localstorage

This should help :
http://stackoverflow.com/questions/15...

Also, you can put you data in DB collection and use list service to retrieve values to a list, grid or table components.
http://docs.appery.io/tutorials/build...

Mats Bergström
Posts: 0
Joined: Sat Jan 04, 2014 3:26 pm

Display data from multidimensional array stored with JSON in localstorage

Thank you for your reply. I'm sorry for being ignorant, but as I'm all new to this could you please tell me how to get the data from the Javascript array to the appery component? I am not using the appery backend database only browser localstorage and can get the data to a JavaScript array but don't know how to go from there. Should I use some appery functionality or only JavaScript? Should I create a HTML component or maybe a list in the appery UI and populate it with array data through Javascript? Is there a detailed manual for this?

Istvan
Posts: 0
Joined: Mon Oct 13, 2014 1:48 pm

Display data from multidimensional array stored with JSON in localstorage

My question is same ... how can i mapping array from LSV to page component?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Display data from multidimensional array stored with JSON in localstorage

Select "Storage" to show defined storage variables for further mapping and follow this doc: https://devcenter.appery.io/documenta...

AndroidApp Developers
Posts: 0
Joined: Sat Mar 26, 2016 6:50 am

Display data from multidimensional array stored with JSON in localstorage

how to apply search option more than 5 column in appery.io please help me and be fast.

Thanks

Return to “Issues”