Hello Anil,
Variable data is available for absolutely all the services
Hello Anil,
Variable data is available for absolutely all the services
Hi Evgene, variable "data" is not working for me in a query service. It returns "undefined" on using the following code on success of query service:
localStorage.setItem("Offers_LS", JSON.stringify(data.Offer));
Same code works absolutely fine in case of a read service.
Both services are displaying the same data on my page though.
Anil,
Entry data.Offer assumes that in response there is one object and it has the parameter Offer
You should output all variable data to the console and check this
preconsole.log(data);/pre
Hi Anil,
Try the following code please:prelocalStorage.setItem("Offers_LS", JSON.stringify(data[0].Offer));/pre
Yes this works. Thanks