You need to sign in to do that
Don't have an account?
Deven Damiano
Call function after navigationmixin.navigate new record modal closed
I'm using the following to open a new record modal on a custom lwc
What I need is after the user saves inside of the popup, to run a function that refreshes my lwc component. Unfortunately, I've found no way to trigger anything after the modal is closed. I've tried listening for platform events, appending .then(result => {}) to the end of the navgation mixin function, but all have failed miserably, and I have lost all hope. Does anyone have any ideas I how to accomplish this? Please help..
this[NavigationMixin.Navigate]({ type: 'standard__objectPage', attributes: { objectApiName: this.childObjectApiName, actionName: 'new' }, state : { count: '1', nooverride: '1', useRecordTypeCheck : '1', defaultFieldValues: inheritParentString, navigationLocation: 'RELATED_LIST' } });
What I need is after the user saves inside of the popup, to run a function that refreshes my lwc component. Unfortunately, I've found no way to trigger anything after the modal is closed. I've tried listening for platform events, appending .then(result => {}) to the end of the navgation mixin function, but all have failed miserably, and I have lost all hope. Does anyone have any ideas I how to accomplish this? Please help..
https://salesforce.stackexchange.com/questions/254496/lwc-navigation-thisf-navigationmixin-navigate-is-not-a-function
https://salesforce.stackexchange.com/questions/284484/avoid-navigation-to-newly-created-record-using-navigationmix