I have two objects Fruit__c and Apple__c. Apple__C has a lookup to Fruit__c.
Now, I am writing a Visualforce page, where in the page block table I want the columns to be
Fruit__c.Name Fruit__c.Color (If Fruit has an Apple, then) Apple__c.ExpiryDate (Since, Fruit can have multiple Apples, I want to get the Apple with the latest expiry date)
I am trying to understand, how to display the Apple__c.ExpiryDate in the PageBlockTable, when my controller is on Fruit__c.
Thanks in advance!