-
Problem in response.getReturnValue() result when storing in two attributes in salesforce
When I stored response.getReturnValue() in two attributes in lightning if any change applied on one attribute other attribute data also changing
component.set("v.pricebookProducts", response.getReturnValue()); //getting pricebook products
component.set("v.pricebookProductsCopy", response.getReturnValue());if i done any modification on the first attribute then the second attribute also changing.pls help me how to overcome this problem
Log In to reply.
Popular Salesforce Blogs
Data Manipulation and Error Handling in Salesforce
In Salesforce, to fetch data using apex we require DML operations. Apex allows DML operations on both List<Sobject> and single sObject to update data in…
Image Uploader: An Amazing Lightning Component
This is the documentation to create a lightning component to upload pictures to a standard salesforce object which in this particular case is the Products.…
Communicate Between Components Using Events in Lightning Web Components | Salesforce Developer Guide
Introduction Standard DOM events are dispatched by Lightning web components. Custom events may also be generated and dispatched by components. To communicate the components holding…
Popular Salesforce Videos
How To Use Javascript Editor In Formstack Part 2 - Learn Salesforce Series By Algoworks
Learn how to integrate Javascript editor in Formstack in this Salesforce tutorial brought to you by Algoworks. Did you miss the complete tutorial? To watch…
Wow Your Customers with Salesforce Customer 360
Salesforce Customer 360 helps companies unite their teams to deliver amazing wow-worthy experiences beyond customer expectations.
Success from Anywhere with Salesforce EMEA Leaders
Watch this video to learn about Success from Anywhere with Salesforce EMEA Leaders. Do let us know your opinions in the comment section.