<aura:component implements="force:appHostable,flexipage:availableForRecordHome,force:hasRecordId,force:lightningQuickAction,forceCommunity:availableForAllPageTypes" access="global" >
|
<aura:attribute name="data" type="Agency_Report__c" default="{'sobjectType':'Agency_Report__c','Report_Date__c':null}"/>
|
|
reportdata
|
<force:inputField value="{!v.data.Report_Date__c}" aura:id="input-report-date"/>
|
<aura:attribute name="contact" type="Contact"
|
default="{ 'sobjectType': 'Contact' }"/>
|
<aura:handler name="init" value="{!this}" action="{!c.doInit}" />
|
Firstname
|
<force:inputField aura:id="firstname" value="{!v.contact.FirstName}"/>
|
<force:inputField aura:id="lastname" value="{!v.contact.LastName}" />
|
</aura:component>
|