Page 1 of 1

What is the best way to display array item when selected from array list?

Posted: Tue Apr 14, 2015 7:27 pm
by Chris N

I have an array of items stored in session storage. I'm reading from this array to map some of the values into a list (the array has a lot of fields per item). I would like to display a popup with full details from the selected item in the array when a user clicks on one of the list items. I'm not quite sure what the best way to approach this is.

I started by adding js to the mapping for the list display so that I'm setting the id of the array value into local storage when it is selected from the list. However, I'm not quite sure what the best way is to go about mapping the selected item from the array once I have the autoid. Is there a way to use the mapping component in appery, or do I have to manually map the array values to labels manually via javascript?


What is the best way to display array item when selected from array list?

Posted: Wed Apr 15, 2015 6:16 am
by Serhii Kulibaba

Hello Chris,

Please follow master-detail tutorial: https://devcenter.appery.io/documenta...

Use this tutorial for your issue. Use popup instead of datails page. The best way to display array item is: write on array list items their indexes and on click event read item by selected index


What is the best way to display array item when selected from array list?

Posted: Wed Apr 15, 2015 9:52 pm
by Chris N

Thanks Sergiy, saving the full object rather than just the index number makes it easy to map.