0

I have a Lightning Component which has an iframe. The src of the iframe is the URL of a report to which a "fv" parameter is passed. The component is within an Account Lightning page, on a tab which is not the first tab in the display. The issue is that as soon as the Lightning page for the Account loads, it redirects the whole page to the src of the iframe. I want the report (associated with the URL of the iframe src) to display on the iframe when the tab is selected, I do not want the report to replace the whole page. How can this be done?

Here's the code for the component:

<aura:component implements="force:lightningQuickAction,force:hasRecordId,force:appHostable,flexipage:availableForRecordHome,force:hasRecordId,force:hasSObjectName" access="global" >
<aura:handler name="init" value="{!this}" action="{!c.doInit}"/>
    <aura:attribute name="recId" type="String"/>

     <iframe aura:id="vfFrame" src="{!'/lightning/r/Report/00O23000000GyO3EAK/view?fv4='+v.recId}" />
</aura:component>

1 Answer 1

0

So it appears that this cannot really be done in Lightning. We did find a few alternatives to embedding a report in Lightning which uses filters.

1
  • Einstein Analytics Dashboard lightning components cannot be used for standard dashboards.
    – hamayoun
    Commented Jun 17, 2019 at 15:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .