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
svpsvp 

Overriding Standard button with VF page

Hi,

I have a VF page with Standard controller as Pricebook2 and trying to override  "Choose price book" Standard button on OpportunityLineItem. The override dropdown list doesn't showing the VF page.  Any  Idea ?

 

Page:

 

<apex:page standardController="Pricebook2">
     <apex:sectionHeader title="Pricebook" subtitle="yyy"/>
       <apex:form >
         <apex:pageBlock title="Choose Price Book for:">
          <apex:pageBlockButtons location="bottom">
              <apex:commandButton value="Save" action="{!save}"/>
              <apex:commandButton value="Cancel" action="{!cancel}"/>
          </apex:pageBlockButtons>

 

          some other stuff

         </apex:pageBlock>

  </apex:page>

 

Any help must be appreciteated.

 

 

Thanks in advance !!

 

 

Best Answer chosen by Admin (Salesforce Developers) 
bob_buzzardbob_buzzard

This needs to have the Opportunity standard controller to appear in that list.

All Answers

bob_buzzardbob_buzzard

This needs to have the Opportunity standard controller to appear in that list.

This was selected as the best answer
svpsvp

I'm able to see now, Thanks a lot !.

 

 

Best regards,

SVP