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
SeanSeeSeanSee 

View All Button for Related Lists

I am trying to see if there is a way I can add a button to a related lists section in order to View All even if there are less than 5 related records so users can print out the information. 

 

Is there a way to use the view all button that is already available when there are more than 5 records?  I was thinking there may be a way to call it from a visualforce page but I'm not sure how I might go about doing that.

 

Thanks for any suggestions

_Prasu__Prasu_

you will need to find the the related list controller id. Check out the following link which is for showing the relatedlist all values for corresponding account. you can create a custom button with creating a following URLs with merge fields

 

/006?rlid=RelatedOpportunityList&id=00190000002aqgu 

 

006                                            - SObject prefix

RelatedOpportunityList         - relatedlist controller name

00190000002aqgu               -  PArent record id. in the above case its a account id.

 

I hope this will help you! 

Let me know if you need any further information.