Open vijayk3327 opened 1 year ago
In this post we are going to learn about How to retrieve list of records of Opportunity Object uses of Wrapper Class in Salesforce LWC – Lightning Web Component.
A wrapper class is a collection of different Salesforce data types. In Salesforce, you can combine multiple data types and utilize them for various purposes.
→ Get source code live demo link:-
Step 1:- Create Lightning Web Component : lwcWrapperClass.html
`
Step 2:- Create Lightning Web Component : lwcWrapperClass.js
` import { LightningElement,wire } from 'lwc'; import fetchOppData from '@salesforce/apex/lwcWrapperClassCtrl.fetchOppData'
export default class LwcWrapperClass extends LightningElement { @wire(fetchOppData) oppData; }`
Step 3:- Create Lightning Web Component : lwcWrapperClass.js-meta.xml ` <?xml version="1.0" encoding="UTF-8"?>
In this post we are going to learn about How to retrieve list of records of Opportunity Object uses of Wrapper Class in Salesforce LWC – Lightning Web Component.
A wrapper class is a collection of different Salesforce data types. In Salesforce, you can combine multiple data types and utilize them for various purposes.
→ Get source code live demo link:-
Step 1:- Create Lightning Web Component : lwcWrapperClass.html
`
`
Step 2:- Create Lightning Web Component : lwcWrapperClass.js
` import { LightningElement,wire } from 'lwc'; import fetchOppData from '@salesforce/apex/lwcWrapperClassCtrl.fetchOppData'
export default class LwcWrapperClass extends LightningElement { @wire(fetchOppData) oppData; }`
Step 3:- Create Lightning Web Component : lwcWrapperClass.js-meta.xml ` <?xml version="1.0" encoding="UTF-8"?>