You need to sign in to do that
Don't have an account?

Page redirect to dashboard source page when using iFrame
Hi all,
I have created the visualforce page to embed the dashboard in the home page. It works perfectly fine until yesterday. The home page redirect to the dashboard page without sidebar, header. To fix this I have to remove the iframe from the visualforce page.
Any ideas how to solve this and make it works again?
cheers
I have created the visualforce page to embed the dashboard in the home page. It works perfectly fine until yesterday. The home page redirect to the dashboard page without sidebar, header. To fix this I have to remove the iframe from the visualforce page.
<apex:iframe src="/01Z90000000MXp0?isdtp=vw" scrolling="true" height="1000px" width="100%" />
Any ideas how to solve this and make it works again?
cheers
try the below code, add "outputPanel"
<apex:page showheader="false" sidebar="false">
<apex:outputPanel id="SalesfunnelDashboard" >
<script>
location.href="https://cs13.salesforce.com/01Z50000000xcKR?isdtp=vw";
</script>
</apex:outputPanel>
</apex:page>
All Answers
We were able to solve it by using self.location.href = "complete URL" in the apex page. Kindly let me know if you need any help.
Regards
Siddharth
{
location.href = "https://naX.salesforce.com/01Z40000000MXOu?isdtp=vw"; }
I am having the same issue. Below is my code for my home page dashboard. Can you help me with what I am doing wrong?
<apex:page showheader="false" sidebar="false">
<apex:iframe src="/01Z/o?isdtp=nv" scrolling="true" height="495px" width="100%"/>
if(sw=="Admin")
{
location.href="https://naX.salesforce.com/01Z/o?isdtp=nv";}
</apex:page>
We cant use iframe.
<apex:page showheader="false" sidebar="false">
if(sw=="Admin")
{
location.href="https://naX.salesforce.com/dashboardID?isdtp=vw";}
</apex:page>
Once you open a dashboard , just copy the complete URL present in the browser and put the same inside commas
<apex:page showheader="false" sidebar="false">
if(sw=="Admin")
{
location.href="https://na11.salesforce.com/01ZG0000000UPEO";}
</apex:page>
<script>
location.href="https://na11.salesforce.com/01ZG0000000UPEO;
</script>
</apex:page>
Below is my code and added to home page component, still it is redirecting to dashboards tab. am i missing anything in my code?
<apex:page showheader="false" sidebar="false">
<script>
location.href="https://cs2.salesforce.com/01Z50000000wDb4";
</script>
</apex:page>
location.href="https://cs2.salesforce.com/01Z50000000wDb4?isdtp=vw";
Siddharth we appreciate your help.
Thanks for the workaround. But for me, my dashboards are getting cut(There are around 9 dashboards in the home page). Is there a way to specify height and width?
My old code was
<apex:page showheader="false" sidebar="false" >
<apex:iframe src="/01Z110000008iUZ?isdtp=nv" scrolling="true" height="1000px" width="100%"/>
</apex:page>
I have changed to :
<apex:page showheader="false" sidebar="false">
<script>
location.href="https:cs18.my.salesforce.com/01Z110000008iUZ?isdtp=nv"
</script>
</apex:page>
Any help much appreciated.
Thanks,
adjust your dashboard size to "Medium" it will fit in the screen.
to adjust ths dashboard size:
1.click edit on the dashboard.
2.left top corner of the block you can set to medium.
try the below code, add "outputPanel"
<apex:page showheader="false" sidebar="false">
<apex:outputPanel id="SalesfunnelDashboard" >
<script>
location.href="https://cs13.salesforce.com/01Z50000000xcKR?isdtp=vw";
</script>
</apex:outputPanel>
</apex:page>
<apex:page showheader="false" sidebar="false">
<script>
location.href=https://na10.salesforce.com/01ZF000000114Ha?isdtp=vw
</script>
</apex:page>
Hi subbareddy
My scenario is to display the set of dashboard in home page. So i tried code like yours ,but when am clicking the dashboard its not redirecting to particular dashboard. can you please help me out to solve this issue.