0

I am using an iframe containing a visualforce page in a Lightning component. The Lightning component is in a community. I am not able to access the visualforce page as I do not know which url to specify in the iframe src.

Please help me.

<aura:component implements="force:appHostable,forceCommunity:availableForAllPageTypes,lightning:availableForFlowScreens" 
            access="global"
            extends="c:Base"
            controller="AP_ContinuationController">

<aura:attribute name="result" type="String" default="result"/>
<aura:attribute name="endpoint" type="String" default="default.url"/>
<aura:attribute name="host" type="String"/>

<aura:handler name="init" 
              value="{!this}" 
              action="{!c.doInit}"/>

<iframe aura:id="vfFrame" src="/apex/VFP_Continuation" frameborder="0" width="1" height="1"/>

<aura:registerEvent name="getVFData" type="c:LC_VisualForceContinuation_Event"/>

<br/><br/>
<lightning:button variant="neutral" 
                  label="Test" 
                  onclick="{!c.callConga}" />
<br/><br/>
host >>> {!v.host}
<br/><br/>
Conga url >>> {!v.endpoint}
<br/><br/>
Result >>> {!v.result}

0

Please use the page along with base domain like in the below example.

<aura:component implements="forceCommunity:availableForAllPageTypes">
<iframe src="https://[yourdomainroot].salesforce.com/apex/VFP_Continuation"/>
</aura:component>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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