Skip to main content
ram ram 님이 #Lightning Experience에 질문했습니다
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.
답변 1개
  1. 2017년 11월 16일 오후 7:02
    Ram,

    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}" />

    </aura:iteration>

    Use this snipped list should work

    Thanks

    Pramodh

     
0/9000