Skip to main content

Questions tagged [iteration]

The tag has no usage guidance.

22 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6 votes
0 answers

Why can't a Queueable use an Iterator that comes from a Set?

I saw some surprising behaviour when storing the iterator obtained from a Set<Id> as a member in a Queueable class. So, I wrote the following trivial Queueable class to investigate: public class ...
Aidan's user avatar
  • 13.8k
3 votes
0 answers

ui:inputCheckbox and aura:iteration: value binding

I am currently writing a lightning component made of a table of elements that can be selected (or not) using a ui:inputCheckbox. So the way I do is fetching the data from APEX controller during the ...
Simonp's user avatar
  • 1,902
2 votes
0 answers

Get first row of CSV data in salesforce and use for mapping

I want to get data from csv and upload it to salesforce. I use this link and
Hope's user avatar
  • 1,273
1 vote
0 answers

Aura Component Boxes in aura iteration

How could I have some boxes with same vertical size that are being created in a iteration on aura component? Code: <div class="slds-grid slds-wrap"> <aura:iteration ...
user115058's user avatar
1 vote
0 answers

How can I append new data rows to an existing data extension with predefined properties and columns?

There is data-extension-row-update and data-extension-row-create, but nothing like data-extension-row-append. Say I have an existing data extension I retrieve via import ET_Client myClient = ...
Andreas L.'s user avatar
1 vote
0 answers

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}" ...
Quicki's user avatar
  • 115
1 vote
1 answer

How to Implement "fluent constructors" inside visualforce page data iterator?

I am trying to put together a custom controller class implementing the fluid interface builder pattern. Said class does compile, and my question is how can it be implemented inside a VisualForce page'...
AlexBraun's user avatar
1 vote
0 answers

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:...
Carlos Naranjo's user avatar
1 vote
0 answers

how to check iterator in batch process

I am using an iterator to use an aggregate query on a custom object looking for unique years. on the very last iteration, I want to change a value, so I am hoping to use hasNext, but it looks like i ...
textual's user avatar
  • 311
1 vote
0 answers

How do i access components made through iteration without using aura:id?

I am currently developing a search bar for Salesforce Lightning and i am having a bit of trouble with editing the class of dynamically created components using aura:iteration. At the moment i use ...
Olsthoorn's user avatar
  • 110
1 vote
0 answers

<aura:handler name="change"> stops working after being called three times

I'm having an issue with a handler which initially fires as expected for three times, but then stops responding after that. The parent component has three attributes: A list of Custom SObjects A ...
Bigears's user avatar
  • 1,131
1 vote
0 answers

Refresh subtab in Service Cloud or page in classical view using Visualforce

I've created a custom Visualforce page which is embedded into quick action (feed view). After user clicks submit button I'm changing the status of a case and trying to refresh the current subtab (...
NGix's user avatar
  • 909
0 votes
0 answers

Lightning help with Apex array sort for:each iteration

I have a tabset that is rendering article records. Does someone have a lightning example how I would create the index to set the tab title and the order? HTML <template> <lightning-card title=...
Rhonda Gutman's user avatar
0 votes
1 answer

LWC - How to clear my input text fields when saving?

When saving a record, my input fields should is replaced with empty value (clear the text field) and I am having issue with the one within the iteration. I have 2 inputs that are not part of the ...
Eric's user avatar
  • 73
0 votes
0 answers

Align table rows and columns in two different Lightning Components (Parent-Child)

I am new to Lightning Components and I have 2 Lightning Components (parent-child) where Parent iterates records of the child component. <lightning:card title="Energy Profiles"> ...
Kostas Karagiannis's user avatar
0 votes
0 answers

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 ...
SFDC 44's user avatar
  • 664
0 votes
1 answer

Error handling for iterable child component inside parent in lightning web components (LWC)

In my parent component , I have used child component inside and iteration. So for example child component is present twice in parent component. Now I want to show error message when on of the required ...
Pankaj Andhale's user avatar
0 votes
1 answer

get a particular element in web component iteration

I want actually to be able to get an attribute on a particular item in the web component iteration, but cannot get it to work. Look for instance the following code : <template> <...
vanessen's user avatar
  • 2,705
0 votes
0 answers

What is the best way to populate a map from a list conditionally?

I would like to know if there's a better way to populate a map from a list where conditions apply as to whether the list item is to be added to the map or not. For eg I have a list of objects ...
Irene's user avatar
  • 1,849
0 votes
1 answer

How to pass record id to another component while click on checkbox in aura iteration

I am facing one issue with navigating to record from another component when user selected checkbox in one component and I will get those selected Id in next component.
Sayanton Sadhu's user avatar
0 votes
0 answers

Lightning iteration does not accept inputText values

I have the below markup in my Lightning component. <aura:attribute name="items" type="InventoryAdjustWrapper[]" description="Items" access="public" /> <!-- <aura:attribute name="items" ...
Pasan Eeriyagama's user avatar
0 votes
1 answer

retrieve other fields of a SObject after a user has selected an option

I am writing an app that will help calculate the statute of limitations for certain laws. ex. enter a date that a crime happened on and, after choosing a law and appropriate limitation the limitation ...
mason dyess's user avatar