You need to sign in to do that
Don't have an account?
@ M Coder
Hi Friends i need to call these 3 fields on Account object . i heard that there is an approach where we give the object and field name and it will give desired picklist value result using map .
my picklist fields are
1)Account.Rating__c and values = {'High','low','Medium' }
2)Account.Locality__c and values = {'Local','global','international' }
3)Account.generic__c and values = {'A','B','C','d','e' }
Need display 3 Picklist Values dynamically Or Generic code using maps and displaying in lightning component Via Apex class.
Hi Friends i need to call these 3 fields on Account object . i heard that there is an approach where we give the object and field name and it will give desired picklist value result using map .
my picklist fields are
1)Account.Rating__c and values = {'High','low','Medium' }
2)Account.Locality__c and values = {'Local','global','international' }
3)Account.generic__c and values = {'A','B','C','d','e' }
Greetings to you!
Below is the sample code which I have tested in my org and it is working fine. Kindly modify the code as per your requirement.
Apex:
Component:
Controller:
Helper:
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas