Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

I have a few reports embedded in visualforce page using iFrame. Due to this new release of Spring '14, iFrame has stopped working and now these visualforce pages show blank screens. Can anyone help me with a work around?

share|improve this question
    
Could it be the clickjacking protection that they force enabled recently (salesforce.com and visual.force.com being different domains)? What exactly does not work, have you checked the browser's console? –  eyescream Apr 17 at 19:39
    
its not clickjacking. ALthough it wasn't recommended, i still disabled clickjack protection and tried to run it. It didn't work even then. –  Sam Apr 18 at 6:35

1 Answer 1

With Spring '14, Salesforce has really picked up the pace when it comes to their Analytics. The Analytics API is now available in Apex. Salesforce has also added a new tag, <analytics:reportChart> for embedding report data into Visualforce pages. As of right now, there is only one Visualforce component available in the analytics namespace, but my guess would be that more will be coming. If you are trying to add this report to a page layout section, Salesforce has also recently added the ability to embed report charts in page layouts directly. This completely eliminates the Visualforce requirement!

Anyway, I would highly suggest looking into the Analytics API more. This should work a bit better than an iFrame for you. Peter Knolle has written some exceptional articles on the topic as well:

He also did a session at my local user group meetup that he recorded and put up on Youtube.

share|improve this answer
    
That is some very helpful information Jesse. But i tried <analytics:reportCharts> component. My reports do not have charts. And this component shows only tyhe chart part of the report. So this didn't work for me. Thanks for your response though :) –  Sam Apr 17 at 13:27
    
I was afraid of that. As you noted, unfortunately this doesn't pull in the entire report, only the chart. –  Jesse Altman Apr 17 at 13:35
    
Yeah! Actually I'm accessing these visual force pages through a custom link. Click on the link, and voila! a report 'used to' open. but nothing now :( –  Sam Apr 17 at 13:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.