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
Howard IkenHoward Iken 

Create VF inline related list

I have a related list that I based a VF page on - so I could insert it near the top of a detail screen instead of down below with the related lists.

I just discovered a trick to create a duplicate related list that I can filter.  But now I cannot figure out how to get that duplicate related list rendered in a VF page (like the first one)

Here is the code on the VF page that works:

<apex:page standardController="advpm__Matter__c" title="Matter: {!advpm__Matter__c.Name}" id="pg">
  <apex:relatedList list="Cash Receipts__r"/>
</apex:page>


My duplicate (filtered) related list is called:  Cash Receipts (Active lookup)

No matter what name I plug into 
<apex:relatedList list="Cash Receipts__r"/>
I cannot get this VF page to display.
Lokesh KumarLokesh Kumar
HI Iken,

You have to add your VF page containing a Related list to the Object PageLayout and Object should be advpm__Matter__c.

How To add Visualforce Page on the page layout. check the below link.

User-added image

let em know if this works for you.

Thanks
Lokesh