You need to sign in to do that
Don't have an account?
shra1_dev
Refresh Lightning component on Opportunity record Edit Save (Standard Layout)
Hi Guys,
I'm trying to build a lightning component which will be used on Opportunity lightning UI. The component is placed in the right panel. The component loads pretty well on any Opportunity record view.
The problem here is when I try to update the opportunity record (which comes as popup block) the component in the right panel is not getting refreshed. By this the updated values are not showing up on the lightint component.
Need to find a way to refresh the lightning component on record save.
Any help would be appreciated!!
Thanks
Shravan
I'm trying to build a lightning component which will be used on Opportunity lightning UI. The component is placed in the right panel. The component loads pretty well on any Opportunity record view.
The problem here is when I try to update the opportunity record (which comes as popup block) the component in the right panel is not getting refreshed. By this the updated values are not showing up on the lightint component.
Need to find a way to refresh the lightning component on record save.
Any help would be appreciated!!
Thanks
Shravan
Here is the Component Code:
Here is my Controller Code:
All Answers
Took some trial and error but was able to get it working.
<aura:handler event="force:refreshView" action="{!c.refresh}" />
Thanks for the response.
I'm bit confused with the solution given. Could you please explain th workaround with an example? Actually I'm dealing with the Opportunity standard Edit functionality to update the record in lightining feature. Once the record is updated the entire page is not getting refreshed. By this my lightning component in the right panel is not getting refreshed. Please find the screenshots below.
Clicking on Save button should refresh my lightning component.
Please help me with an example..!!
Thanks.
Here is the Component Code:
Here is my Controller Code:
I am trying to achieve something similar to the above.
The object that I am trying to update is a custom child object (of custom parent object).
The event force:refreshView does not seem to be working.
I have tried several other save events too, but it does not seem to listen to the event.
Do you have any suggestions?
Thanks!
Your solution works like a charm!
The only problem is that it's not working when a record is deleted, do you know if there's any way to solve this problem?
Thanks!
Thanks for sharing, I had a slightly different use case but it solved using the approach you suggested.
I am stuck with similiar situation but I want to refresh after edit operation gets completed. Since there is no callback or something so how I will get to know that edit operation is completed