3

I'm trying to override the standard page to a custom visualforce page and as you see in the screen shot I do not see the page that I have created, what I'm missing?

SETUP-->CUSTOMIZE-->ACCOUNTS-->BUTTONS, LINKS AND ACTIONS--> then EDIT LIST

enter image description here

Here is my VFP:

<apex:page standardcontroller="Account" extensions="AccCtrlExt" tabStyle="Account">

   <apex:enhancedList type="Account" height="300" rowsPerPage="10" id="AccountList"/>
 <apex:form >
    <apex:pageBlock >
         //....
    </apex:pageBlock>
</apex:form>
</apex:page>

Controller:

public with sharing class AccCtrlExt
{    
    public AccCtrlExt(ApexPages.StandardController controller) 
    {
    } 
}
2
  • so the page i want to override is the home page of an Account Object
    – Nick
    May 26, 2016 at 19:56
  • What type of button you used?
    – Anurag
    May 26, 2016 at 20:04

1 Answer 1

5

If you want to override the List action, you must use a StandardSetController, which you introduce with the recordSetVar attribute.

<apex:page standardController="Account" recordSetVar="accounts">
0

You must log in to answer this question.

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