Hi Danish, Based on recordId iam able to show records in Details just how to pass recordId from parent.i dont want include child component in parent component.
Hi Suchi, may I know the reason why you are passing recordID in <c-hardware-order-info component? the variable you are using in JS is recordId, not recordID
Are you having parent-child relationship b/w the LWCs or navigating from one to the other?
- https://thesalesforcedev.blogspot.com/2019/07/parent-child-communication-in-lwc_21.html
- https://thesalesforcedev.blogspot.com/2019/08/parent-to-child-communication-in.html
- https://thesalesforcedev.blogspot.com/2019/08/communication-from-child-lightning-web.html
- https://thesalesforcedev.blogspot.com/2019/08/navigation-from-one-lwc-to-another-lwc.html
If you have the LWCs as sibling components, plz refer : https://thesalesforcedev.blogspot.com/2019/07/pubsub-event-in-lightning-web-component.htmlBased on recordId iam able to show records in Details just how to pass recordId from parent.i dont want include child component in parent component.
Please refer this: https://thesalesforcedev.blogspot.com/2019/07/pubsub-event-in-lightning-web-component.html
I am facing the same issue. I am able to pass recordId from Parent to first child but it is not passed to teh second child.
<template>
<c-hardware-order record-id={recordId}></c-zettle-hardware-order>
<c-hardware-order-info record-id={recordID}></c-zettle-hardware-order-info>
</template>
in Parent Js :
import { api, LightningElement } from 'lwc';
export default class Hardware extends LightningElement {
@api recordId;
}
in both child js :
@api recordId;
Still the record Id is not passed to the second child but it is passed to first child.
Any help is appreciated.
Thanks
the variable you are using in JS is recordId, not recordID