Wednesday 6 February 2013

Inserting dashboard on vf page

For inserting dashboard designed in salesforce on vf page we need to use <apex:iframe> tag and id of that dashboard as shown below.

vfpage  with dashboard:
=================


<apex:page sidebar="false" showHeader="false">
 <apex:iframe src="/01ZG0000000d9Qb?isdtp=nv" scrolling="true" height="1588px" width="100%"/>
</apex:page>

in the above  'src="/01ZG0000000d9Qb?isdtp=nv" '
if you are not  specifying "isdtp=nv" as a parameters it shows dashboard including header.

if you specify then it shows only dashboard with out header.


Output:
==========
======

No comments:

Post a Comment

How to include a screen flow in a Lightning Web Component

 Hi, Assume  you have a flow called "Quick Contact Creation" and API Name for the same is "Quick_Contact_Creation". To i...