You need to sign in to do that
Don't have an account?
Peter Friberg 26
Detect changes on oppty record home page in lightning component to detect need for refresh
When you create a lightning component and put that on an opportunity record home page (oppty detail page), it is pilot functionality right now.
I created a lightning component that draws some graphics and it is dependent on some felds on the oppty and some related records (task & events). So if I change the close date I need to refresh my component, but also if a new task/event is added from the oppty page I need to redraw the component.
What event do you need to listen to in order to detect a change on any field on the oppty itself? Or do I need to do something else?
Any ideas?
I created a lightning component that draws some graphics and it is dependent on some felds on the oppty and some related records (task & events). So if I change the close date I need to refresh my component, but also if a new task/event is added from the oppty page I need to redraw the component.
What event do you need to listen to in order to detect a change on any field on the oppty itself? Or do I need to do something else?
Any ideas?
I know the answer is pretty late and you probably either found your answer or gave up but I'll leave a link here to the documentation so the next person might find out what to do in this case :)
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/data_service_handling_record_change.htm
There's also the new events funcionality since Summer '17: https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/js_cb_data_change.htm
And trailhead badges to teach about it ˆˆ