Trying to display related fields from junction object linked to 2 objects vis Master Detail :
@track columns = [{
fieldName: 'related_field__r.Name',
label: 'Name',
type: "text",
},
{
fieldName: 'another_related_field__r.custom_field__c',
label: 'My Custom Field',
type: "text",
},
{
fieldName: 'another_related_field__r.custom_field__c',
label: 'My Custom Field',
type: "text",
}
];
I have 3 test records and as we can see in the screenshot of the logs, the result from the Apex is non null and the code iterates through my 3 test records. We can see also on the web page that 3 rows are displayed in the datatable, one for each record. But the rows are empty. Me thinks it's about object relationship and field fetching. But not sure.