Questions tagged [find]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
11
votes
2answers
5k views

Lightning component.find("aura:id") returns an array consisting of one element

I found the following excerpt in the documentation: If the local ID is unique, find() returns the component. If there are multiple components with the same local ID, find() returns an array ...
6
votes
3answers
2k views

Account Trigger find Ultimate Parent Account

There is a field on Account called Account.Ultimate_Parent__c. I want to update(through trigger) this field with correct value whenever Account.Parent field is Changed. Although, Ultimate Parent ...
1
vote
1answer
7k views

component.find().get("v.value") not working for unique local ID

According to lightning:select documentation the following should work:Component Markup <lightning:select name="selectBoatType" aura:id="currentBoatTypeChoice" ...
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 ...
1
vote
0answers
64 views

basis of the ordering of list returned by component.find()

I am using component.find(aura_id) to get the component. I have multiple components with the same aura_id So I am getting a list. My question: What is the basis of the ordering of list returned by ...
0
votes
2answers
106 views

Apex - List findIndex

How can I do like findIndex from List in Apex? I wanna do like below. public class SelectItem { public String Text { get; set; } public String Value { get; set; } } public void FooMethod() { ...
0
votes
3answers
123 views

How to find all records where a textfield contains "04/06/2020" twice? [duplicate]

this is a bit of an odd one. Say I need to find all Accounts where the textarea field "Notes__c" contains the text 04/06/2020 twice, how would I go about that? Ideally using Apex or Reports. ...