Questions tagged [aura-id]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
15 views

Aura - load boolean field value into toggle on doInit not working

I'm trying to take the boolean value of a checkbox field and load it into a toggle via the doInit but it's not working. Am I doing something wrong? When I debug it says osiValue is undefined Happy ...
0
votes
1answer
23 views

On click of check box i am trying to display some text onpage (Using lighting componets for same)

I am trying to display some text on Page by using Lighting componets.i am not getting that text on click on check box Below is my code .Let mek nwo where is my code wrong. A>Component attribute ...
0
votes
1answer
582 views

Lightning Input inside aura iteration

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 ...
-1
votes
1answer
118 views

Setting of value to <ui:inputText ,based on aura:id

I want to set the value based on key,using aura:id Component: ...
1
vote
2answers
48 views

count the ocurances of a value in a list at js controller lightning

Below is my list, and i would like to count the string and keep it in map count==>["Vendor Master","Vendor Master","Customer Master","Customer Master","Customer Master","Customer Master","Material ...
-2
votes
2answers
298 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
33 views

Creating dynamic component with buttons, events not getting raised

I have created dynamic component but somehow the event is not getting generated : $A.createComponent( "aura:unescapedHtml", { "value": '<div class="slds-notify_toast slds-theme_default"...
0
votes
2answers
48 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, ...
1
vote
1answer
207 views

How to find a dynamically assigned aura:id?

I'm looking for getting a dynamically assigned Aura:id. Below is my attempt to read it in Lightning:recordEditForm. Component markup: <aura:component > <aura:handler name="init" value="{...
1
vote
1answer
1k views

find() elements in {!v.body}

I'm rendering components in the body of another component: <c:test> <input type="text" aura:id="fooBar" /> </c:test> In this c:test component I'm trying to access the inner ...
2
votes
2answers
4k views

How to migrate aura:id to Lightning Web Components

How do I migrate a <div aura:id="foo"></div from Aura to LWC when I use Aura Id for finding? cmp.find("foo");
1
vote
1answer
2k views

document.getElementById(“myId”) vs component.find(“myId”).getElement();

What is better to use document.getElementById("myId") or component.find("myId").getElement(); in terms of performance? What will be faster?
1
vote
2answers
1k views

How to find id of lightning component tag which defined in iteration?

<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-...
1
vote
3answers
245 views

How can I move my spinner into a separate Lightning Component?

I have a lightning component which includes a spinner rendered by this code: <aura:component access="global" controller="SomeAuraController" implements="flexipage:availableForRecordHome,...
0
votes
1answer
616 views

Two aura:id for one lightning component. Is it possible?

Is it possible to have two aura:id for one lightning component? I am feeling that I have an x-y problem, but I can not think any other solution her. So, let me explain the issue. In a nutshell I ...
1
vote
1answer
6k views

Show/Hide Multiple Div on basis of Aura:ID in Lightning?

I have Lightning Component and I want to Show/Hide Multiple Div using Aura:ID. Currently, am doing this: Lightning Component <div class="chat_invitation" id=""> <div class="chat-...
15
votes
3answers
4k views

Dynamically created component with aura:id, set as a Facet inside a parent component, is not found when calling find() and passing in aura:id

I would have expected that when a dynamically created lightning component is assigned as another component's attribute of type Aura.Component[], also referencing it in the parent component's markup ...
3
votes
1answer
1k views

In Lightning/Aura, is it possible to dynamically set the id for ui:inputText and ui:InputSecret?

I'm currently trying to refactor the Discover Lightning Actions source code into something which wouldn't make my eyes bleed on a professional project. Most especially, I wish to reduce all the ...
1
vote
1answer
665 views

Set lightning component aura:id attribute dynamically while creating the component

Is it possible to set lightning component aura:id attribute dynamically while creating the component? Here is my code for the component creation: $A.createComponent( "c:...
1
vote
1answer
2k views

Aura Iterate, get the aura:id of a span

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 ...
1
vote
1answer
2k views

Lightning Component: Retrieve values from dynamic forms

I have a list of records and an accordion style form for each record: this is achieved with aura:iteration and few <tr> tags. I've used the indexVar on aura:iteration to uniquely identify ...
0
votes
1answer
33 views

Uncaught Action failed: parent versus child Components [closed]

My Parent Component <lightning:button onclick="{!c.editProductGenerationGrid}" disabled="{!v.disablebutton}" variant="brand" aura:id="Edit1" label="Edit" /> <lightning:button onclick="{...
8
votes
5answers
7k views

Aura:Id of dynamically created compontns cannot be accessed

Below is my code to create the component dynamically - The component is "ui:inputselect" $A.createComponent( RecoveryLineItem.Attributes[i].name,{ "class" : "slds-input ", ...
0
votes
1answer
1k views

Get data from inner component present inside aura iteration in parent component

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 ...
11
votes
2answers
5k views

Problems “find”ing a dynamically created child component

I'm just getting started working with dynamically creating child components and am having problems "find"ing them to do things like calling a method in them. If the component is created statically in ...
0
votes
0answers
480 views

Deployment of lightning components using eclipse

I have tried moving lightning components and applcn from one sandbox to other. using option deploy to server but it fails. I have added package.xml file * AuraDefinitionBundle ...
3
votes
1answer
295 views

Component.find(namespace:componentName) : Finding Component By Type [duplicate]

I know that component.find(AURA:ID_VALUE); will work, but does anyone know if there is a way to do a find by type instead of id? What I am referring to would look similar to component.find("ui:...
4
votes
1answer
711 views

Lightning Components: declare attributes or get the values from the DOM?

The question is fairly simple, but I haven't found any answers on the web. At the moment I have found two ways of getting the UI's values: Setting up an <aura:attribute type='Object' name='myName'...
2
votes
1answer
6k views

get values in lightning:input with $A.createComponents

I have worked simple things with lightning components I am trying to make things more complex but with lockservices I see that everything is more difficult because I can not access the DOM For ...
0
votes
1answer
471 views

How can I locate a ui:inputCheckbox?

hopefully this will be an easy one. I'm iterating through a list to populate a table, and I want to have checkboxes on the table too. I also want to be able to locate the previously chosen checkbox ...
2
votes
1answer
1k views

Target an element with aura:id for CSS

Can I use the aura:id attribute to target an element for styling? If so, is better to use aura:id instead id?
2
votes
2answers
11k views

Getting selected values in aura:iteration

I have a problem to retrieve some values within some picklists. Here is my code of the lightning component: <div class="c-container"> <lightning:layout horizontalAlign="space"> ...
2
votes
1answer
1k views

Workaround for static aura:id's on Lightning components

So please bear with me, I am a Lightning n00b... So I am trying to build a Lightning component which will implement a two-level foldable tree based on data in my SF instance. The way I have ...
3
votes
1answer
2k views

<ui:inputText /> cannot get aura:id

I have the following input in my component: <ui:inputNumber class="slds-input" aura:id="thisInput" value="{!v.thisVal}" change="{!c.inputChange}"/> which calls the following controller: ...