You need to sign in to do that
Don't have an account?
d.tejdeep@nicomatic.in
I cant able to show ui:inputselect value from database ?
{!v.BatchInstance.Discount_Type__c}
<td>
<ui:inputselect class="slds-input" value="{!v.BatchInstance.Discount_Type__c}" aura:id="disctype" change="{!c.discountvalidation}">
<option value=""> - </option>
<option value="ServicePremium"> ServicePremium </option>
<option value="Service Rapide"> Service Rapide </option>
<option value="MOD/MOQ"> MOD/MOQ </option>
</ui:inputselect>
</td>
I cant able to show "{!v.BatchInstance.Discount_Type__c}" value in ui:inputselect
Outside of ui:inputselect it is showing the value .this value is retrieving from the database
<td>
<ui:inputselect class="slds-input" value="{!v.BatchInstance.Discount_Type__c}" aura:id="disctype" change="{!c.discountvalidation}">
<option value=""> - </option>
<option value="ServicePremium"> ServicePremium </option>
<option value="Service Rapide"> Service Rapide </option>
<option value="MOD/MOQ"> MOD/MOQ </option>
</ui:inputselect>
</td>
I cant able to show "{!v.BatchInstance.Discount_Type__c}" value in ui:inputselect
Outside of ui:inputselect it is showing the value .this value is retrieving from the database
Try something like below,
regards
All Answers
Refer thislink
https://salesforce.stackexchange.com/questions/190671/uiinputselect-set-the-value
https://developer.salesforce.com/docs/component-library/bundle/ui:inputSelect/example
http://sfdcmonkey.com/2016/12/05/how-to-fetch-picklist-value-from-sobject-and-set-in-uiinputselect/
Try something like below,
regards