You need to sign in to do that
Don't have an account?
Fernando Andrada
Lightning trailhead, everything seems to be all right but I have this message "The Quantity field is not using the correct output component"
I tried everything but I still got this message. The lightning trailhead is https://trailhead.salesforce.com/es-MX/modules/lex_dev_lc_basics/units/lex_dev_lc_basics_attributes_expressions.
I guess the Quantity datatype is Number (right). So ensure that you use correct <ui:outputXXX /> tag for Number. For instance:
<ui: outputText > is for Text field.
<ui:outputCurrency > is for Currency field (number).
<ui:outputDate /> is for Date.
Also check that Quantity field is editable for Profiles as a part of Field Level Security. Hopefully, this should resolve it.
Mubeen Qawi
<aura:component >
<aura:attribute name="item" type="Camping_Item__c" required="true"
default="{ 'sobjectType': 'Camping_Item__c',
'Packed__c': false, 'Name' : 'xyz', 'Quantity__c' : 100, 'Price__c' : 0}"/>
<p>Name:
<ui:outputText aura:id="Name" value="{!v.item.Name}"/>
</p>
<p>Price:
<ui:outputCurrency aura:id="Price" value="{!v.item.Price__c}"/>
</p>
<p>Quantity:
<ui:outputNumber aura:id="Quantity" value="{!v.item.Quantity__c}"/>
</p>
<p>Packed:
<ui:outputCheckbox aura:id="Packed" value="{!v.item.Packed__c}"/>
</p>
</aura:component>
and the field level security for the Quantity field