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
Jason JonesJason Jones 

Beginner Question on Related lists on custom object and Visualforce

I have an custom object called Job Start.  On this object is a lookup field to opportunities.  The request I have is to have the Activities both opened and closed for the opportunity show on the custom object.

I can understand basic samples like the one below from here: https://www.salesforce.com/docs/developer/pages/Content/pages_compref_relatedList.htm , but have no idea where to begin on this one.

Any help would be appreciated
Jason
 
<apex:page standardController="Account">
    <apex:pageBlock>
    You're looking at some related lists for {!account.name}:
    </apex:pageBlock>

    <apex:relatedList list="Opportunities" />

    <apex:relatedList list="Contacts">
        <apex:facet name="header">Titles can be overriden with facets</apex:facet>
    </apex:relatedList>

    <apex:relatedList list="Cases" title="Or you can keep the image, but change the text" />
</apex:page>

 
PratikPratik (Salesforce Developers) 
Hi Jason,

Try these tags:

 <apex:relatedList list="ActivityHistories"/>
  <apex:relatedList list="Openactivities"/>

Thanks,
Pratik
Jason JonesJason Jones
How do I have it look back at the related opportunities activities? Sent from Windows Mail
PratikPratik (Salesforce Developers) 
Hi Jason,

Will you please elaborate? Please add the above code in your code mentioned as above.

Thanks,
Pratik
Jason JonesJason Jones
Disregard the sample. I can see how that is confusing. Imagine this is what I have: Make sense? Sent from Windows Mail