0

In my Opportunity flexi page, i have related list of a custom Object X and also a custom component for the same object (X) on the right hand panel, all in a same flexi page. When i make changes/add a record using the related list my custom component in the right panel is not reflecting the changes. I need to refresh the browser to reflect the changes. How to overcome this issue. Please help

0

One way we found to be working is to listen to standard force:showToast application event / toast message:

<aura:handler event="force:showToast" action="{!c.onShowToast}" />

Seems bit hacky; but works due to the fact that editing or deleting a record from standard related list always shows a toast message.

Downside is that component would refresh with toast message from any component, still something is better than nothing.

| improve this answer | |
  • Raul, i tried this approach but it didn't worked. – Maverick May 28 '19 at 20:01
  • @Maverick I see, been a while I worked on Aura component as we moved to LWC, originally I meant it to be is force:showToast, updated the answer – Raul May 28 '19 at 20:11
  • Raul, by adding force:showToast it worked.. Thanks – Maverick May 28 '19 at 20:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.