Questions tagged [aura-id]

The tag has no usage guidance.

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

How can I get a specific Lightning:inputField cmp without change the aura:id

I have a component with 2 inputFields like this: <lightning:recordEditForm recordId="{!v.recordId}" aura:id="recordEditForm" objectApiName="Example__c" > <...
Tuấn Trần quốc's user avatar
0 votes
0 answers
1k views

Open LWC component in a subtab using Aura (workspace API)

Considering the fact that LWC does not support workspace API, I have been trying to implement subtab opening feature by wrapping my LWC in a parent aura component. I have utilized workspace API for ...
Disha's user avatar
  • 1
0 votes
0 answers
23 views

How to set an input field value on change of checkbox [duplicate]

I'm trying to modify the field values using lightning:recordEditForm. I have one checkbox and one date time field. On change of the checkbox, current date time should be populated on to the date time ...
sfdcOwl's user avatar
  • 45
0 votes
1 answer
597 views

Use id in aura:iteration for recordEditForm

I have aura:iteration which goes through my custom wrapper class (which contains List of sObjects), and show recordEditFrom for all of them. My wrapper does not have an Id field. However, it has a key ...
Vitalii Dehnerys's user avatar
0 votes
2 answers
4k views

Passing Data from Child to Parent in Aura

I am trying to open a modal once clicking on a button which is in the parent component. For that I have used aura:method in the child component and calling that child component in the parent component ...
Ruklani Attanyake's user avatar
0 votes
1 answer
437 views

Component.find() not working within if block

I'm trying to change the selectedTabId of a tab item in aura and the component.find() is returning null, I think it has something to do with the tabs being within an aura:if block but i'm not sure. ...
Brendan Kelly's user avatar
0 votes
1 answer
389 views

aura:id is coming to be undefined for the first row in table

first error is -> Action failed: c:xyz_Cmp$controller$onKeyUp [Cannot read property 'get' of undefined] Failing descriptor: {c:xyz$controller$onKeyUp} second error is -> Action failed: c:xyz_Cmp$...
SFDCLearner's user avatar
0 votes
1 answer
845 views

Cannot read property 'get' of undefined. May i know if there are any trouble shooting points

I have mentioned everything correct, but still i am facing the issue, may i know if there are any trouble shooting points. Code: Component: <lightning:combobox name="Select Instance:" ...
SFDC Admider's user avatar
0 votes
1 answer
560 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 ...
Jay's user avatar
  • 676
0 votes
1 answer
89 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 ...
AM_SFDC's user avatar
  • 21
-1 votes
1 answer
871 views

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

I want to set the value based on key,using aura:id Component: ...
Vanaja Kasaragadda's user avatar
0 votes
2 answers
304 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 ...
Vanaja Kasaragadda's user avatar
-2 votes
2 answers
3k 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 ...
Vanaja Kasaragadda's user avatar
0 votes
1 answer
237 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"...
Nagendra Singh's user avatar
0 votes
2 answers
173 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, ...
jayasuriya janarthan's user avatar
1 vote
1 answer
2k 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="{...
Pasan Eeriyagama's user avatar
4 votes
2 answers
11k 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");
Robert Sösemann's user avatar
2 votes
1 answer
6k 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?
yourbuddy's user avatar
  • 113
0 votes
1 answer
1k 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 ...
Deepak Agarwal's user avatar
1 vote
2 answers
3k 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-...
Mohit Kumar's user avatar
1 vote
3 answers
397 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,...
Brian Kessler's user avatar
0 votes
1 answer
1k 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 have ...
iloveseven's user avatar
  • 1,115
1 vote
2 answers
16k 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-...
Kamal Thakur's user avatar
1 vote
1 answer
1k 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:...
oobarbazanoo's user avatar
1 vote
2 answers
4k 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 ...
ekiim's user avatar
  • 323
0 votes
1 answer
41 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="{...
Eagerin Sf's user avatar
  • 1,085
0 votes
1 answer
2k 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 ...
Abhishek Prakash's user avatar
1 vote
1 answer
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 ...
itsmebasti's user avatar
  • 6,399
0 votes
0 answers
542 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 ...
sarah's user avatar
  • 169
3 votes
1 answer
661 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:...
rStrunk's user avatar
  • 67
4 votes
1 answer
784 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'...
Javier García Manzano's user avatar
3 votes
1 answer
8k views

get values in lightning:input with $A.createComponents

I have worked on simple things with lightning components I am trying to make things more complex but with lockerservices I see that everything is more difficult because I can not access the DOM For ...
Hector Bayona's user avatar
0 votes
1 answer
652 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 ...
Ben d'Straw's user avatar
2 votes
1 answer
3k 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?
DarkSkull's user avatar
  • 1,719
3 votes
1 answer
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 ...
Brian Kessler's user avatar
2 votes
1 answer
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 ...
KimmyG's user avatar
  • 63
2 votes
2 answers
14k 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"> ...
DarkSkull's user avatar
  • 1,719
15 votes
3 answers
5k 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 ...
Brian Piggins's user avatar
11 votes
2 answers
6k 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 ...
Florissant53's user avatar
  • 1,433
8 votes
5 answers
8k 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 ", ...
Rohit Kandul's user avatar
3 votes
1 answer
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: ...
ZAR's user avatar
  • 2,033
1 vote
1 answer
3k 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 ...
ZAR's user avatar
  • 2,033