Picklist values

How to Fetch Picklist value from sObject and Set in ui:inputSelect

Lightning Component
Prerequisites : basic understanding of Lightning Component and apex programming

In this Sample code we will fetch Picklist field (‘Industry’) values from Account object and set in ui:inputSelect on lightning Component.

 

fetch picklist value and set in ui:inputSelect
output (click here to see full screen)
sample code for fetch Picklist values from sObject

apex class [ fetchPicklistOptsController.apxc ]

Component [sample.cmp]

Controller [ sampleController.js]

Helper [sampleHelper.js]

TestApp.app

Like our facebook page for new post updates.?

(Visited 34,057 times, 4 visits today)

37 comments

Leave a Reply