0

Below is my visualforce page code :

<apex:page standardController="CDs__c" recordSetVar="CDs__c">
 <apex:pageBlock >
 <apex:pageBlockTable value="{!CDs__c}" var="cash">
<apex:column value="{!cash.price__c}"/>
<apex:column value="{!cash.quantity__c}"/>
 </apex:pageBlockTable>
 </apex:pageBlock>
</apex:page>

I want to see this VF page in my CDs object page layout. To display VF pages in a particular object's page layout we can use standard controller as that object and automatically VF option will be enabled in page layout. So in VF option (page layout) i am able to see all pages where i have used CDs as the standard controller but not the above page mentioned. I want the above page to be displayed in page layout ? How to do that ?

Novarg
  • 5,266
  • 1
  • 27
  • 56
pratiksha
  • 1
  • 1
  • if you want to add some info to the question please use edit button, do not post additional info as comment and/or answer. To make sure your code is visible you have to put 4 whitespaces in front of it – Novarg Dec 03 '14 at 08:29

2 Answers2

0

You need to remove recordSetVar="CDs__c" page's attribute from your VF page to list it in VF page layout.

0

If you are wanting to display this onto a standard page. (I think that is what you are asking) then why not create this as a VF Component and the you can add it on the object layout.

TimChadwick
  • 614
  • 8
  • 18