Does anyone know if case are supported by force:recordData ? If recordId is a case one then :
<aura:attribute name="simpleRecord" type="Object"/> <!--case record-->
<aura:attribute name="errorRecordData" type="String"/>
<force:recordData aura:id="forceRecordCmp"
recordId="{!v.recordId}"
layoutType=""
fields="ID"
mode="VIEW"
targetRecord=""
targetFields="{!v.simpleRecord}"
targetError="{!v.errorRecordData}"
recordUpdated="{!c.handleCaseUpdated}"/>
{!v.errorRecordData}
displays :
This entity is not currently supported by force:recordData.