An inline visualforce page is a vf page which can be embedded within a detail page of a record. Salesforce allows doing so, in the edit page layout option. A vf page would be available for embedding in the detail page layout provided page is using standard controller of that particular object. For example, in the below example a inline vf page of standard controller 'contact' would be available for embedding in contact records only.
Controller public with sharing class inlinecontroller { Public contact conRec{get;set;} Public id accRecId; Public account accRec{get;set;} public inlinecontroller(ApexPages.StandardController controller) { accRecId = [select id,accountid from contact where id = :ApexPages.currentPage().getParameters().get('id')].accountid; if(accRecId != null) accRec = [select id,name,accountnumber,annualrevenue from account where id =:accRecId]; } }
Another way to get your page displayed is to embed it within a standard layout for another page. For example, imagine your accountDisplay showed an interesting analysis of the account data, and you wanted to embed it within the standard account detail view. From the object management settings for accounts, go to Page Layouts. Click Edit next to Account Layout. Select Visualforce Pages in the left column of the user interface elements palette. You’ll notice your page appears here (because it uses the Accounts standard controller). Select accountDisplay, and drag it to the Account Information panel. Click Save.
To see this in action, select the Accounts tab and then choose an account. You’ll notice the standard display of data, with your Visualforce page embedded within it! Your embedded page ideally needs to accommodate the inline display, so it might look a little plain right now, but notice how the embedded page automatically shows data of the same record—it’s also being passed the ID parameter.
I created a sample visual force page. I want to use it in the Opportunity page layout. Is it possible to insert a visual force page in the opportunity page layout? If it is possible how to do it?
Resolution
To be able to embed a Visual Force page into page layout, the VF page should be using the standard Controller tag referencing same entity for which this page will be used in page layout. You can use/add this visual force page by modifying the page layout.
A simple Visual force page using the Standard Opportunity Controller.
There are numerous specific challenges to neurology billing, our experienced medical coders are well informed in how to manage them all, including cardiovascular, behavioral, interventional, and clinical. They are also specialists in neuro-immunology medical billing, sleep medicine billing, and neuro-rehabilitation medical billing.
There are to many post are available on google for same, Please check below post. I hope that will help you
1) http://blog.jeffdouglas.com/2009/05/08/inline-visualforce-pages-with-standard-page-layouts/
2) http://www.cloudforce4u.com/2013/10/using-inline-visualforce-page.html
An inline visualforce page is a vf page which can be embedded within a detail page of a record. Salesforce allows doing so, in the edit page layout option. A vf page would be available for embedding in the detail page layout provided page is using standard controller of that particular object. For example, in the below example a inline vf page of standard controller 'contact' would be available for embedding in contact records only.
visualforce page
<apex:page standardController="contact" extensions="inlinecontroller">
<apex:form >
<apex:pageBlock title="My Inline Visualforce page">
Account Name <apex:outputField value="{!accRec.name}"/><br/>
Account Number <apex:outputField value="{!accRec.accountnumber}"/><br/>
Annual Revenue <apex:outputField value="{!accRec.annualrevenue}"/>
</apex:pageBlock>
</apex:form>
</apex:page>
Controller
public with sharing class inlinecontroller {
Public contact conRec{get;set;}
Public id accRecId;
Public account accRec{get;set;}
public inlinecontroller(ApexPages.StandardController controller) {
accRecId = [select id,accountid from contact where id = :ApexPages.currentPage().getParameters().get('id')].accountid;
if(accRecId != null)
accRec = [select id,name,accountnumber,annualrevenue from account where id =:accRecId];
}
}
Let us know if this will help you
Embed a Page on a Standard Layout
Another way to get your page displayed is to embed it within a standard layout for another page. For example, imagine your accountDisplay showed an interesting analysis of the account data, and you wanted to embed it within the standard account detail view.
From the object management settings for accounts, go to Page Layouts.
Click Edit next to Account Layout.
Select Visualforce Pages in the left column of the user interface elements palette.
You’ll notice your page appears here (because it uses the Accounts standard controller).
Select accountDisplay, and drag it to the Account Information panel.
Click Save.
To see this in action, select the Accounts tab and then choose an account. You’ll notice the standard display of data, with your Visualforce page embedded within it! Your embedded page ideally needs to accommodate the inline display, so it might look a little plain right now, but notice how the embedded page automatically shows data of the same record—it’s also being passed the ID parameter.
----------------------------------------------------------------------------------------------------------------------------------------
Opportunity page layout. Is it possible to insert a visual force page in
the opportunity page layout? If it is possible how to do it?
A simple Visual force page using the Standard Opportunity Controller.
Please go through the below links:
https://help.salesforce.com/apex/HTViewSolution?id=000005105&language=en_US
https://developer.salesforce.com/docs/atlas.en-us.workbook_vf.meta/workbook_vf/overrides_2.htm
https://success.salesforce.com/answers?id=90630000000gjxaAAA
http://blog.jeffdouglas.com/2009/05/08/inline-visualforce-pages-with-standard-page-layouts/
http://salesforce.stackexchange.com/questions/68405/embed-a-visualforce-page-in-a-standard-edit-layout
http://salesforce.stackexchange.com/questions/4691/embedding-a-page-layout-into-a-vf-page
Please do let me know if it helps you.
Regards,
Mahesh