JS not able to identify array name
Hi, I am trying to store a DB array into local storage. To achieve this, I have used the following JS in the service response mapping where DB array (called Offer) is mapped onto a mobilegrid.
localStorage.Offer_LS = JSON.stringify(Offer);
This gives me an error in console as "Uncaught ReferenceError: Offer is not defined"
What am I doing wrong. Am I not catching the DB array correctly in Service Response Mapping JS?