function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Siva SakthiSiva Sakthi 

How to refresh/reload the component record view after update the record in lightning component

Hi,

       I have two components parent and child with rollup summary value. when i update child records the parent rollup value is updated. Able to check that update using pull to refresh. Is any other way to refresh the parent component/record(Rollup value) with out pull to refresh?. I have show that record details in record view passing recordid edit that record and click save have to refresh the parent component/record.

Please guide me to achive this.  

Example Code:
--------------------------
<aura:component>
        <aura:attribute name="emp" type="Employee__c"/>      
        <div class="{!v.value == 'All Employee'? 'row primary' : 'row '}" >    
            <div onclick="{!c.gotoRecord}">    
                <force:recordView recordId="{!v.emp.Id}" type="MINI"/>    
            </div>            
        </div> 
</aura:component>

Advance Thanks
Sivasakthi
James LoghryJames Loghry
Hi Siva,

Please check out the following link, where Skip explains this well:

http://salesforce.stackexchange.com/questions/82589/lightning-rerender-a-forcerecordview
Siva SakthiSiva Sakthi
Thanks James.

I have tried this sample with my record Id in default, but it causing error like ' Invalid Record Id or Record not accessible'.
       <aura:attribute name="id" type="String" access="GLOBAL" default="00128000009no1d"/>

If possible to use application event call the parent controller in helper once again to refresh the list?.Any other examples is there to achive this.

Thanks
Sivasakthi