Added code to add dashboard using iframe in visualforce page ,but dashboard is not displaying (Only white space appears) Here is my code ,Please provide me the solution.
<apex:page standardController="Position__c" sidebar="false">
<!-- Begin Default Content REMOVE THIS -->
<h1>Congratulations</h1>
This is your new Page
<apex:pageBlock >
<apex:pageBlockSection >
<apex:detail />
</apex:pageBlockSection>
</apex:pageBlock>
<apex:iframe src="https://ensignllp-dev-ed.my.salesforce.com/01Z7F000000cS0q" scrolling="true" id="theIframe"/>
</apex:page>
Please look into in the below links:
https://vanityforce.wordpress.com/2013/02/03/two-methods-for-embedding-a-report-or-dashboard-chart-in-visualforce-or-standard-pagelayout/
https://automationchampion.com/2014/04/18/embed-report-charts-in-visualforce-pages/
https://automationchampion.com/tag/embed-report-charts-in-visualforce-pages/
http://www.infallibletechie.com/2012/07/how-to-display-dashboard-using-visual.html
http://salesforce.stackexchange.com/questions/8806/how-can-i-embed-a-dashboard-in-visualforce
http://docs.releasenotes.salesforce.com/en-us/spring14/release-notes/rn_analytics_vf_charts.htm
https://developer.salesforce.com/forums/?id=906F000000097IIIAY
https://developer.salesforce.com/forums/?id=906F00000008qUfIAI
Please do let me know if it helps you.
Regards,
Mahesh
There are to many example are available in google for same. please check below post. I hope that will help you
1) http://www.infallibletechie.com/2012/07/how-to-display-dashboard-using-visual.html
2) http://www.infallibletechie.com/2012/07/how-to-display-dashboard-using-visual.html
3) http://www.infallibletechie.com/2013/02/pie-chart-and-bar-chart-using-apex-in.html
Sample code Let us know if this will help you
Thanks
Amit Chaudhary
Here is my code ,Please provide me the solution.