Skip to main content
Ramzi Melliti perguntou em #Apex
I try to display values from my database, 3 rows especially. I tried a SOQL statement in the developer console, it works perfectly, the output was exactly what i expected.

I added his statement to the Apex class, did the init function in the componentController.js and call <aura:iteration items="{!v.products}" var="prod"> in my component.

then inside aura:iteration

<p>Nom: {!prod.Name}</p>

<p> {!prod.Wishedby__c} </p>

<p>Prix: {!prod.Prix__c}</p>

Wishedby__c is not displayed but as i said, no problem in the dev console when i type SOQL. What could it be ?

 
2 respostas
  1. 6 de dez. de 2016, 12:36
    hi Ramzi Melliti 

    make sure your field api name is Wishedby__c becase it's case-sensetive if you are using <p>Nom: {!prod.name}</p> (small name) its also not showing .

    thanks

    let me inform if it helps you