Last active
December 19, 2017 22:02
-
-
Save madmax983/96d77bfbb11f4fdaf0533861218fe280 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId,force:hasSobjectName" access="global" > | |
<lightning:recordEditForm recordId="{!v.recordId}" objectApiName="{!v.sObjectName}"> | |
<lightning:messages /> | |
<lightning:inputField fieldName="Name" /> | |
<lightning:inputField fieldName="<INSERTNAMESPACEHERE>__LookupField__c" /> | |
<lightning:button class="slds-m-top_small" variant="brand" type="submit" name="update" label="Update" onclick="{!c.handleClick}" /> | |
</lightning:recordEditForm> | |
</aura:component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
handleClick : function(component, event, helper) { | |
var event = $A.get("e.force:refreshView"); | |
event.fire(); | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment