function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Bryant Daniels 46Bryant Daniels 46 

Lighting data service with lighting select

Was wondering if anyone has had success with creating a record using lighting data service that will bring in the picklist values for a field using lightning select and just binding the value to a aura iteration. Or do i still need to Schema.DescribeSObjectResult etc.. to retrieve the values from the server.  
Alain CabonAlain Cabon
Hi,

Why didn't you use the  <lightning:inputField> directly ?
  • Picklist and multi-select picklist: Displays a picklist or multi-select picklist. Dependent picklists must be defined in your org before you can use them with lightning:inputField. Both controlling and dependent fields must be included in your component. See the example below.
https://developer.salesforce.com/docs/component-library/bundle/lightning:inputField/documentation