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
Sapana WSapana W 

Not able to add inline VF inspite of using object as standard controller in Prod

Hi,

I have created a VF page with Account as Standard Controller and have added the page as inline VF in sandbox. But when I tried to do same in the Production, I cannot see the required VF page under VisualForce Pages in edit layout. Is it becuase my Prod is at lower version and I had to decrement the version of code to lower version before deploying to Prod? I do have access to the page in Prod and could see it in setup also.

.User-added image
I could not the see the VF page am looking here for.

Also here is the code snippet:

<apex:page StandardController= "Account" extension="TestControllerExtn" recordSetVar="Accounts">
Best Answer chosen by Sapana W
bob_buzzardbob_buzzard
You can't add Visualforce that uses the standard set controller to the page layout, that is for extended functionality around list views.  You have to use the regular standard controller (i.e. no recordSetVar) to be able to add to a page layout. The help is pretty clear on this:

https://help.salesforce.com/apex/HTViewSolution?id=000005105&language=en_US
 

All Answers

bob_buzzardbob_buzzard
You can't add Visualforce that uses the standard set controller to the page layout, that is for extended functionality around list views.  You have to use the regular standard controller (i.e. no recordSetVar) to be able to add to a page layout. The help is pretty clear on this:

https://help.salesforce.com/apex/HTViewSolution?id=000005105&language=en_US
 
This was selected as the best answer
Sapana WSapana W
Thanks Bob,

I realised the problem yesterday and was able to fix it.  I am marking yours as the best Answer so to be helpful for others