function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
<template> <c-child name={nameFromParent}></c-child> </template>
Is there a away to simple get the field value of a parentId and pass it to record ID?
A use case is I have a LWC it put on a Contact page layout. I want it to show Account info.
Here's an generic example LWC line--
<lightning-record-edit-form record-id={recordId} object-api-name={objectApiName}>
<lightning-record-edit-form record-id={AccountId} object-api-name='Account'>
And use the component on a Contact Lighting Record Page?
If the concept is sound but I have the syntax incorrect, can anyone clue me in as to the correct syntax.
Please refer the below trailhead to help you to proceed futher on this requirement.
https://trailhead.salesforce.com/en/content/learn/projects/communicate-between-lightning-web-components/communicate-from-child-to-parent
If this helps, please mark it as best answer.
Thanks!!
Please follow below url for get more understanding:-
https://medium.com/salesforce-champion/lwc-way-to-pass-the-data-between-component-parent-to-child-and-child-to-parent-component-6d8070ef4185
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh
We can get parent record values in child records by calling the parent name from the child component like this
for complete examples see below link
https://www.sfdckid.com/2020/08/api-property-lightning-web-component.html
If you find your Solution then mark this as the best answer.
Thank you!
Regards
Suraj Tripathi
Is there a away to simple get the field value of a parentId and pass it to record ID?
A use case is I have a LWC it put on a Contact page layout. I want it to show Account info.
Here's an generic example LWC line--
Can I could something like --And use the component on a Contact Lighting Record Page?
If the concept is sound but I have the syntax incorrect, can anyone clue me in as to the correct syntax.