Salesforce

Salesforce

lightning:recordEditForm getting Record Id after insert

Sample Code:Component:<aura:component implements="force:lightningQuickAction,force:hasRecordId" controller="NewCaseController">        <lightning:recordEditForm objectApiName="Case" onsuccess="{!c.handleSuccess}" aura:id="myRecordForm">        <lightning:messages />        <lightning:inputField aura:id="field" fieldName="Subject" />        <lightning:inputField aura:id="field" fieldName="Origin" />        <lightning:inputField aura:id="field" fieldName="Reason" />                <div class="slds-m-top_medium">            <lightning:button type="submit" label="Save Record"/>        ....

Salesforce

How to display parent field value in lightning:datatable in Salesforce Lightning Component

Component:<aura:component implements="force:appHostable"                controller="ContactController">                    <aura:attribute type="Contact[]" name="contactList"/>    <aura:attribute name="mycolumns" type="List"/>        <aura:handler name="init" value="{!this}" action="{!c.init}"/>        <lightning:datatable data="{! v.contactList }"                          columns="{! v.mycolumns }"                          keyField="Id"                         hideCheckboxColumn="true"                         ....