Local Storage is storing only the last value in my listview - i need the selected one?
Hi,
I am trying to store the selected value of an id into local storage so that when the user goes to the next screen it can request the respective record, however it seems that its storing only the last record id in the list. Im not sure what i did wrong.
I first tried to store the localSTorageItem by this code:
var load_id = Appery("mobilelistitem_515").load_id();
localSTorage.setItem("driver_active_load_id", load_id);
and on the other side I mapped the item to the request parameter with the following JS:
var load_id = localStorage.getItem("driver_active_load_id");
Since that JS code didnt work i thought maybe i had to map the list item to the local storage item:
with all that code and mapping all it did is just store the last record in the list.