I am creating multiple row with sobject type abc and Reason__c as picklist value. with the below code :
<aura:component controller="Controller" Implements="lightning:availableForFlowScreens">
<aura:attribute name="accountList" type="abc[]" access="global"/>
<aura:attribute name="abcRec" type="abc[]" access="global"/>
<lightning:input name="strtdate" type="date" required="true" maxlength="50" label="Date From" value="{!acc.Start_Date__c}" />
</td>
<td>
<lightning:input name="enddate" type="date" maxlength="10" label="Date To" value="{!acc.End_Date__c}" />
</td>
<td>
<lightning:input name="Reason" label="Reason" value="{!acc.Reason__c}"/>
</td>
I am pushing the values from helper using the below code
accountList.push({
'sobjectType': 'abc',
'Start_Date__c': '',
'End_Date__c': '',
'Reason__c': '',
'Comments__c': ''
});
component.set("v.accountList", accountList);
I need to make reason as picklist value without making the code complex.
Tried to use value="{!acc.Reason__c}"
however its not working . Any workaround