Questions tagged [parent-to-child]

The tag has no usage guidance.

13 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
14 views

Lifecycle hook for child component?

I understand lifecycle hooks for a custom LWC. But how do I detect when a child LWC has loaded in the DOM? For example, let's say I have a <lightning-datatable> that is a child of a custom LWC I'...
1
vote
0answers
36 views

renderedCallback method in child component not recognized (undefined) when variable passed from parent component

I am trying to pass a variable from parent component to child component in LWC. But when I tried to access this variable in renderedCallback method of child component, it is showing loanId as ...
1
vote
1answer
72 views

Issue with lightning-record-edit-form event order of execution between Parent and multiple Child LWCs on Submit

I'm new to LWCs development. I'm having an issue understanding the order of execution for the lightning-record-edit-form component when a Parent lwc has multiple Child lwcs. Each Child component ...
1
vote
0answers
69 views

Can I use Apex and SOQL to import data from other objects into a new custom object?

This is my first time posting in stack exchange :) I have a Salesforce Admin Cert, but I have very little experience in the realm of writing code. So here goes. The goal of my apex code is to import ...
0
votes
0answers
33 views

How to use maps to get list of grand child records for a parent object

I have a parent object (Account), child object(Contract) and a grand child object(contract exceptions). Contract exceptions has master detail relationship with contract. My requirement is to fetch ...
0
votes
0answers
22 views

Is it possible to rerender pageblockSection located inside child apex:component?

I wonder if it is possible to rerender pageblockSection that is nested inside child apex:component. I noticed that rerender whole child visualforce component need wrapping it within some outputPanel ...
0
votes
0answers
35 views

Best way to call child component in LWC

I am having a html table in my LWC. I have a tooltip displayed on hover on each table row. The content of the tooltip is placed inside the child component. Below is my code. <table class="slds-...
0
votes
0answers
45 views

Related list of child object not showing in parent Object

Correct me if im wrong, In my knowledge I have to create a look up Account field in the child object for the related list appear in Parent Object (account) but it is not showing in Parent. Is my ...
0
votes
1answer
35 views

Render Child Component again with a Change on Parent

I am trying to do display some data in the child component from Parent Component where my parent Component has an object variable that am using to display on my child component. Here's Simple Snippet: ...
0
votes
0answers
52 views

Two parent component invoking the same child component issue

I have an issue that seems to show that I am missing something in LWC I have a big Parent component lets call it A This component A has two child component B and C. Both B and C component are using a ...
0
votes
0answers
18 views

Add all acounts in hierarchy including parent account

I have a scenario to create a field to show the total number of all accounts in hierarchy including the parent account. For example, add ‘Projects’ field that calculates number of account in hierarchy ...
0
votes
1answer
95 views

Visualforce page at parent with table records from custom child

I have a parent custom object called Game__c and a child custom object called Player__c.). The child Player__c has 4 fields: Name(String), Phone__c(Number), isHealthy__c(boolean), and Game__c(lookup). ...
0
votes
1answer
41 views

Best practice: Architecture for accounts with many locations 10k+

I'm facing an architectural design where a company could have more than 10k locations, and I would like to save the location data, according to this link it's a good practice to use a hierarchical ...