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
Fernando AndradaFernando 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 image
Mubeen QawiMubeen Qawi
Hey Fernando,

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
Fernando AndradaFernando Andrada
Hi, I guess that everything is all right. Here's the code
<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}"/>
        <ui:outputText aura:id="Name" value="{!v.item.Name}"/>
        <ui:outputCurrency aura:id="Price" value="{!v.item.Price__c}"/>
        <ui:outputNumber aura:id="Quantity" value="{!v.item.Quantity__c}"/>
        <ui:outputCheckbox aura:id="Packed" value="{!v.item.Packed__c}"/>
and the field level security for the Quantity field

User-added image
Mubeen QawiMubeen Qawi
Hi Fernando, You may want to enable edit permissions for applicable profiles. Visible is equal to 'Read Only'. Maybe that is an issue here.