You need to sign in to do that
Don't have an account?
Display Master/Detail custom object records in Lightning.
I currently have a Lightning that displays a list of custom Master object records.
Each master record has many detail records attached to it. Would I need to do a database call for all the detail records? How do I reference them in my code?
Here was was the relationship looks like in the schema

<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes" controller="ListWhiteboardItemsApexController"> <aura:attribute name="whiteboardItems" type="Whiteboard_Item__c[]"/> <aura:handler name="init" value="{!this}" action="{!c.doInit}" /> <aura:iteration items="{!v.whiteboardItems}" var="whiteboardItem"> <c:whiteboardItem whiteboardItem="{!whiteboardItem}" "/> </aura:iteration> </aura:component>
Each master record has many detail records attached to it. Would I need to do a database call for all the detail records? How do I reference them in my code?
Here was was the relationship looks like in the schema
Let me know if you have any questions!