• Kuldeep Tyagi 14
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
Hello,
This is related to trailhead Lightning components: Attributes and Expressions. While saving below code for the lightening component for the challenge in devloper console. I am getting error: FIELD_INTEGRITY_EXCEPTION: "Failed to save undefined: null: Source". If I replace the outputCurrency and ouptutNumber tag with outputText then it get saved. But that does not meet the challenge. Can someone please advise?

<aura:component >
    <aura:attribute name="item" type="Camping_Item__c" required="true"/>
    <p>Name:
    <ui:outputText value="{v.item.Name}"/> 
    </p>
    <p>
    Price:
    <ui:outputCurrency value="{v.item.Price__c}"/> 
    </p>
    <p>
    Quantity:
    <ui:outputNumber value="{v.item.Quantity__c}"/>
    </p>
    <p>
    Packed:
    <ui:outputCheckbox value="{v.item.Packed__c}"/>
    </p>
</aura:component>

Thanks,
Kuldeep
Hello,
This is related to trailhead Lightning components: Attributes and Expressions. While saving below code for the lightening component for the challenge in devloper console. I am getting error: FIELD_INTEGRITY_EXCEPTION: "Failed to save undefined: null: Source". If I replace the outputCurrency and ouptutNumber tag with outputText then it get saved. But that does not meet the challenge. Can someone please advise?

<aura:component >
    <aura:attribute name="item" type="Camping_Item__c" required="true"/>
    <p>Name:
    <ui:outputText value="{v.item.Name}"/> 
    </p>
    <p>
    Price:
    <ui:outputCurrency value="{v.item.Price__c}"/> 
    </p>
    <p>
    Quantity:
    <ui:outputNumber value="{v.item.Quantity__c}"/>
    </p>
    <p>
    Packed:
    <ui:outputCheckbox value="{v.item.Packed__c}"/>
    </p>
</aura:component>

Thanks,
Kuldeep