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
mark@rallymark@rally 

Controllers and Related Lists

For a standard controller like Account, you may reference Contacts and Opportunities like {!account.Contacts} and {!account.Opportunities}.

For a custom object, does the standard controller manage related lists? For example, I have a custom object, Product__c. Product__c has many features. Each feature is a custom object, Feature__c. Is there a method with the standard controller to get the features for Product__c like {!Product__c.Features}? Or do I have to write a custom controller? And if I write a custom controller, can I extend the standard controller?

A lot of questions so thanks in advance.
RickyGRickyG
Mark -

You can include (or exclude) related lists from a standard controller with a parameter when you specify the object, as in

Code:
relatedList="true"

for instance.  It's one of the great virtues of standard controllers - you can bring in all the standard Force.com functionality.

Hope this helps.