Questions tagged [iteration]
The iteration tag has no usage guidance.
14
questions
9
votes
2
answers
1k
views
Why aren't iterators in batch jobs lazy-loaded?
I have a batch job that needs to callout to an external web service and retrieve a variable number of records. Seems like a perfect use-case to have an iterator which performs the callouts until there ...
9
votes
1
answer
16k
views
Nested aura:iteration to dynamically get fields
I am trying to dynamically create a data table with two arrays (SObject array and a String array which has field API name).
The two arrays are Contact[] and String[], where String[] consists of ["Id",...
8
votes
1
answer
9k
views
How to implement on scroll action in lightning to show next few list of records
I want to render many(about 1000) components and I am displaying them through aura:iteration in another aura:iteration. This is causing me performance issues. I want to display only 10 records at an ...
11
votes
2
answers
13k
views
How to iterate a Map in Aura
I have a aura map attribute defined in my component file as below
<aura:attribute name="FilesNameMap" type="Map">
But i am not able to understand how to iterate this in the component file as ...
8
votes
4
answers
8k
views
How to use <force:inputField> and <force:outputField> inside an <aura:iteration>
Here @Peter describes a very cool way to use a <force:inputField ... /> together with
<aura:attribute name="YourObjectType" type="YourObjectType"
default="{ ...
11
votes
1
answer
775
views
Comparing Apex Loops and why Iterators are dramatically slower than for loops?
I decided to use iterators to work with collections in a functional style at some point in development, but immediately noticed a CPU time performance drawdown. So I decided to do a simple performance ...
9
votes
1
answer
7k
views
Stop Batch Process
Good day everyone,
I have created a batch process. Let say I have thousands of records to process. Now what i want is when there is an error encounter or some problem found in the data during the ...
3
votes
1
answer
536
views
This map cannot be used in an iteration because the keys cannot be sorted
In my apex code I am adding some value into map. And I am trying to loop through the map on VF page using apex:repeat but I am getting an error that
This map cannot be used in an iteration because ...
3
votes
0
answers
2k
views
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 ...
2
votes
3
answers
2k
views
Iterate over queried lookup fields
Example:
Opportunity Opp = [SELECT Name, Status__c, Zone__c, Invoice__r.Amount__c, Invoice__r.Date__c FROM Opportunity WHERE ID ='006a12nlfoenlew'];
I need to iterate over each field and see if the ...
1
vote
2
answers
902
views
Passing List<WrapperClass> as a parameter from Visualforce to Lightning and to iterate over the List<WrapperClass>
This is my VF code, which runs on onclick
<script>
function func(data)
{
$Lightning.use("c:testingFromVFtoLightningApp", function(){
$Lightning.createComponent("c:...
1
vote
0
answers
348
views
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 = ...
1
vote
1
answer
3k
views
Get Data from batch iterable
Good day everyone,
Maybe this question is basic for everyone but I'm having a problem with it, so I'm asking for help. I have created a BATCH ITERABLE .
global with sharing class batchProcessor ...
0
votes
1
answer
3k
views
How to fetch the value inside a list item(not having an id since created dynamically) in lightning?
I am creating a a list using aura:iteration:
<aura:iteration var="pf" items="{!v.family}" indexVar="ind">
<li class="slds-dropdown__item">
<a href="javascript:void(0);" role="...