I'm migrating some functionality from classic to lightning and need to replace javascript button which will redirect to standard edit page.
I'm using Quick Action for that calling component which does some pre-validation and then it calls e.force:editRecord
.
After save is successfully performed I need to refresh record on current page as it is related and some values have been changed. Page is completely standard except for that Quick Action.
Is there a way to handle that save success as callback or any other reasonable workaround? I'm considering to create component that will show lightningEditForm
instead of e.force:editRecord
.
It is shame that SF doesn't provide functionality to handle such situations or even handle it on its own.
panelOnDestroyCallback
as parameter fore.force:editRecord
and call$A.get("e.force:refreshView").fire();
from it. I've tried it actually, but for some reason when it is in Quick Action, that method is called only when that Quick Action is called second time. It looks that when it is within quick action, Destroy of that component is happening only before it needs to be re-rendered (initialization of QA on second call)