You need to sign in to do that
Don't have an account?

Lightning Console - $A.get('e.force:refreshView').fire() not working
Hi everyone,
I have a lightning component that updates some data on a record and then calls $A.get('e.force:refreshView').fire().
In a regular lightning app, the component works fine however, in a lightning console app; the rest of the code works but $A.get('e.force:refreshView').fire() has no effect...
Anybody knows how to solve this?
Thanks!
I have a lightning component that updates some data on a record and then calls $A.get('e.force:refreshView').fire().
In a regular lightning app, the component works fine however, in a lightning console app; the rest of the code works but $A.get('e.force:refreshView').fire() has no effect...
Anybody knows how to solve this?
Thanks!
This is an out of the box lightning event which will wrok directly if the container app for your component is one.app i.e. these events can work within Lightning Experience or Salesforce1 only. Also, it'll not work in preview mode as when you view your component in preview mode while developing, the container is not one.app. To use it in places other then Lightning experience or SF1, then you have to fire the event using aura:registerEvent or aura:dependency and handle it using aura:handler.