Questions tagged [aura-iteration]

questions regarding the aura:iteration component. This coomponent iterates over a collection of items and renders the body of the tag for each item.

Filter by
Sorted by
Tagged with
0
votes
0answers
127 views

Aura:iteration and appending {!v. } with the var iterator

Is there a way, while iterating through a List of field names to retrieve the corresponding record field value? Ex: <aura:attribute name="layoutAPIFieldsList" type="List" /> <aura:...
1
vote
1answer
155 views

Disable aura:Iteration field but keep name attribute visible

How could it be accomplished to display the field name above the input field if the field is disabled? As of now, if the field is disabled, so is the e.fieldName attribute. <aura:iteration items=...
2
votes
1answer
3k views

Iterating Complex Map in Lightning

I'm working a lightning component, which has a requirement of displaying a dynamic table. For that, I need to iterate over a map (Map>) and display the values. So, How can I retrieve map from apex ...
1
vote
1answer
2k views

Aura Iterate, get the aura:id of a span

I'm trying to get the ID of an element that is in a loop to trigger an event, but I can't get the ID nor content of the tag. I've done something similar on visual force pages, but I did it ...
0
votes
1answer
436 views

trouble with aura:iteration and JSON object

I have a Helper function with the following JSON: getUsersVacationItemsList : function (component, event) { var tableRow =[ { 'commonName': 'xpto', 'calendar': [ {...
0
votes
1answer
2k views

Change variant on lightning button when clicked?

I'm trying to have my lightning:button display a different variant based on if it's clicked or not. I'm iterating through a array where each item has its button. This is the component <aura:...
4
votes
2answers
529 views

Lightning aura:iteration issue with deleting element after sorting

Recently I got a very weird issue with aura:iteration and don't know how to solve it yet. If I sort my list of element to ascending order and delete some element from the list then if I try to sort ...
12
votes
4answers
3k views

How do we identify which lightning input is updated in an iteration?

I'm trying to construct a page that allows users to edit records, and it should be in SLDS, so I'm trying to use lightning:input to minimize the amount of code I need to write. Ultimately, a method ...
0
votes
1answer
527 views

Lightning get related values from checkbox

I am displaying a list of accounts and have a checkbox next to those accounts. I would like to process the information from those accounts based on if the checkbox is selected. Below is my component,...
1
vote
2answers
591 views

3 nested aura:iteration's don't work properly

I have the following object in Javascript: [{"Name" : myName, "Sub" : [{"Name": mySubname, "Items" : [{"Id": a, "Name": b},{"Id": c, "Name": d}, ...] }, {...}, ....
0
votes
1answer
1k views

Save record on button click

I have a list of records displayed on lightning component using There are Save buttons corresponding to each record. The fields of the records are editable. I want to save the record, the ...
1
vote
1answer
473 views

How to fetch the accounts based on a value checkbox

I have a dynamic checkbox generator which is bound by city on the account which works fine all cities are rendered with a corresponding checkbox. When I select the checkbox a city is added to a list ...
0
votes
1answer
37 views

How to pass itteration id value to to another component

I have an iteration from where I want to display a component and cant seem to get the values displaying from my other component Error: Unable to get value for key 'opleiding.Id'. No value provider was ...
0
votes
1answer
482 views

Lightning : Select not storing changed data

The issue is that when I click on save, the data is not being saved... In the same object, I have a checkbox wich is being correctly saved, so I don't know what could be happening. I have next select: ...
0
votes
1answer
2k views

using Aura:If , inside the Aura:Iteration

<aura:iteration items="{!v.contacts}" var="item" indexVar="idx"> <aura:if isTrue="{!lessthan(idx,5)}"> <ui:outputText value="{!ind}" /> </aura:if> </aura:...
1
vote
2answers
2k views

Retrieve elements created with Aura:Iteration

I'm trying to retrieve elements using document.getElementsByClassName("") within the afterRender function. This works as expected with normal elements. However, I can't seem to retrieve elements being ...
7
votes
3answers
11k views

component.find an aura:id item created in aura:iteration

I am building a menu component. One menu-item is a sub-menu with list of opportunities, this list is created with aura:iteration over a list of opportunities. When selecting a menu or a sub-menu, I ...
0
votes
1answer
5k views

JSON parsing and aura iteration in salesforce Lightning

Below is the link of format JSON example I am trying to bind the data which is there in results-> items using aura:iteration. Here is my code for that. <aura:iteration items="{!v.newassets....
0
votes
1answer
1k views

Get data from inner component present inside aura iteration in parent component

I want to get data from child component in parent component, child component is present inside inside auar:iteration in parent component and elements are rendered in child component using aura:if. I ...
1
vote
1answer
12k views

Using an aura:iteration index as an array accessor [duplicate]

I am creating a lightning component that is a Day-of-the-Week picker widget. it will allow a user to enable or disable days from a list. My front has two attributes that are useful here - a list of ...
1
vote
0answers
944 views

Getting Uncaught Action failed: aura:if$controller$handleTheTruth [Cannot read property '$getType$' of undefined] error on Component.set

In my code, I am getting a list of Object from apex controller, and populating the same into an aura attribute paginationList. On the below line, I am getting the error: component.set('v....
1
vote
0answers
79 views

Data binding variables were displayed Blank in Lightning component inside aura:iterator

I'm Displaying two types of lists in Lightning component. One is List of OpportunityTeamMember and other is List of case. But when I'm iterating over List of Opportunity team members I'm able to see ...
1
vote
1answer
1k views

aura:iteration to display data in columns after certain count

<fieldset class="slds-form-element slds-m-top_xx-large form-fields-width borderForBoxes"> <LEGEND class="slds-form-element__label tlabel slds-text-body_small"> ...
12
votes
2answers
1k views

Is it possible to use the new v41.0 lightning:outputField in huge numbers inside tables? Is it possible to extend it?

Today I'm giving the new v41.0 <lightning:outputField> a try. I want to use it massively inside an <aura:iteration> to build a data-table and want to accomplish the following: ...
1
vote
1answer
10k views

How to use lightning:outputField and lightning:inputField inside an aura:iteration

How can I use the new v41.0 <lightning:outputField> inside an <aura:iteration>? I have tried this <aura:attribute name="Opportunities" type="Object" default="{}" /> <aura:...
0
votes
1answer
4k views

Multiple input inside aura:iteration table

I have an attribute that I am rendering to a table inside an aura:iteration with the following code: <aura:attribute name="licenceassocparties" type="String[]" default="false" access="PRIVATE"/>...
3
votes
0answers
648 views

Lightning “change” event doesn't fire in aura:Iteration

I am passing an Object to my component and iterate through it's child records. To handle changes I added the Lightning change handler. (I made data an array, so I can set a default for demo purposes, ...
0
votes
1answer
2k views

How do I get the value of a checkbox in Lightning Component [duplicate]

I have a 2 date field where user can enter 2 dates and I iterate between the 2 dates. each date will bring a checkbox of am or pm. I wanna get the value of each date and if either checkbox was checked ...
2
votes
1answer
7k views

Lightning Components: How to do nested aura:iteration of a list of Accounts with subselected Contacts?

Scenario In Visualforce we had strong patterns for implementing the rendering of hierarchical structures. As a simplified example (standing for many other use cases) let's say we want to show all ...

1 2
3