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
SAP_CRMSAP_CRM 

Calling a Custom VF page in Account detail page

Hello Experts,
I have a VF page which uses a custom controller: 
<apex:page controller= "myClass">
I displays a list of Open Invoices for a the Account (similar to a related list but with additional filters). The visualforce works very well and displays the desired output. Now the question is: how to I call this VF page into the Account detail page along with the other related list? The 'page layout ->  Visualforce Pages' does not have this page as on option. I wonder if I am missing out a step?
Regards,
Suhel
Raj VakatiRaj Vakati
Change as below .. you need to use the standardController to bring them into the layout 
 
<apex:page standardController="Account" extension= "myClass">

 
Raj VakatiRaj Vakati
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_customize_override.htm
SAP_CRMSAP_CRM
Thanks Raj. 
I get this error now: "Unknown constructor 'myClass.myClass(ApexPages.StandardController controller)'"
Any clues?
Raj VakatiRaj Vakati
Change your controller as  and then try 

public myClass(ApexPages.StandardController controller){

}

https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_extension.htm