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
KlivingstonKlivingston 

Use VF to display Dashboard Tab

Hello all,

 

Is it at all possible to create a VF page to display the Dashboards Tab?  The reason I ask that some of our users want to display all of their dashboards on their home page - so I thought I'd create a VF page to be displayed as their home page and populate it with the data from their dashboard tab.

 

Any help or guidance would be greatly appreciated!

 

Thanks

 

Jon Moore

Best Answer chosen by Admin (Salesforce Developers) 
hitesh90hitesh90

Hi Klivingston,

 

Here are the code to display Dashboard in Visualforce Page.

 

<apex:page>
<apex:iframe src="/DashboardId?isdtp=nv" scrolling="true" height="1588px" width="100%"/>
</apex:page>

 

Important :

 

Hit Kudos if this provides you with useful information and if this is what you where looking for then please mark it as a solution for other benefits.

 

Thanks,

Hitesh Patel

All Answers

hitesh90hitesh90

Hi Klivingston,

 

Here are the code to display Dashboard in Visualforce Page.

 

<apex:page>
<apex:iframe src="/DashboardId?isdtp=nv" scrolling="true" height="1588px" width="100%"/>
</apex:page>

 

Important :

 

Hit Kudos if this provides you with useful information and if this is what you where looking for then please mark it as a solution for other benefits.

 

Thanks,

Hitesh Patel

This was selected as the best answer
Aruna@developerforceAruna@developerforce
But, we cannot override OOTB Home page layout with complete visualforce page.
KlivingstonKlivingston

Thanks for that... I was planning on creating this dashboard page and then assigning it to a custom Tab to users can have it displayed as their home page.

 

Thanks again.