Create custom path dynamically for a picklist field of Stage in Opportunity Object using lightning:picklistPath in Lightning Component Salesforce
Hey guys, today in this post we are going to learn about How to Create custom path dynamically for a picklist field of Stage in Opportunity Object using lightning:picklistPath in Lightning Component Salesforce.
Files we used in this post example
customPathStatusCmp.cmp
Lightning Component
It is used to create a custom custom path for a picklist field of Stage in Opportunity Object in lightning component Uses of lightning:picklistPath.
customPathStatusCmpController.js
JavaScript Controller File
It is hold Javascript doInit function.
customPathStatusCmpHelper.js
JavaScript Controller Helper File
It is hold Javascript Helper onselect function to get the list of Picklist value and select the active stage.
customPathStatusCtrl.apxc
Apex Class Controller
It is used to retrieve the list of Picklist value of Stage field from Opportunity Object through Apex class method.
Standard Object:- Opportunity
Stage Picklist Fields:- StageName
Standard and their fields
It’s retrieve StageName Picklist value of Opportunity.
Final Output | To know more details use this..
Other related post that would you like to learn in lightning component.
Create Lightning Component
Step 1:- Create Lightning Component : customPathStatusCmp.cmp
From Developer Console >> File >> New >> Lightning Component
customPathStatusCmp.cmp [Lightning Component File]
Create Component JavaScript Controller
Step 2:- Create Lightning Component : customPathStatusCmpController.js
From Developer Console >> File >> New >> Lightning Component >> JavaScript Controller
customPathStatusCmpController.js [JavaScript Controller]
Create Component JavaScript Helper
Step 3:- Create Lightning Component : customPathStatusCmpHelper.js
From Developer Console >> File >> New >> Lightning Component >> JavaScript Helper
customPathStatusCmpHelper.js [JavaScript Helper File]
Create Apex Class Controller
Step 4:- Create Apex Class : customPathStatusCtrl.apxc
From Developer Console >> File >> New >> Apex Class
customPathStatusCtrl.apxc [Apex Class Controller]
Further post that would you like to learn in lightning component.
Originally published at https://www.w3web.net on May 20, 2021.