I have created a lightning component for the lightning experience record pages. In the customize record page, I drag standard Record Detail component and my component to the page. In my component, I update some fields of a record. After I save those field, I fire up the e.force:refreshView
event. But the standard record detail component did not refresh to show the new value of those field. Is there any way to force to refresh the standard record detail component?
Here's the code:-
Component:
<div>
<force:recordView recordId="{!v.recordId}"/>
</div>
<div>...some input field... <ui:button label="Save" press="{!c.save}"/>
</div>
Controller:
save : function(component) {
var action = component.get("c.saveInput");
action.setParams({
"objectName" : component.get("v.sObjectName"),
"recordId" : component.get("v.recordId"),
"postcode": component.get("v.postcode"),
"city": component.get("v.city"),
"state": component.get("v.state"),
"country": component.get("v.country"),
"street": component.get("v.street")
});
action.setCallback(this, function(action) {
$A.get('e.force:refreshView').fire();
});
$A.enqueueAction(action);
}
<force:recordView/>
did not refresh with new values, when$A.get('e.force:refreshView')
is fired? – Praveen Aug 4 '16 at 7:20