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
dho1dho1 

List button that selects all records on the related list and displays on VF page

I was looking at the help page on calling a visualforce page from a list button: http://www.salesforce.com/us/developer/docs/pages/Content/pages_controller_sosc_custom_button.htm?SearchType=Stem

on section 2 there was a line of code that allows the selected values from the related list to be displayed on the pageblocktable on the visualforce page:
<apex:pageBlockTable value="{!selected}" var="opp">

Is there any way to pass all records to the visuaforce page, without the user having to select anything. Something like the following:

<apex:pageBlockTable value="{!ALL}" var="opp">

However I tried the above but it did not work.