Questions tagged [child-to-parent]
The child-to-parent tag has no summary.
106 questions
0 votes
0 answers
74 views
SOQL Query - List of opportunities with at least one sibling
Does anyone know if it's possible to return a list of opportunities that have at least one sibling opportunity? I'm having a hard time finding anything on this, aside from this post on the ...
1 vote
2 answers
140 views
LWC Get Data From Descendants - Events vs Public API
In the Call Methods on Child Components documentation, it says: To communicate up the containment hierarchy, fire an event in a child component and handle it in an owner or container component. See ...
0 votes
1 answer
176 views
How Deep is Implicit Sharing?
When raising a Case and: Case.Account = Account Coke Case.Contact = Related to/Member of Account Pepsi Then, Case.Contact will have read access to Account Coke, right? I will now introduce a custom ...
0 votes
1 answer
304 views
SOQL query to get Lead attributes from Account via converted account relation
I'm trying to get the Leads columns from the Account object. This is the type of query I want to run, but it doesn't work: SELECT Account.Name, (SELECT Name FROM Account.Leads) FROM Account If I ...
2 votes
1 answer
155 views
SOQL query Child to Parent
I have two standard objects (Case & EmailMessage) where EmailMessage has a lookup field to Case. I'm using a simple SOQL query to get EmailMessage fields along with Case Status, but it is throwing ...
1 vote
0 answers
134 views
Child component need to re render after value changes in parent component
I have 3 components. Grand Parent --> Parent --> Child. When ever data changed in Child LWC I need to Re-render the Child LWC which is inside Parent LWC. I have tried GET SET methods also. But ...
0 votes
1 answer
123 views
value not passing from child to parent component
@api label; uniqueId; @track placeholder; connectedCallback() { // Increment the static variable to get a unique ID unkDateInputId += 1; // Set the unique ID property using the ...
1 vote
1 answer
539 views
LWC js controller getFieldValue() on parent field, I still get the whole record and have to reference the object and field again
Below is a portion of my LWC js controller. I'm trying to write a function to see if a field in a parent record of an Event record has a certain value. I'm baffled by what is returned by ...
0 votes
1 answer
2k views
LWC Custom Event Issue
I have a LWC Component A(Child), Whose javascript is dispatching an event like this: dispatchRefreshImageDetails(imageId) { //imageId contains Full Image URL as from content version object. ...
-2 votes
1 answer
216 views
What object should my record-triggered flow be on?
If all child records have a picklist value of Authorized, then update parent record to Pay Request; if not all child records have the same picklist value of Authorized, then update parent record to ...
0 votes
0 answers
93 views
Salesforce Batch – Limitations (semi-joins, governor limits)
I need to write a Batch class to delete records from Child to Parents objects: Child__c --> Parent__c --> Parent_Of_Parent__c Every object has approximately 5 million records to delete, so I ...
0 votes
0 answers
160 views
How to get xml properties chosen on child to pass to parent in LWR Experience Builder Site
I have a parent wrapper for two cards in my markup with the cards nested within the parent wrapper. How would I be able to still click on the card to dynamically change the card details? With them ...
0 votes
1 answer
3k views
Advice for validation approach LWC
Hello guys I have being working on a LWC custom form that includes several child components, where each of them contains lightning-inputs, lightning-comboboxes, etc... And in the parent component I ...
1 vote
1 answer
9k views
Pass various data from Child to Parent LWC
Hello everybody I have a child LWC inside of a Parent LWC. In the child component I have some input fields that I pass to the parent component. In one of them I have a combobox field so when the user ...
1 vote
1 answer
533 views
LWC Local Server says Couldn't find the custom component when I pass attribute using Custom Event from child to Grandparent
Im trying to do a simple operation which is pass an attribute from child to grandparent in LWC using Custom Event where I set the Bubbles and composed attribute to true to pass it through the ...