Questions tagged [iteration]

The tag has no usage guidance.

16 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
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
0answers
428 views

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 http://www.blueengine.com.au/?p=40#comment-271 and http://developer.financialforce.com/customizations/importing-large-csv-...
1
vote
0answers
23 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}" ...
1
vote
1answer
29 views

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'...
1
vote
0answers
494 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:...
1
vote
0answers
28 views

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 ...
1
vote
0answers
268 views

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 ...
1
vote
0answers
261 views

<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 ...
1
vote
0answers
210 views

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 (...
0
votes
1answer
15 views

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> <...
0
votes
0answers
30 views

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 ...
0
votes
0answers
19 views

Update column value in a table whenever a value in row is changed

I'm populating column values using aura:iteration in a table and i want to change the column values whenever a row's(populated using aura:iteration as well) value input is changed. The problem is that ...
0
votes
0answers
27 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
1answer
257 views

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.
0
votes
0answers
116 views

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" ...
0
votes
1answer
35 views

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 ...