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 

Filter VF inline related list

Is it possible to filter a VF inline related list?

My vf page consists of:

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

I would like to exclude records based on one of the displayed fields.

Thanks
Abhishek M.Abhishek M.
Hi Howard,
To filter VF inline related list, you need to write an extension to that vf page, like as folllows,

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

where; cashReceiptsList is the filtered list.

- Hope this helps.