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

Date Format of DateTime in Select/Aura Iteration

Here is the code : <lightning:select aura:id="SelectRepport" name="PaymentType" label="repport Z" onchange="{!c.zRepportSelected}"> <option value="0">Chosse ...</option> <aura:...
0
votes
0answers
11 views

(JScontroller) How to save updated values to child records from parent-view [closed]

I have a custom object (RIM__c) with custom object/related records/child records (RIM_Item__c). I need my users to be able to navigate to the parent record and see all of the child records at once. ...
0
votes
1answer
28 views

Dynamic expression in nested aura iteration in Salesforce Lightning

I've two objects: listContent: [{'Id':1,'Name':'SF'},{'Id':2,'Name':'DS'}] fields:['Id','Name'] Now I'm using nested aura iteration to display the listContent as shown below: <aura:iteration ...
0
votes
0answers
22 views

Nested Rows inside table with shared headers - Aura Iteration

I'm trying to create a table with nested rows based on nested array data set with following structure: [ 'key1' : [ 'subKey1' : 'subValue1', 'subKey2' : 'subValue2', ...
0
votes
1answer
53 views

how to copy values to field in aura:iteration dynamically using Radio button with multiple rows

Here I'm trying to copy values from the output text table data to respect of their field which are price and Qty Please take look at the below picture for an idea. Here I'm using Inside two aura: ...
0
votes
1answer
37 views

Setting different checkboxes in aura:iteration - Dynamic binding does not work in Lightning

I need to be able to call different checkboxes in an aura:iteration: <aura:attribute name="orders" type="Order[]"/> <aura:handler name="init" value="{!this}" action="{!c.doInit}" /&...
0
votes
1answer
46 views

How to show sub query count in aura iteration

I would like to show contacts count for each account in auta iterataion how to show sub query count in aura iteration? Component code: <aura:component controller="accWithContController"> &...
0
votes
0answers
14 views

List not updating contents on UI

I have a list of items as an attribute that contains 5 items. Through aura:iteration, I'm printing only the first 3 on the UI. From the front end, I'm able to remove items from this list as well. I'm ...
0
votes
1answer
63 views

How to save single record using Lightning:recordEditform inside aura:iteration? I am able to save all the records by using forEach in JS Controller

Component: <aura:iteration items="{!v.oppStageList}" var="opp"><lightning:recordEditForm aura:id = "StageChange" recordId ="{!opp.Id}" objectApiName ="Opportunity" onsuccess ="{!c....
1
vote
2answers
64 views

how to filter the collection used in aura:iteration

I would like to have a filtered version of a collection as the source data of an aura iteration. Basically, something like this: <aura:iteration items="{! v.myList.filter(element => ....) }" ...
0
votes
1answer
37 views

Setting of value to <ui:inputText ,based on aura:id

I want to set the value based on key,using aura:id Component: ...
-2
votes
2answers
90 views

Not able to set value using aura:id ,in aura:iteration

Aura Code: <aura:iteration items="{!v.O2CSubprocess}" var="mapKey" indexVar="key"> <aura:iteration items="{!mapKey.value}" var="mapValue" indexVar="index"> <label ...
0
votes
1answer
42 views

Error on second selection for same code in lightning code works fine for first time but second time it gives error

This code runs fine for first selection and also for first time but for second selection it gives following error This page has an error. You might just need to refresh it. Action failed: c:...
0
votes
1answer
82 views

Get index value of checkbox selected

I have a list of items that are being set on the initialization of my component. Then I'm iterating over the list of items and and for each item, I'm creating a checkbox with the description of the ...
0
votes
0answers
37 views

<aura if> not working as expected

Hello I made a following component which displays all permission set which i want but now I am stuck. Here I want to display my selected permission set on the table. Although the table is displayed on ...
0
votes
1answer
216 views

How do you get ID of lightning button inside of an iteration?

So I get the error "component.find.(...).get is not a function". Through research I found out that this is because iteration creates multiple instances of aura:id. I've tried to use event.getSource() ...
0
votes
1answer
102 views

You might just need to refresh it. Assertion Failed!: Provider type not supported : false Failing descriptor

Iam facing following error with my code: This page has an error. You might just need to refresh it. Assertion Failed!: Provider type not supported : false Failing descriptor: {c:Picklistversion2} ...
-1
votes
1answer
28 views

<aura if is true> not working as expected

I wrote a following code for component but it is not giving result as i expected, Component code <aura:component > <aura:attribute name="parentOptions" type="List"/> <aura:...
0
votes
1answer
22 views

Retrieve currentRecord from aura:iteration to controller.js

I am quite new in lightning and I need an hint in order to resolve a problem. What I would like to achieve: in a table component, for each record I would like to see a column with different icon ...
0
votes
1answer
23 views

Lightning <option value=“”> not displaying

In the lightning documentation it states that I should be able to set a default value with the <option value=""> inside of a lightning:select. When I attempt to do this, my option value gets ...
1
vote
2answers
38 views

Display radio group dynamically

I'M trying to display radio groups inside aura iteration,the number relays on the number of elements of the Questions list,but not only selected options are not being checked ,it also happens that ...
1
vote
1answer
475 views

How to navigate to one component to another by passing parameters

I'm new to Salesforce. I have just started with lightning Aura components. I want to understand simple workflow of aura. Can anyone help me with the code for below requirement. Thanks in advance. ...
0
votes
0answers
78 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
1answer
37 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
76 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
280 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
457 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
28 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
153 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
41 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
312 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
261 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
26 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
97 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
461 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
189 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
39 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
441 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
19 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
96 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
288 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
344 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
55 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 ...
1
vote
1answer
667 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
154 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
80 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
115 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
123 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
398 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
451 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) ...