Hi Katya,
I am using the following code in a response mapping of a query service:
localStorage.setItem("Packs_LS", JSON.stringify(value));
var arrayFromLS = JSON.parse(localStorage.Packs_LS);
In above code, Packs_LS is local storage variable and value corresponds to a record within a DB array called Packs.
Since the response mapping gives a loop on all the records of DB array Packs, the above code leaves me with only the last record from Packs into Packs_LS.
How can I get the whole of Packs into Packs_LS? Do I need to change the place of writing JS (i.e. not in response mapping) or is there a way to accumulate all array records within mapping JS itself?