You need to sign in to do that
Don't have an account?
Ram Shiva Kumar
Custom settings in aura component
Hi, i want to display the custom setting values in in aura component.
this is my controller,
@AuraEnabled
public static shop__c details()
{
shop__c adv= shop__c .getOrgDefaults();
return adv;
}
and in aura client controller,
getaddvalues: function(component) {
var address=component.get('c.details');
var self = this;
address.setCallback(this, function(actionResult) {
component.set("v.addressdetails", actionResult.getReturnValue());
});
$A.enqueueAction(address);
},
amd my component:
<aura:iteration items="{!v.addressdetails}" var="list">
<ui:outputText value="{!list.To_mail}" />
But with the above code iam not getting the custom setting values.
Please suggest me whther i am following the corrcet way or i have to implment in other way......?
Regards,
Ram.
this is my controller,
@AuraEnabled
public static shop__c details()
{
shop__c adv= shop__c .getOrgDefaults();
return adv;
}
and in aura client controller,
getaddvalues: function(component) {
var address=component.get('c.details');
var self = this;
address.setCallback(this, function(actionResult) {
component.set("v.addressdetails", actionResult.getReturnValue());
});
$A.enqueueAction(address);
},
amd my component:
<aura:iteration items="{!v.addressdetails}" var="list">
<ui:outputText value="{!list.To_mail}" />
But with the above code iam not getting the custom setting values.
Please suggest me whther i am following the corrcet way or i have to implment in other way......?
Regards,
Ram.
You have not included the __c to the end of the field.
Use this snipped list should work
Thanks
Pramodh