You need to sign in to do that
Don't have an account?
Ken Koellner @ Engageware
Refresh LIghtning detail page after visualforce edit page
We have a legacy VisualForce page that overrides the standard Edit button. So, in Classic or Lightning, when you press the Edit button on the record Detail page, the VF page comes up. There is one glitch when in Lightning Experience. When you save from the Edit page, you end up back on the Lightning Detail page but the old data (which must be in the Lightning cache somewhere) is still shown. You have to manually refresh to get the latest data.
I'm wondering if there's any kind of trick when leaving the VF page to go back to Lightning and force it to reload. I can't find any way to do it by passing back any sort of PageReference, with or without redirect.
Maybe there's some kinda of trick where it can go back to the VF page and the VF page could have an onComplete script that would somehow force lightning to reload the record.
I'm wondering if there's any kind of trick when leaving the VF page to go back to Lightning and force it to reload. I can't find any way to do it by passing back any sort of PageReference, with or without redirect.
Maybe there's some kinda of trick where it can go back to the VF page and the VF page could have an onComplete script that would somehow force lightning to reload the record.
Have you mentioned if this issue is occurring in only after the recent update or it has been the same since before the update?
Looking forward for your response.
Regards,
Anutej
I have a newer feature I wrote in an Aura component that runs as a QuickAction in Lightning and in a Lighting App inside a VF page in Classic. I found a wizz-bang solution for that. It checks the theme and in Lightning, fires a refresh event (and toast), in classic, it redirects to the page layout. See the code below. That works great.
What I need is the reverse solution for a VF page that overrides Edit.
Below works great of an Aura component used in both Lightning and Classic.
I was using lightning component as you have said that this is happening with lightning components as well.