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

How to use <lightning:inputField> inside an <aura:iteration>?

How to use lightning:inputField inside an aura:iteration and lightning:inputField with picklists values, field dependencies? lightning:inputField can used in aura:iteration,but lightning:inputField ...
0
votes
1answer
23 views

Lightning Component Aura Iteration Show/Hide

I am trying to implement inline-search in the HTML table inside my aura lightning component. As the table is dynamically rendered using aura iteration, each row has a dynamic aura id, and hence I am ...
0
votes
1answer
33 views

How to reproduce a dynamic selection list from a custom object in lightning component

I have a @AuraEnabled method from which I pass a custom object list to a lighting component on which I want to iterate. The custom object will have a dynamic map from which I want to create a dynamic ...
0
votes
1answer
44 views

How to sort fields of an object related to another object

Sorting fields directly from an object works, but how to sort fields from a related object? How do you access the Description__c field so that you can sort the records? Controller @AuraEnabled public ...
0
votes
0answers
12 views

Identify Lightning RecordEditForm in Aura Iteration

I am using multiple Lightning Record Edit Forms in Aura Iteration and wish to uniquely identity the form when onerror is fired 1.Below is my Component. <aura:iteration items="{!v.episodeList}&...
0
votes
0answers
81 views

Iteration in LWC not working for 2nd element of input array

I am working in LWC requirements where I have a list of records using this list I need to create inputs text. Once I loop through the list in LWC 'HTML component' my input texts are coming as aspected ...
0
votes
1answer
197 views

LWC create input fields under LWC iteration

I am new to LWC. I have to create multiple input fields for different rows. Let say, I have selected 3 records from the previous page and for all those 3 records I need to create the input field and ...
0
votes
1answer
24 views

Get Row Id for a Lightning:ButtonIcon

I am adding a buttonIcon for each aura:iteration record in my interface. I need to get the Id of the row that the button is on. Here is my component code: <aura:iteration items="{!v....
-1
votes
1answer
25 views

I want to iterate over my Account[]

so there is an Account[] which has Accounts and their related contacts. Can i get contacts details like this?: if not then how can i access contacts details, without adding one more aura iteration tag ...
0
votes
1answer
27 views

Seems there is something wrong with my <aura:iteration> as Same Account record is displayed twice in my slds table

<table class="slds-table slds-table--bordered slds-table--cell-buffer" style="margin-top:50px;"> <thead> <tr class="slds-text-heading--label"> <...
0
votes
0answers
21 views

Lightning Component : Data Table iterating a JSON : Map<string,string> : Value of the Map is a JSON string [duplicate]

I am trying to parse a JSON string and iterate it over to create a data table on the Lightning Component. The MAP<String,String> is a response from the apex class, which i have parsed and ...
0
votes
1answer
30 views

Selection done in one iteration in aura, is reflecting in every other iteration

I have a scenario where I am calling a custom lookup lwc component inside my aura iteration. The issue is the value I am selecting in the custom lookup in one iteration is being reflected in all the ...
1
vote
1answer
45 views

<aura:if not working but <aura:renderif does - any reason why that you guys can see?

so the scenario is that i have an iteration within an iteration .... <aura:handler name="init" value="{!this}" action="{!c.setUpScreen}" /> <aura:attribute name="PageQuestions" type=...
0
votes
1answer
52 views

How to change the value of ui:outputText in second div onchange inputfiled in aura iteration in one div

I have below an aura component and a controller function, I want to change the value of ui:outputText on change order Price of lightning:input. Now getting the current input box value in the ...
1
vote
1answer
65 views

Radio Button within Iteration - When user selects radiobutton, store the associated sourceId in attribute 'accountId'

Currently, I'm iterating through a wrapper that includes sourceId (aka accountId) and Opportunity Name, etc. When the user selects a radio button, I want to capture that sourceId in an attribute at ...
1
vote
1answer
29 views

aura:interation Field Order

I'm developing a component to add multiple items (in this example debts). When a new debt is added I need the fields to display like so: At the moment the fields display like this: Here is my ...
0
votes
1answer
233 views

how to remove “Added non-passive event listener to a scroll-blocking <some> event.” warning?

I am using lightning record form inside aura iteration like this which is visible on hover <aura:Iteration items="{!v.Accountscurrent}" var="acc" indexVar="index"> <span class=" icon slds-...
1
vote
1answer
30 views

Display table with data from two sources - array and map - Aura Components

I have related objects with a one-to-many relationship. For example: Owner1 ---> Thing1 Owner1 ---> thing2 Owner2 ---> Thing3 I want to display data from these objects in a table ...
0
votes
1answer
48 views

<aura:iteration> Display unique value

I have an iteration like this; <aura:iteration items="{! xy.typeList }" var="sp" indexVar="x" > <aura:If isTrue="{!sp.desc}"> {! sp.desc } {! ( greaterthan(subtract(pq.type2....
0
votes
0answers
30 views

How to force click from Lightning Button

I would like to force the click of a lightning button that is inside an aura: iteration. I'm using the class variable, which in the code below looks like "data.idMedico". <table id="tabelaBusca" ...
1
vote
1answer
1k views

Aura Components Specialist: Step 3: Completed but tiles do not display data?

I've just completed step 3 of the Aura Components Specialist superbadge however the tiles for the boat search results just display an empty block on the page. Not sure why this is happening. I've ...
0
votes
0answers
30 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
1answer
55 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
275 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
75 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
296 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
293 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
216 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
421 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 => ....) }" ...
-1
votes
1answer
195 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
612 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
46 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
336 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
38 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
1k 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
430 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
96 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
41 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
30 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
140 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
1k 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
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
159 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
795 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
917 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
31 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
274 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
54 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, ...
2
votes
2answers
652 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 ...