+ Start a Discussion
Andy Freeston_LarterAndy Freeston_Larter 

Standard list of custom objects

I have created a custom object CompetitorAnalysis that is a child object of Opportunity. I have added a VisualForce section to the Opportunity Layout to interact and view my custom objects.

For aesthetic reasons I need to list the objects in a new view rather than displaying them as related objects on the Opportunity page. To get to this view, I have added the following link code to my Opportunity page:


<apex:outputLink target="_top" value="{!URLFOR($Action.CompAnalysis__c.List, $ObjectType.CompAnalysis__c,)}">Competitive Analysis</apex:outputLink>


This correctly navigates to the standard list of my custom objects however the list contains all the objects belonging to the user, not just those relating to the Opportunity.

Is it possible to restrict this list (perhaps by adding a parameter to the URLFOR command) or do I need to implement a custom list page for my custom object?

 Many thanks. Andy