0

I want to show list of all cases related to the account on case page in console.
E.g. If case 000001 is related to Mr. ABC then on right panel of console of case 000001 I would like to show all the cases related to Mr. ABC I am using

<apex:page standardController="Case">
    <apex:detail subject="{!Case.AccountId}" inlineEdit="false"/>
</apex:page>

However, this shows entire Accounts page, is there a way to just show Cases and nothing else

1 Answer 1

3

apex:detail renders the entire detail area based on the record's current layout (determined by the record type/profile matrix). If you want just a related list, use apex:relatedList. Here's a trivial copy-paste example:

<apex:page standardController="Case">
    <apex:relatedList list="Cases" subject="{!Case.AccountId}" />
</apex:page>
1
  • Surprisingly this was not working before when I tried and now it is working.
    – xaero_26
    Commented Aug 30, 2017 at 2:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .