I have a master-detail relationship with master object Service__c and child object Service_Task__c. The relationship API is Service_Task__r. I am using a custom controller.
My visualforce page is displaying a list of Service_Task__c. However, for each Service_Task__c, I want to show a variable from the master object Service__c which is Description__c. How do i access the variable Description__c and display it?
serviceTaskList = [SELECT Name, Service__c FROM Service_Task__c}
I have tried this and it shows the Service__c ID.
Service__c.Description__c does not work.