You need to sign in to do that
Don't have an account?
Adarsh G 6
Detect trigger event from lightning component
Hi everyone,
Currently I have a trigger which will copy values from related list and I also have a custom lightning component which will display these values. I have a requirement to automatically refresh this lightning component whenever values are updated by trgger at the backend. Any suggestion on how to achieve this?
Note: I have tried with recordupdated functionality from force :recordData, but its not working since I want the component to be refreshed when record is updated at the backend and recordupdated does not support this functionality.
Currently I have a trigger which will copy values from related list and I also have a custom lightning component which will display these values. I have a requirement to automatically refresh this lightning component whenever values are updated by trgger at the backend. Any suggestion on how to achieve this?
Note: I have tried with recordupdated functionality from force :recordData, but its not working since I want the component to be refreshed when record is updated at the backend and recordupdated does not support this functionality.
Have your tried Force:refreshView to refresh your component and the data? Thanks
https://developer.salesforce.com/docs/component-library/bundle/force:refreshView
Anudeep
Please check the following link:
https://salesforce.stackexchange.com/questions/170542/automatically-refresh-lightning-component
Thanks,
Sucharita