How to display dynamically the list of opportunities Using Javascript controller, Helper and Apex Class Method in lightning component Salesforce | How to fetch and display list of Opportunity records using aura:iteration in Lightning Component Salesforce

Vijayk
2 min readJul 7, 2022

--

Hey guys, today in this post we are going to learn about How to display dynamically the list of opportunities Using Javascript controller, Helper and Apex Class Method in lightning component Salesforce.

Find the Lightning Aura Components Developer Guide, Click Here →

Files we used to display opportunity records in lightning component →

displayDataCmp.cmp

Lightning Component

It is used to display Opportunity records in lightning component

Final Output → To get source code live demo..

Other related post that would you like to learn in Salesforce

Create Lightning Component →

Step 1:- Create Lightning Component : displayDataCmp.cmp

From Developer Console >> File >> New >> Lightning Component

displayDataCmp.cmp [Lightning Component File]

Create JavaScript Controller →

Step 2:- Create Lightning Component : displayDataCmpController.js

From Developer Console >> File >> New >> Lightning Component >> JavaScript Controller

displayDataCmpController.js [JavaScript Controller]

Create JavaScript Helper →

Step 3:- Create Lightning Component : displayDataCmpHelper.js

From Developer Console >> File >> New >> Lightning Component >> JavaScript Helper

displayDataCmpHelper.js [JavaScript Helper File]

Create Apex Class Controller →

Step 4:- Create Apex Class : displayDataCtrl.apxc

From Developer Console >> File >> New >> Apex Class

displayDataCtrl.apxc [Apex Class Controller]

Create Lightning Application →

Step 5:- Create Lightning Application : displayDataApp.app

From Developer Console >> File >> New >> Lightning Application

displayDataApp.app [Component Application File]

Further post that would you like to learn in Salesforce FAQ (Frequently Asked Questions)

Final Output → To get source code live demo..

Hi, This is Vijay Kumar behind the admin and founder of w3web.net. I am a senior software developer and working in MNC company from more than 8 years. I am great fan of technology, configuration, customization & development. Apart of this, I love to write about Blogging in spare time, Working on Mobile & Web application development, Salesforce lightning, Salesforce LWC and Salesforce Integration development in full time. [Read full bio] | | The Sitemap where you can find all published post on w3web.net

Originally published at https://www.w3web.net on July 7, 2022.

--

--

Vijayk
Vijayk

Written by Vijayk

Easy to learn step-by-step online tutorial by www.w3web.net

No responses yet