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
12 views

aura:iteration Data table: Cannot find Aura:id for the lightning input used inside the aura:iteration

i need to use the aura:id of lightning:select. the table is rendered inside aura:iteration. there is another field(table column field) inside table that needs to be shown based on the the select ...
0
votes
0answers
23 views

Need to map two columns for aura:iteration in a table [closed]

I am displaying data in an aura:iteration, one of which is a combobox. I need to keep track of the name and it's corresponding dropdown selected. How can achieve this-- Lightning Controller COde-...
0
votes
1answer
36 views

How to set a record's field from the List in component to event?

I have a cmp with List of objects and iteration: <aura:iteration items="{!v.Objects}" var="object"> <div label="Set Id" name="{!object.Id}" onclick="{!c.action}"> {!object....
1
vote
1answer
24 views

Aura iteration for Kanban

I'm trying to create Kanban. My lists have many cards, but I can see only one card per list. I added ORDER BY ListId__c to SOQL but I still can't see other cards. First 2 lists have a few cards. How ...
1
vote
2answers
49 views

Is it possible to “find” an aura:id within an aura:id?

I have a component where I am building a lightning:recordEditForm using fields based on a different field sets that looks a little something like this: <aura:component> <aura:attribute ...
0
votes
1answer
48 views

Submit Record Edit Form for every object in Aura iteration

I have a Contact object form with a child form component for Buying Center objects. When I upsert the Contact, I need to submit a list of Buying Centers for this Contact. Parent Contact component has ...
0
votes
0answers
27 views

List item deletion in aura: iteration

I have a list in which every time I click the "Adicionar outro CID" button a new line with a field and a button "Remover" is added just below it: Original image: After clicking the button: If I ...
1
vote
1answer
34 views

Add one item per line using aura: iteration and lightning button

Clicking an "add" button would like the lines below to be always added one below the other. Today I have a problem in which two items are added per line. Right way: Como está hoje (errado): My ...
0
votes
2answers
37 views

Input field not getting populated when selecting multiple records in a table as aura:id does not support dynamic id

I have a component which will display a list of records in the table format, and here I have a pick-list input field named Distance . Now on entering value in distance field and saving the record, ...
0
votes
2answers
82 views

Nested wrapper class to use with Aura:iteration in lightning component

How to use aura:iteration over a list of Wrapper class object in Lightning component 1st Aura iteration works well it prints axisNo and axisName correct. But nested iterate with nested wrapper class ...
0
votes
1answer
52 views

Aura:if condition needs to be added in lightning select option [closed]

i am new to lightning and i need to add a aura:if condition to one of lightning select option. My lightning select option contains a none value along with other options that render data in a ...
1
vote
0answers
20 views

aura:iteration label of current field

Is there a possibility to get the Label of current field using aura:iteration ? <aura:iteration items="{!v.objectName}" var="objectName"> <lightning:input value="{!objectName.field1}" ...
0
votes
2answers
49 views

AccordianSection name property is dynamically not changed, leading to serious problem in iteration

Hi I am working on a problem where I have multiple records of an Object to be shown and each of these records, will have many child records of It's Child Object. I have chosen AccordianSection to ...
0
votes
1answer
88 views

How to use Wrapper classes in lightning component to iterate over wrapper class record list

I wants to use wrapper class object record list in lightning component and iterate over it to display the field values in all records as table. PFB the code that i have written. The problem response....
1
vote
1answer
43 views

Aura iteration returning blank rows(with correct number of rows)

My requirement is to display all the saved values on load for a Custom object called Company__c. Fields being Full_Name__c (text), Address__c(text area) , Director_Name__c (text), Phone__c (phone) and ...
0
votes
0answers
34 views

how to control number of records in aura iteration? [duplicate]

I have a lightning component with aura iteration. i want to dspaly only up to 5 records in the boxes. variable 'FslFromBox' is having around 70 records here. and i am displaying this in one single ...
3
votes
1answer
54 views

How do I get the value of a row of HTML table in an aura iteration with onclick?

I am trying to make a functionality where my lightning component shows a table of records and I want to make it so if you click a records row, it autofills my form with that records information. Here ...
0
votes
0answers
17 views

lightningselect performance

i am currently rendering a list with ca 50 records which takes very long. I have figured out that this is due to the lightning:select being in each row. The options are rendered through aura:iteration....
0
votes
1answer
24 views

How to edit a specific row/index in aura iteration by javascript?

Hi I am trying to edit a specific row in an iteration based on an onchange event. One of my columns in my iteration is a picklist. And depending on what is selected I want the rest of the columns in ...
0
votes
1answer
60 views

update current component elements only in aura:iteration

I have loading lightning components using below aura:ieration condition. in itemMap had 2 items, it's loaded fine, but when i update 2nd item type change, it's update 2nd item sub type as well as 1st ...
0
votes
2answers
203 views

Unable to display the multiple picklist field values in lightning component

I am trying to display 3 different picklist field values in a input form using lightning component. I am able to display the values for any one of the picklist field only. If I try to display the ...
0
votes
0answers
34 views

Dynamically change style for iterated list

Wanna add some color gradation(if its possible without js calling) for my iterated elements, but got some trouble with calling index value inside style param. Code look like this: <aura:iteration ...
0
votes
0answers
267 views

Lightning Data Table and Aura Iteration

I am trying to render multiple data tables on a page (inside lightning accordians but thats irrelevent) using Aura iteration. i am specifically having trouble with the data attribute of the datatable. ...
1
vote
1answer
28 views

Lightning radio selector in iteration disappears when option selected in another row

I have created a Lightning component that allows users to dynamically create their desired number of records. I implemented a data table for this. In my third column, I asked users to select from two ...
1
vote
2answers
61 views

How do i iterate over a list with 3 different object types in lightning component?

I am building a lighting component which needs to iterate over a list with three different object types but I have run into a problem because I cannot write an aura if expression which checks the ...
0
votes
0answers
59 views

Aura:iteration takes more time to load

I am creating a dynamic grid (table) with more than 10 rows and 10 columns, Displaying the record and editing. My question is server side takes say 2 seconds to load the data(querying data with 10-...
0
votes
0answers
85 views

saving an object array field value inside aura:iteration of lightning :carousal

Scenario : Retirving 4 product records including 3 fields.id, image(richtext field) and name.Displaying image in lightning carousal and also name as the header..Now I want to hold the product id , ...
1
vote
1answer
195 views

Aura:iteration with Data Tables and setting the order to descending as rows are inserted

So we have a client that has a form page where a Data Table is built based on input. As they enter items the table sorts them by index (i'm assuming) in ascending order. Without making the user sort ...
1
vote
1answer
249 views

To compare old and new value inside aura:iteration in Lightning component

In Lightning I have a requirement where I will iterate a List and display it as a table.While iterating I need to compare old value(last iterated row value) and new value (value in current iteration) ...
0
votes
1answer
61 views

How change the value in lightning iteration

I want change the value in the iteration. I want show fields of Account: Item_1__c, Item_2__c, Item_3__c, Item_4__c..... (we have 12custom fields Item_X__c, but we want show only 6 by default, and ...
0
votes
0answers
137 views

Generate breadcrumbs dynamically in lightning navigation topics, using <aura:iteration>

I am trying to build a lightning component which would generate breadcrumb dynamically in response to a onclick event on the Navigational topic bar, in lightning communities. I am referring to the ...
0
votes
2answers
46 views

Lightning components - Initiating attribute with controller with multiples sObjects

I'm Working on Lightning components I would like to add some values in my App, by its controller (aura:handler) I'm trying with this : component.set("v.objetsCamping", tabObjets); But it doesn't ...
0
votes
0answers
153 views

Verical tabs - unable to get selected tab dynamically

We have created vertical tabs using lightning:tabset but we could not able to put the icon on the lihgtning:tab . So we are converted lightning:tabs to vertical tabs. But we are not able to capture ...
1
vote
1answer
152 views

Find value of div inside aura iteration on icon click!

I am trying to find the value of a div which is inside aura iteration on icon click which is also inside the same aura iteration. Here in this code below I am trying to find the value of the aura:id=...
0
votes
0answers
25 views

Incorrect index value being displayed on selection of radio button

I'm iterating over a list using aura:iteration. Each iteration I have a radio button where I have an attribute named data-index="{!index}". In the controller, when I try to print which radio button ...
0
votes
0answers
137 views

Sorting the items in the desired order in lightning component aura:iteration tag

I am displaying list of records using aura:iteration, now i want to put to arrow marks(up and down). if user clicks on any one record want to move that record in the selected direction either up or ...
1
vote
1answer
45 views

Trouble with aura:if

I am not sure why this is not working. I have an aura:if condition, if the check matches then the item should be displayed. Here in this code below I am checking the ofc.agentName is not empty then ...
1
vote
0answers
79 views

create account from a button inside aura iteration and set account id to the adjacent lookup column

I am new to lightning. I am inserting list of contacts in aura iteration with account lookup. I made custom component for searching account, which works fine. But i also need to give option to create ...
0
votes
1answer
160 views

Using lightning component inside Aura:Iteration. It doesnt display anything not even any error

Im using lightning component inside Aura:Iteration. It doesnt display anything not even any error. PFB Code <aura:component > <aura:attribute name="item" type="Camping_Item__c" required="...
1
vote
1answer
35 views

Get Task description with line breaks in SOQL

I have a lightning component that displays a List of Tasks in a sidebar. I use a SOQL query in the controller to fetch a List that fits the criteria and display them in the component. I manually model ...
1
vote
0answers
423 views

Lightning button attribute “Disabled” in “aura:iteration tag”

I'm trying to enable a lightning:button if a lightning:inputField changes. This is the aura:component: <aura:component implements="flexipage:availableForRecordHome,force:hasRecordId,force:...
0
votes
1answer
253 views

Lightning Input inside aura iteration

I have a situation where i have multiple lightning:inputs written inside aura:iteration. I JS controller i am trying to find the input by using Component.find(),but i came to know component.find will ...
1
vote
1answer
231 views

Second <aura:iteration> not working with object/array datasource

I have a Lightning component with two <aura:iteration> <aura:handler name="init" value="{!this}" action="{!c.doInit}" /> <aura:attribute name="invoices" type="Object" /> <aura:...
0
votes
1answer
26 views

Aura Iteration is returning 0 rows

I have a below lightning component Please ignore the commented lines <aura:attribute name="serverResponse" type="ReportsController.COABReportLineItem[]" /> <aura:handler name="init" value="...
0
votes
2answers
276 views

Uncheck child component checkboxes from parent button

How can I reach this behavior? My component is structured like this: <aura:component> <button onclick="{!c.clearCheckbox}" /> <aura:iteration items="{v.items} var="i"> ...
0
votes
1answer
24 views

Child component not displaying records from Parent record

I am passing the results from Parent component to Child component but the results are not displayed for some reason. I have gone through many example codes and it seems I have done everything ...
1
vote
1answer
169 views

Lightning Component integer attribute not matching javascript integer

I have an attribute of type integer. <aura:attribute name="selectedRowNum" type="integer" /> I also have an iteration component in which I get the index of the current object that is being ...
2
votes
1answer
498 views

How to conditionally render rows in iteration lightning component

I have a lightning iteration component that shows several information on accounts in a row. One of the columns allows the user to choose a lookup( I use a custom lookup component) value to edit the ...
0
votes
1answer
270 views

setting value on a div not working

I cant set value on div during aura iteration, the reason why I need to set it on a div cause the div is writable contentEditable = true;I want to display value there so it can be edit it. <aura:...
1
vote
2answers
459 views

How to find id of lightning component tag which defined in iteration?

<aura:iteration items="{!v.List}" var="item" indexVar="i"> <div id="{!v.globalId + '_option'}" data-index="{!i}" data-id="{!item.Id}" onclick="{!c.jsFunction}"><text-...