Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

106
Visualizações
copy the value in a iteration to text another field in salesforce aura
 <aura:iteration items="{!v.QliList}" var="Qli" indexVar="index">
                        <tr>
                            <td> 
                                {!index + 1}
                            </td>
                <td>
                    <c:lookupField 
                    objectAPIName="US_DB_QLI__c" 
                    label="{!index}"
                    returnFields="['Name']" 
                    queryFields="['Name']"
                    selectedId="{!v.selectedId}"
                    filter="CreatedDate > 2001-01-01T00:00:01Z"  
                    aura:id="QliName"
                    />                   <lightning:input   size="8" type="text" required="true"  value="{!Qli.Name}" onclick="{!c.echo}"/> </td> </aura:iteration>

Java script controller:

echo: function(component, event, helper) {
let Index =  event.getSource().get("v.name");    
// var searchInput =component.get("v.QliList").find(row =>Index);
var searchValue = component.find("QliName").get("v.selectedId");   
alert(searchValue);    
var qlistring='v.QliList['+Index+'].Name';   
component.set(qlistring,searchValue);  
} 

Is there any possible way to get value of (c:lookupField) by label defined by dynamic index label="{!index}"

in the above code i am getting same value for all iterated items. can someone help me in this regard.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda