Chris N
Posts: 0
Joined: Thu Mar 19, 2015 5:18 pm

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

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?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

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

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

Chris N
Posts: 0
Joined: Thu Mar 19, 2015 5:18 pm

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

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

Return to “Issues”