I have added the lightning component in lightning record page .I want to dynamically get the object name and its field value . I am able to get the object name but when i try to get the field value it is empty. Without querying with the record id is it possible to get the corresponding object field value.
Component :
<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId,force:hasSObjectName">
<aura:attribute name="recordId" type="String" />
<aura:attribute name="sObjectName" type="sObject" />
<aura:if isTrue="{!v.sObjectName=='Account'}">
{!v.sObjectName}
{!v.sObjectName.Status__c}
</aura:if>
<aura:if isTrue="{!v.sObjectName=='Contact'}">
{!v.sObjectName}
{!v.sObjectName.Phone__c}
</aura:if>