You need to sign in to do that
Don't have an account?
Narendra Kumar 127
We can't find the correct component or value for the Quantity field.
Below is my code.
<aura:component >
<aura:attribute name ="item" type= "Camping_Item__c" required="true"/>
<p> Name : {!v.Camping_Item__c.Name__C} </p>
<P> PRICE :
<lightning:formattedNumber Value="{!v.Camping_Item__c.Price__C}" style= "currency"/> </P>
<p> Quantity :
<lightning:formattedNumber Value="{!v.Camping_Item__c.Quantity__C}" style= "integer " /> </p>
<p>Packed : {!v.Camping_Item__c.Packed__C} </p>
<lightning:input type = "toggle"
lable="Packed "
name="Packed"
checked="{!v.camping_item__c.Packed__C}"/>
</aura:component>
I am recieving "We can't find the correct component or value for the Quantity field." Any help is really appriciated.
<aura:component >
<aura:attribute name ="item" type= "Camping_Item__c" required="true"/>
<p> Name : {!v.Camping_Item__c.Name__C} </p>
<P> PRICE :
<lightning:formattedNumber Value="{!v.Camping_Item__c.Price__C}" style= "currency"/> </P>
<p> Quantity :
<lightning:formattedNumber Value="{!v.Camping_Item__c.Quantity__C}" style= "integer " /> </p>
<p>Packed : {!v.Camping_Item__c.Packed__C} </p>
<lightning:input type = "toggle"
lable="Packed "
name="Packed"
checked="{!v.camping_item__c.Packed__C}"/>
</aura:component>
I am recieving "We can't find the correct component or value for the Quantity field." Any help is really appriciated.
Please use below code:
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh
All Answers
Please use below code:
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh
Remove the style= "integer " in Quantity Output.
<lightning:formattedNumber Value="{!v.Camping_Item__c.Quantity__C}" style= "integer " /> --> Remove style here
Try the below one:
https://github.com/Mulodo-Salesforce-Training/trailhead-salesforce-challenge/blob/master/LightningComponentAttribuites.md
https://developer.salesforce.com/forums/?id=9060G0000005RbZQAU
Thanks,
Maharajan.C
Hi Narendra,
Aura lightning is Case sensitive
So i think you should use correct API name of each Object and Field Name i.e the name which are present in org
Just Like that
why you are using Capital C below =>
<lightning:formattedNumber Value="{!v.Camping_Item__c.Quantity__C}" style= "integer " />
correct:
if Quantity__c is same as Which are present in the ORG.
similary for all
I hope it would help you, Please mark it as the Best Answer if it helps you
Thank You