I have a custom metadata type with API names that match custom fields on the Case object. Is there a way to combine the two and retrieve the data within the Case custom field to populate the value for each aura:iteration? For example:
// Iterate through all controller returned custom metadata type fields
<aura:iteration items="{!v.docTypes}" var="item">
<option text=""
// Use the current iterated field to look up the data to populate
// the field. (v.simpleRecord + attendanceDate__c)
*value="{!v.simpleRecord}" + "{!item}">*
selected=""/>
</aura:iteration>
Since the custom metadata type field API name matches the one on the Case object, the goal is to use the LDS record and locate the field on it that matches the same item being iterated through and return the record's actual value.