1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
| <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>
|
|