You need to sign in to do that
Don't have an account?
Siddharth Lakhotia
Page Refresh not happening in lightning after click of button
Hi,
When I click on custom button "Accept Ownerhsip" , it should change owner.
Though the owner gets changed , but it gets refelted only after page is refreshed manually.
The logic of ownership change is implemented in Apex
When I click on custom button "Accept Ownerhsip" , it should change owner.
Though the owner gets changed , but it gets refelted only after page is refreshed manually.
The logic of ownership change is implemented in Apex
Greetings to you!
Currently, there is a known issue in lightning that prevents reflection of data updates on UI.
https://success.salesforce.com/issues_view?id=a1p3A0000001C8QQAU&title=data-not-updated-in-ui-after-an-apex-update-in-lightning-experience
However, you can use force:refreshView to force all data to reload.
Try like this:
And don't forget to add below handler in your component:
Also, please make sure to turn off browser caching in your Org.
From Setup, locate the link to ‘Session Settings’.
Locate the ‘Caching’ section.
Uncheck the option to ‘Enable secure and persistent browser caching to improve performance’.
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas