Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

112
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!