function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Lee Anne GLee Anne G 

Build Flexible Apps with Lightning Components - Use Base Lightning Components wrong?

Hi, I did Part 4 of Build Flexible Apps with Lightning Components - Use Base Lightning Components - Part 4. The code shown in number 1 would not display the Property Name until I changed it from <lightning: outputField fieldName="Name /> to <lightning: outputField fieldName="v.property.Name" />
 
<aura:component >
    <aura:attribute name="property" type="Property__c" />
    <lightning:recordViewForm aura:id="viewForm" recordId="{!v.property.Id}" objectApiName="Property__c">
        <lightning:outputField fieldName="v.property.Name"/>
    </lightning:recordViewForm>   
</aura:component>

User-added image
 
SandhyaSandhya (Salesforce Developers) 
Hi,

This worked for me. Did you save the file and refresh the Property detail page.I was able to see only after refreshing the page.

Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
                                             
Best Regards
Sandhya