New answers tagged

0

There are few problems in your code You are referring to {index} in the HTML, but you have not defined that like I have done in the below code. you are not assigning the value of the field to the input. you are not updating the value of the element at a particular index in the list. The last one is not a problem but it's not proper as per naming conventions....


0

The target is a component, but you're trying to get an attribute of a DOM element. This won't work, of course. Instead, put the ID up a bit, and you can grab it: <div clas="slds-truncate" data-id="{!profIncome.Id}"> <lightning:buttonIcon iconName="utility:clear" size="x-small" name="4" onclick="{!c.deleteRow}" title="Delete Income Record" ...


0

You need one more iteration inside this which is <aura:iteration items="acc.Contacts" var="con"> {!con.Name} </aura:iteration>


2

Your iteration is doing what is supposed to 😉 <aura:iteration items="{!v.accounts}" var="acc"> <aura:iteration items="{!acc.Contacts}" var="con"> ... <lightning:accordionsection name="{!acc.Name}" label="{!acc.Name}"> You are iterating over Accounts, and for each Account, you iterate over its contacts, and for each contact ...


2

I believe your problem is that you are using a "common" variable for all items in your loop, and that when you set the value of those ones, you update them all <c:lwcCustomLookUp objectName="Service__c" indexValue="{!index}" fieldName="Name" selectRecordId="{!v.selectRecordId}" ** this selectRecordName="{!v....


Top 50 recent answers are included