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
kittu9kittu9 

How to display related list in visual force page for open activities related to show task

Hi,

 

 According to requirement we overrided the view page. Now in that page want to display related list to display the task associated with that record. How to display those related list with task pls let me know how to do it. thanks

souvik9086souvik9086

Try this

 

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

 

If this post is helpful please throw Kudos.If this post solves your problem kindly mark it as solution.

Thanks

Devender MDevender M
<apex:relatedList list="OpenActivities"/>
SachinSankadSachinSankad

Hi Kittu,

 

To display related list in visualforce page, you can refer to following code whichi is using tag named <apex:relatedList>.

 

<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>

 

If this post is helpful to you, please hit the kudos.

Thanks,

Sachin Sankad.