aura-iteration's questions - English 1answer

58 aura-iteration questions.

I have a situation where i have multiple lightning:inputs written inside aura:iteration. I JS controller i am trying to find the input by using Component.find(),but i came to know component.find will ...

I have a Lightning component with two <aura:iteration> <aura:handler name="init" value="{!this}" action="{!c.doInit}" /> <aura:attribute name="invoices" type="Object" /> <aura:...

I have an Apex class that returns a Map<string, Map<string,string>> and I want to use it into a Lightning Component. I declared a <aura:attribute name="objMap" type="Map[]" access="...

I have a below lightning component Please ignore the commented lines <aura:attribute name="serverResponse" type="ReportsController.COABReportLineItem[]" /> <aura:handler name="init" value="...

I have an attribute that I am rendering to a table inside an aura:iteration with the following code: <aura:attribute name="licenceassocparties" type="String[]" default="false" access="PRIVATE"/>...

How can I reach this behavior? My component is structured like this: <aura:component> <button onclick="{!c.clearCheckbox}" /> <aura:iteration items="{v.items} var="i"> ...

I am passing the results from Parent component to Child component but the results are not displayed for some reason. I have gone through many example codes and it seems I have done everything ...

I declared a parentComponent with an attribute of type list. I am passing that list to child component. In my child component, I am iterating over that list using aura:iteration . Also I provided a ...

I have an attribute of type integer. <aura:attribute name="selectedRowNum" type="integer" /> I also have an iteration component in which I get the index of the current object that is being ...

I have a lightning iteration component that shows several information on accounts in a row. One of the columns allows the user to choose a lookup( I use a custom lookup component) value to edit the ...

I cant set value on div during aura iteration, the reason why I need to set it on a div cause the div is writable contentEditable = true;I want to display value there so it can be edit it. <aura:...

<aura:iteration items="{!v.List}" var="item" indexVar="i"> <div id="{!v.globalId + '_option'}" data-index="{!i}" data-id="{!item.Id}" onclick="{!c.jsFunction}"><text-...

I would like to know if it is possible to evaluate the expresion not comparing to a constant but instead to another variable, like the iteration variable from aura:iteration. I want to evaluate the ...

The requirement I have is to display a list of items in card style panels with three on a row and 30px borders between them. Here is the basic code: <aura:iteration items="{!v.paginatedList}" var=...

I use document.getElementById with the id attribute to locate elements in my component. I cannot use component.find and aura:id because the elements are generated from an iteration. This iteration is ...

The goal is to apply a CSS style to iterated <div>s to display that the field has been modified. I think I am close but my indexVar is returning the error "Cannot read property 'dataset' of null"...

I need a way to keep track of each iterated lightning:inputField so that any changes made to that specific field is reflected by a CSS style change. Markup <aura:iteration items="{!v....

I'm very new to Salesforce, so my apologies if my approach is all wrong. I want to display a list of buttons with images using a lightening component in Community Cloud. The list comes from records ...

How would one create a two list column and be populated with an iterated list. Right now, both columns just repeat themselves with the same {!v.Name} data. I would like to remove the repetition and ...

I have an iteration to set up datatables in slds accordions in my lightning component: <ul class="slds-accordion"> <aura:iteration items="{!v.definitionObjects}" var="objStats"> ...

I have a map attribute that holds the following map<string,list<SObject>> I want to iterate over the map and pass the list down to a child component but keep getting an error. This is ...

I am passing an Object to my component and iterate through it's child records. To handle changes I added the Lightning change handler. (I made data an array, so I can set a default for demo purposes, ...

Below is the link of format JSON example I am trying to bind the data which is there in results-> items using aura:iteration. Here is my code for that. <aura:iteration items="{!v.newassets....

The aura framework and lightning:recordData currently (Summer 18) support only single object retrieval. Let's assume I got a listItem.cmp into which I wired force:recordData in VIEW mode or a ...

I am building a menu component. One menu-item is a sub-menu with list of opportunities, this list is created with aura:iteration over a list of opportunities. When selecting a menu or a sub-menu, I ...

I'm making an edit records component on Opportunity where I display fields from related objects like Account, the Primary Contact and Contact Role only if their value are null. For the Account and the ...

I am facing a very strange error when applying change event on UI:InputText that is inside Aura:Iteration. When I focus out of the Input it throws me below error. This page has an error. You might ...

I've created a simple lightning app which has an aura:attribute of type Object[] with 3 objects in it. I'm binding their selected property to a lightning:input of type checkbox. When I update the ...

I have a parent component which iterates over a child component and has a save button. Parent.cmp: <aura:attribute name="casAgentList" type="Availability_Of_CAS_OneMDCS__c[]"/> ... <...

I have potentially multiple lookup fields on an object. So I want to display my a lightning:card for each one with the related information on the Object's page that has that record in the lookup field....

I'm facing trouble with <force:recordData>. I have a list of custom objects displayed in the form of table over <Aura:iteration> Out of that list, when a button is clicked, a certain ...

I am showing list of opportunity in a Lightning component. And I want to display them if the opportunity list size > 0 . i.e here ( opportunityList > 0) <lightning:select name="...

The goal is to pass a "comment__c" rich text field on an iterated object to its JS controller to perform a string operation on it before it's returned to limit a tooltip it is to appear into 250 ...

Is there a way, while iterating through a List of field names to retrieve the corresponding record field value? Ex: <aura:attribute name="layoutAPIFieldsList" type="List" /> <aura:...

How could it be accomplished to display the field name above the input field if the field is disabled? As of now, if the field is disabled, so is the e.fieldName attribute. <aura:iteration items=...

I'm working a lightning component, which has a requirement of displaying a dynamic table. For that, I need to iterate over a map (Map>) and display the values. So, How can I retrieve map from apex ...

I'm trying to get the ID of an element that is in a loop to trigger an event, but I can't get the ID nor content of the tag. I've done something similar on visual force pages, but I did it ...

I have a Helper function with the following JSON: getUsersVacationItemsList : function (component, event) { var tableRow =[ { 'commonName': 'xpto', 'calendar': [ {...

I'm trying to have my lightning:button display a different variant based on if it's clicked or not. I'm iterating through a array where each item has its button. This is the component <aura:...

Recently I got a very weird issue with aura:iteration and don't know how to solve it yet. If I sort my list of element to ascending order and delete some element from the list then if I try to sort ...

I'm trying to construct a page that allows users to edit records, and it should be in SLDS, so I'm trying to use lightning:input to minimize the amount of code I need to write. Ultimately, a method ...

I am displaying a list of accounts and have a checkbox next to those accounts. I would like to process the information from those accounts based on if the checkbox is selected. Below is my component,...

I have the following object in Javascript: [{"Name" : myName, "Sub" : [{"Name": mySubname, "Items" : [{"Id": a, "Name": b},{"Id": c, "Name": d}, ...] }, {...}, ....

I have a list of records displayed on lightning component using There are Save buttons corresponding to each record. The fields of the records are editable. I want to save the record, the ...

I have a dynamic checkbox generator which is bound by city on the account which works fine all cities are rendered with a corresponding checkbox. When I select the checkbox a city is added to a list ...

I have an iteration from where I want to display a component and cant seem to get the values displaying from my other component Error: Unable to get value for key 'opleiding.Id'. No value provider was ...

The issue is that when I click on save, the data is not being saved... In the same object, I have a checkbox wich is being correctly saved, so I don't know what could be happening. I have next select: ...

<aura:iteration items="{!v.contacts}" var="item" indexVar="idx"> <aura:if isTrue="{!lessthan(idx,5)}"> <ui:outputText value="{!ind}" /> </aura:if> </aura:...

I'm trying to retrieve elements using document.getElementsByClassName("") within the afterRender function. This works as expected with normal elements. However, I can't seem to retrieve elements being ...

I want to get data from child component in parent component, child component is present inside inside auar:iteration in parent component and elements are rendered in child component using aura:if. I ...

Related tags

Hot questions

Language

Popular Tags