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
TechnosTechnos 

Need Help urgent VF page is not coming in Override option of Standard Button

I am not geeting the Visual force page in to override with List of an Custom object. I  Changed my VF page like this

 

<apex:page standardController="Case_Accession__c"  extensions="ExtentionController">

...................My Code..............................

</apex:page>

 

What I am doing wrong ??

 

Regards

Raman

hitesh90hitesh90

On which object you want to override standard Button?

TechnosTechnos

Case_Accession__c only, but I try with other objects also I am not getting the page anywhere ????

hitesh90hitesh90

it will display only under the buttons of "Case_Accession__c" object not any other object's button.

have your page properly save?

Neha LundNeha Lund

Hello,

 

remove standard controller from the page and check  you will get it.

 

Instead of extensions you will have to use Controller class

TechnosTechnos

Yes I am trying in 'Case_Accesion__c" only, but no success.

 

And what is mean by Page property saved  ??

hitesh90hitesh90

Page property save means your Visualforce page has been saved successfully or not?

TechnosTechnos

Yes Its saved Hitesh

TechnosTechnos

No Neha !! I guess you did not get my requirment . In Sales force doc also its mentioned that we need to use Standard Controller If we want to override the functionality of any button ..

 

Regards

Raman

AsitM9AsitM9
Can you give code snippet and a screen shot ?
Neha LundNeha Lund

Just give this a try

 

Create a VF page

<apex:page>

</apex:page> with name 'TestStandard'

 

and on overridding you will find this in drop down, I have faced this issue

Neha LundNeha Lund

To overcome this what you should do is

 

create a page with the name, once it is overridden you can replace the code what you have right now.

 

It will help you.

TechnosTechnos

Ya  I create another page and that is coming in the iverride option, now I am loading my required page  in that page... But this is not the good way any how many pbm is solved ...... Can you please suggest  why its behaving like this

 

<apex:page standardController="Case_Accession__c" extensions="ExtentionController1" action="{!pageredir}"  >
    <apex:form >
    <apex:pageBlock >
     <!-- Begin Default Content REMOVE THIS -->
  <h1>Congratulations</h1>
  This is your new Page
  <!-- End Default Content REMOVE THIS -->

    </apex:pageBlock>
      </apex:form>
 </apex:page>

 

 

--------------------------

public class ExtentionController1
 { 
        
     public ExtentionController1(ApexPages.StandardController controller) 
     {}
     public Pagereference pageredir()
     {
      Pagereference newpage =Page.Accession
       return newpage;
     }
 }

 

See in red I am loading Accesion page on Case Populate load which was my requirment,, but I am not getting directly Accession on the override option of Case__Accession__c object..

 

 

Regards

Raman

Avidev9Avidev9
You are probably doing a silly mistake!
Can you post the "Accession" page code /?