You need to sign in to do that
Don't have an account?
How to use related list for custom and standard object.?
Hi All,
I want to make a visualforce page and i want to override standard functionality like show related list in visualforce page so how can i achive it ?. And then i want to show this related list in visualforce page similer to standard object related list.
I want to make a visualforce page and i want to override standard functionality like show related list in visualforce page so how can i achive it ?. And then i want to show this related list in visualforce page similer to standard object related list.
All Answers
you can get related list by using following steps
<apex:page standardcontroller="Account">
<apex:detail relatedList="true">
</apex:page>
you can add this page to view in the buttons or links of particular object(Account)
if you want to display selected related list then you can do like this
<apex:page standardcontroller="Account">
<apex:detail relatedList="false">
<apex:relatedList List="Contacts">
<apex:relatedList List="AccountContactRoles"/>
<apex:relatedList list="ActivityHistories"/>
<apex:relatedList list="CombinedAttachments"/>
</apex:page>
Thanks,
Jagan