1

I have a custom lightning component which resides on a different page than the standard record detail page in Lightning view. When the custom component opens up, it show a list of products which I choose and add to the Opportunity. When I save and redirect to the Opportunity record detail page, I'm not able to view the products added from the component. I have to again refresh the opportunity page to show the list on the Product related list.

What should I do to show the products added without refreshing the page again?

  • Do you have any override of edit button on Opportunity and are you using force:navigateToSObject to navigate to the Opportunity page after adding products? – Jayant Das Apr 23 '18 at 13:10
  • @JayantDas, when my processing is complete I use force:navigateToSObject – Jitesh Goel Apr 23 '18 at 13:15
  • You may like to take a look at this known issue with force:navigateToSObject, if that's your scenario as well. – Jayant Das Apr 23 '18 at 13:16
  • @JayantDas, the problem is somewhat the same but I'm not overriding the edit button but I have a custom detail page button which open a VF page containing a Lightning Component. – Jitesh Goel Apr 23 '18 at 13:23
  • Check this post, if this helps. – Jayant Das Apr 23 '18 at 13:30

Your Answer

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

Browse other questions tagged or ask your own question.