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
Ram Shiva KumarRam Shiva Kumar 

Custom settings in aura component

Hi, i want to display the custom setting values in in aura component. 
this is my controller,
    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());

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......?

Best Answer chosen by Ram Shiva Kumar
Pramodh KumarPramodh Kumar

You have not included the __c to the end of the field.
<aura:iteration items="{!v.addressdetails}" var="list">
        <ui:outputText value="{!list.To_mail__c}" />
Use this snipped list should work