+ Start a Discussion
SFDC_DeveloperSFDC_Developer 

Show Summary report in VF page

How can I add Summary Report without chart in a page layout?
As of now I am trying to create one VF page which I will add as inline VF page in layout, but the below code is not showing any results, its just showing white screen.

Thanks
<apex:page showHeader="false" sidebar="false">
  <apex:OutputPanel id="MissingAttRpt" >
        <apex:iframe src="/00Og000000hMj0h?isdtp=lt" scrolling="true"  height="1588px"  width="100%"/>   
  </apex:OutputPanel>
</apex:page>

 
KaranrajKaranraj
You can't display salesforce standard page in the visualforce iframe window due to Click-jack protection for non-salesforce setup pages (http://docs.releasenotes.salesforce.com/en-us/winter14/release-notes/rn_186_forcecom_cruc_setup_pages.htm). The only option is to use Salesforce Reporting api to display the reports in the visualforce page, else have the hyper link in your visualforce page to open the report from the standard page. To know more about Reporting API, refer this link https://developer.salesforce.com/docs/atlas.en-us.api_analytics.meta/api_analytics/sforce_analytics_rest_api_intro.htm
SFDC_DeveloperSFDC_Developer
Does any one have Sample code for Salesforce Reporting api to display the reports in the visualforce page?

Thanks
yvk431yvk431
Same here, please let me know if anyone have anything on this.

--yvk
Sunil Shah 8Sunil Shah 8
Thanks Karanraj :)