Questions tagged [child-to-parent]
The child-to-parent tag has no usage guidance.
102
questions
0
votes
1
answer
19
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
30
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
50
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
33
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
179
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 ...
0
votes
0
answers
58
views
How to get fields to update from dropdown selection?
I have created a drop down for the events app on developer console but I can not get the fields on the student account to actually update once the selection is made nor the selections to save on the ...
1
vote
1
answer
3k
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 ...
0
votes
0
answers
64
views
Comunication betwen components LWC
Hello everybody I am working on a LWC that contains various child components, where two of them are causing me some problems I don't know how to solve and the JavaScript errors does not tell me ...
1
vote
1
answer
286
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 ...
0
votes
2
answers
148
views
Didn't understand the attributes present inside anchor tag of child component
html file of child component
<template>
<p>I am Child component</p>
<div class="vertical-menu">
<template for:each={navList} for:item="list&...
0
votes
1
answer
69
views
Trigger to update parentId from cloned account
I am building my first account trigger which will clone the triggering record. On the cloned account I will update a field on it called 'Master Record' and set it to true. I also need to set the ...
0
votes
1
answer
184
views
Get the AccountId in the callout Apex class (below)
@all,
In the below apex class I need to get the related AccountId from the custom child class "Pending_address__c", tried multiple times but is shows null value, currently I am hardcoding it ...
1
vote
1
answer
564
views
Pass DataTable Selected Row from Parent to child Record Page
In my Lightning App Page I have an LWC with a data table of related Child Records. For the Child records I have built a custom Record Page.
I have embedded the Child Record Page on my Parent App Page ...
0
votes
0
answers
1k
views
How to set default picklist value on Custom combobox using LWC
Child lwc JS :
setSelection() {
const selectedItems = this.getSelectedItems();
let selection = '';
if (selectedItems.length < 1) {
selection = this.placeholder;
this.selectedOptions = [];
} ...
1
vote
0
answers
296
views
This is a parent-child communication question from LWC combobox!
I'm a beginner at lwc!
When you select an object from a combo box created by a parent component, you want to load the fields corresponding to the selected object into the combo box created by the ...
0
votes
1
answer
135
views
Querying parent's related list from the child object
I just wonder if this is possible and cannot find anything online about it, so imagine the following scenario:
Let's say we have a parent object named Parent__c and it has 2 related lists of objects: ...
0
votes
1
answer
113
views
Multibrand Parent & Child BUs - Contact management & profile center
A potential client has a Parent BU, in which seats the data of one of their brands, and a Child BU in which seats the data of the other brand.
They currently have an issue of unsubscription, since ...
0
votes
2
answers
79
views
Account Hierarchy value assignments when some child values need to take precedence over others
We use a 4 level account hierarchy in our org that basically looks like this
Global
National National
Metro Metro Metro Metro
Unit Unit Unit Unit ...
0
votes
0
answers
45
views
Display Lookup fields in lwc component [duplicate]
I wrote my lwc code in vscode.
Then I wrote in apex class a method that returns list<MyCustomObject__c> =[Select ...];
I used child-to-parent relationship so I used Child__r(Lookup(child) in ...
0
votes
1
answer
2k
views
Get RecordID when i click on button in Lightning Data-table(Child component) and dispatch it to parent component to display related case
I'm a beginner, learning Child to Parent Component communication. Need to get the recordID of account onclick so that i can use it to display cases related to that particular record.
On the Click of ...
0
votes
1
answer
3k
views
In LWC JSON.parse(JSON.stringify(array)) not working as expected
I have an LWC that calls the backend, which makes a callout and returns the response wrapped inside an inner wrapper class with @AuraEnabled member variables and this wrapped class's @AuraEnabled ...
-1
votes
1
answer
2k
views
Access lightning-record-edit-form fields from parent LWC
I have a child component with a lightning-record-edit-form that should work as a standalone component and as a child component as part of another flow.
The form takes inputs from users and then, with ...
0
votes
0
answers
512
views
Listview for my records if I appear in any child records
Suppose we have an A SObject, A has a user child SObject. Now we want to build a list view to show my A records if I am one of the child users linking to the A record. And this needs to be done using ...
0
votes
1
answer
2k
views
How to reset child combo box values on button click in parent LWC
I have Parent component LWC where I am displaying account records in html table and having filters for picklist where I have used combo box(Util combo box) . When I select the values in picklist it ...
0
votes
1
answer
291
views
Update Parent Id In Existing Child Record
I am a new APEX learner.
I created two custom objects : Book & Author, where Author being Parent and Book being child object.
I created Child : book record 'Harry Potter' with Parent : 'J K ...
1
vote
1
answer
1k
views
Update JSON value in child component sent by parent component LWC
Im passing a JSON from parent component to child component in LWC and I want to update the JSON in child component how can I do that?
I think @api decorator is the cause that the JSON cannot be ...
1
vote
1
answer
284
views
Operating between two parents of a junction object
I have say object A, B and C with A and C as parent object and B as a junction object.
What I want is- whenever a B is created between A and C, a field named field__c on A should be transferred to C ...
0
votes
1
answer
780
views
Populate Case Subject in Chatter feed post
We are using salesforce cases and Case owners have been using Chatter to ask questions about the case. The problem is that chatter messages sent from cases only show the case number in the email. ...
0
votes
0
answers
137
views
Why Am I getting NoErrorObjectAvailable error when ever i try to refer to the custom event of child in parent
PARENT.HTML
<template>
<lightning-layout multiple-rows>
<!-- Top -->
<lightning-layout-item size="12">
<lightning-card title="Find a ...
1
vote
1
answer
941
views
How to reset values of a multiselect combo box on click of a button in LWC
In my parent component I'm calling child component as:
<c-multiselect-picklist multi-picklist-values={picklistValues} onselect={handleChange}
preselected-string={selectedPicklistValue} data-id=&...
0
votes
0
answers
966
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 ...
1
vote
1
answer
2k
views
LWC How to Get Parent Value
How do you get the parent value? I am trying to get Order_Bill_To__r.Comm_Model__c without using APEX. I thought I could do this using __r however when I run this it says that [LWC component's @wire ...
1
vote
1
answer
1k
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 ...
0
votes
1
answer
3k
views
Trying to refresh child LWC Data from parent component new values
I'm trying to pass the new data from a parent LWC to a child. The data is a list of wrapped objects with the following properties: string, string, list, list.
I'm able to send and it renders perfect, ...
0
votes
1
answer
929
views
trigger to avoid child record deletion based on conditions on parent record
child=past_information__c ,
parent=consultant__c
prevent deletion of child records were parent has type__c='employee' and status__c='approved'
my code :
trigger avoidDeletionPastInfo on ...
0
votes
2
answers
1k
views
Query child records when relationship is with same object
I have a lookup field on case which points to case object. (Field: Parent__c). I want to query child case records from a parent case using an aggregate query. Below is the query I have used-
[SELECT ...
0
votes
2
answers
3k
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 ...
0
votes
1
answer
195
views
Why ExternalID field of parent Account is null?
I have the next code on my test Class:
parentAcc.ExternalId = '001';
insert parentAcc;
System.debug('parentAcc ExternalId' + parentAcc.ExternalId);
childAccount.ParentId = parentAcc.id;
insert ...
0
votes
0
answers
202
views
I want to create a Text String in a Parent Object of Multiple Products sold on a specific Opportunity using a Formula Field - Help?
Parent Object - Opportunity
Child Object - Opportunity Product
I have a field for each product on the Opportunity.
For example if Opportunity Products X and Y were added to the Opportunity as ...
1
vote
1
answer
583
views
Parent LWC cannot set a child JS Property
Main LWC HTML:
<template>
<c-product-code-entry onproductidchanged={passProductIdToDisplayPanel}></c-product-code-entry>
<c-stock-display-panel></c-stock-display-...
0
votes
1
answer
773
views
Fire a Child LWC Method From Parent LWC
PARENT COMPONENT
parent.html
<lightning-button variant="brand" label="Select" title="Select Family"
data-id={fam.accountId} onclick={handleSelectFamily}
class="...
0
votes
1
answer
896
views
Update child record when parent record is created - possible w/ process builder? [closed]
I could not find any info online on whether or not is possible to update a parent record when a child record is created in a lookup relationship in process builder or if it would have to be a trigger. ...
0
votes
1
answer
3k
views
Access child object fields on custom classic email templates
In my use case, I have 2 objects called 'Object A' and 'Object B'. 'Object B' contains a master-detail relationship to Object A. I have an email alert which has been set up on 'Object A'. In the ...
1
vote
0
answers
132
views
how to report a missing relationship from the child side of a lookup with custom object?
I have 2 custom objects:
Candidate & Worker
Candidate has a field that is a lookup called "Tech Screener:" and allows me to select any worker.
Lets say I have 10 candidate records. I ...
0
votes
3
answers
783
views
Flow Logic to Search/Loop Down Tree of Children Accounts
I want to thank anyone in advance for anything they can contribute to this issue I've run into. My goal is to dispatch email's when an Opportunity stage changes. The email's need to dispatch to the ...
0
votes
0
answers
151
views
Trigger on child to update parent's field causes a process to fail
The certification object is the child and contact is the parent. They do not have a master-detail lookup relationship.
The code seems to run here and there, but I get this error, i checked everywhere ...
0
votes
1
answer
243
views
Access parent object field in before delete trigger using SOQL?
We have a before delete trigger on QuoteLineItem and are trying to access one of Quote's fields using soql query on the quote line item with help of the id, but we are not able to get the field from ...
0
votes
1
answer
1k
views
SOQL lookup query between standard and custom object does not work
Good morning,
In the custom object Equipment_maintenance_item__c there is a lastModifiedById lookup field to the User object.
My understanding is that User is the parent object, and that to query it ...
0
votes
1
answer
426
views
Parent / Child SOQL WHERE condition where child field match with parent field
I wasn't able to find the answer on the forum: I have an easy query which involve a where condition with parent/child relation.
Here is what I'm looking to achieve:
Select Id, ProductCode, EAN__c, ...
0
votes
0
answers
286
views
Update Parent object record from multiple Child records?
We have a custom object (domain) with subscription dates.
I'd like to have a field on the account object but bring in the subscription date from each domain that is associated with the account.
Ie:
...