+ Start a Discussion
Kanhaiya Yadav 4Kanhaiya Yadav 4 

how can handle after update from lightning detail page ?

Hi All,

I have create custom ligthning component for console app, in which I am listing records of milestone(Custome object).
After click on record, It open record details page in subtab.

"I want to refresh data in custom component(List of records) whenever record update from detail page in subtab"

User-added image
Thanks In Advance
Dhanya NDhanya N
Hi Kanhaiya,

When you update the record Toast message will be displayed. You can handle that toast message and refresh the component. 
 
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId" access="global" >
	Hi, testing 
    
    <aura:handler event="force:showToast" action="{!c.relatedlistrefresh}"/> 
</aura:component>
JS file:
({
	relatedlistrefresh : function(component, event, helper) {
		console.log('===relatedlistrefresh==');
	}
})
In you JS file you can init method again to reload the data.

Thanks,
Dhanya