Questions tagged [lightning-out]

Lightning Out is a feature that allows Lightning Components to be used in pages that are run from non-Salesforce servers allowing components to be added to external apps. A JavaScript library is included in the page on the origin server. Markup is added to configure & activate the Lightning components app. Lightning Out pulls the components app into the page over a secure connection & inserts it into the DOM of the page.

Filter by
Sorted by
Tagged with
3
votes
1answer
56 views

Lightning components inside Salesforce Mobile SDK

I am pretty new to mobile Development, so i have started with this Trail and created hybrid_remote app. Everything works great as i could able to access the data trough VF page. Then I wanted to ...
2
votes
0answers
31 views

Exception in lightning component when loading on mobile app web view using lightningout.js

We have a custom mobile app where it loads the lightning components in hybrid web view through lightningout.js. we found an error message displayed in mobile webview for a component, it contains ...
1
vote
0answers
70 views

WorkspaceAPI not working in Lightning component, if component is using lightning out app

as lightning components are not supported in List view button, i have used lightning out to serve the purpose, but WorkspaceAPi is not working in Lightning component as it using lightning out. i need ...
1
vote
0answers
205 views

I'm not able to access DOM element even in “afterRender”

I'm trying to create a canvas in my custom lightning component. This is a child component of another component. The canvas draws few charts, and the methods are called only after both the script(...
1
vote
0answers
220 views

lightning out not working with login flow

I've a login flow which uses flow and lightning component to present few screens. Issue with flow screens is these screens are not wide enough. I tried to use login flow with VF to get better control ...
1
vote
0answers
88 views

Unable to use UI Theme functions in Lightning Out App

first time working with a Lightning Web Component and Lightning Out so this may be a fairly simple question. We're still using Salesforce Classic so I need to be able to use navigation methods which ...
0
votes
1answer
206 views

Look up field not showing results - Lightning Component via Lightninh Out

I built a form using Lightning Universal Lookup Component - Managed Package. I'm using it in two different fields, here is the first field where it's working perfectly. This is the markup for that ...
0
votes
2answers
2k views

Error when trying to show Toast from lightning out through Site

I get this error on the bottom of the page when trying to show a toast message This page has an error. You might just need to refresh it. Error in $A.getCallback() [$A.getEvt(...) is undefined] ...
1
vote
0answers
761 views

Is there a way to use lightning:fileUpload from a Visualforce Page?

I need to call a Lightning component which uses lightning:fileUpload to upload multiple files from a Visualforce Page. But for calling a Lightning component from a Visualforce Page, I need to use a ...
2
votes
1answer
1k views

Lightning Out: CORS error even after whitelisting force.com site

I have a force.com site. I access one visualforce page from this site. On this vf page is a lightning-out application. All of the lightning-out requirements to run on a vf page has been set: ...
2
votes
1answer
40 views

Lightning out - How to catch errors from the embedded component

I have a lightning out application. I can easily catch backend errors and show it in the front-end via alerts or toasts. However, I wanted the host application to have a way to capture the error ...
1
vote
2answers
3k views

How to close sub tab from lightning component button click

I have a vf page in which I have embedded a lightning component ( lightning out ). I'm having a lightning button called "Save". On clicking this, I need to close the sub tab ( currently I'm displaying ...
1
vote
0answers
105 views

Alternative to lightning:overlayLibrary in LightningOut

I have a Visualforce page which loads a Lightning Aura Component using LightningOut. The Lightning component uses a <lightning:overlayLibrary component, which is not supported in LightningOut. ...
1
vote
1answer
3k views

Error in $A.getCallback() [Cannot read property 'fire' of undefined] failed: $A.get('e.force:refreshView').fire();

Background I have a Visualforce page which loads a Lightning Aura Component using LightningOut. When the Lightning component executes this line: $A.get('e.force:refreshView').fire(); I get this ...
0
votes
1answer
655 views

Lightning components not added as dependency in lightning out app are visible to external app

I'm working on lightning out app to authenticate and expose few lightning components for an external node app. OAuth Access Token is used to authenticate user. It seems to be working fine just that ...
3
votes
1answer
555 views

Open New Tab in Lightning Out?

Scenario: I want to create a List Button which displays a Lightning Component. The only way to implement this step is to use a Visualforce Page which uses a Standard Set Controller, then use ...
2
votes
2answers
467 views

Reuse Classic Apex Controller for Lightning conversion

We have a very large, complex Visualforce page with a very large, complex extension. We have been asked to convert a portion of the functionality to Lightning (using Lightning Out on the VF page). Is ...
0
votes
0answers
30 views

In LightningOut, firing an event multiple times from the VF page javascript to LightningOut component gives Event error [duplicate]

I've seen several questions regarding this issue, but none of the answers work in LightningOut. When an event is fired from the VF page's javascript (VF page event to Lightning Component), it gives an ...
1
vote
3answers
2k views

Community user cannot download file

I am using an old portal for my customers, with customer community user licenses. In the portal, my users should upload files and then download the files that they have uploaded. The portal is ...
5
votes
1answer
1k views

Unable to subscribe to Platform Event Notifications in a Lightning Component via Lightning Out

The ultimate objective is to detect if a visualforce page (or the lightning component embedded within it) is already being viewed/used by a user when someone else opens it and subsequently restrict ...
1
vote
1answer
305 views

“afterRender threw an error in 'lightning:clickToDial' [a.replace is not a function]” when dynamically displaying lightning:clickToDial

I have a VisualForce page with a script to dynamically display a lightning:clickToDial component. However, when the page is loaded I receive the following error message: This page has an error. ...
0
votes
2answers
189 views

recordEditFrom - Address Field is disabled in Site as a Guest

When using Lightning Out and recordEditForm, the Mailing Address fields on Contact object is disabled even though the permissions are set on the Guest Profile. All other fields are fine. Manually ...
0
votes
2answers
887 views

Getting error while passing list from visualforce page to lightning component

I have a button "Manage RA" in Lightning Listview of a custom object which uses Visualforce page and Lightning:out to invoke the lightning component. When a user selects any of the records from the ...
14
votes
1answer
427 views

Cannot read property '$$OwnerKey$$' of null

I have a Visualforce Lightning Out page that's rendering some <lightning:input type="date"> elements. Since the Winter '19 release in the dev sandbox I'm working in, whenever I select a date ...
1
vote
0answers
79 views

Html not rendering for lightning out rich text field in visualforce

We have implemented knowledge in our org, and generally use an employee community to interface it. However, when not using the community we render the articles in a visualforce page that is ...
2
votes
1answer
92 views

Lightning out event override failing in Summer '18 (except in debug mode…?)

I built a lightning component to be used in a Visualforce page using Lightning Out, which works fine in my development environment, which is in Spring '18. However, when I pushed it to another ...
1
vote
0answers
225 views

Lightning Out Content Security Policy

I'm trying to use Lightning Out. It's running from within an iFrame, but I'm getting this error. Refused to load the script 'https://XXX.my.salesforce.com/lightning/lightning.out.js' because it ...
4
votes
3answers
800 views

Lightning Icons (SVG) not displaying in Lightning Out

For some reason lightning:icon is not displaying the svg in Lightning Out. I tried also lightning:buttonIcon and lightning:button with icon. Here is my ActivityTimeline (custom component) which uses ...
2
votes
1answer
2k views

lightning:inputfield - lookup fields in Lightning Experience, Salesforce Mobile App and Lightning Out

I’ve been experimenting with the new lightning:inputfield and it seems that the lookup fields don’t work in the mobile app or in Lightning Components which have been embedded in VF pages. Can people ...
7
votes
1answer
478 views

Unstyled Flows in Lightning Out

I have a static site, hosted in a AWS S3 bucket. The static site uses Lightning Out to load a component that contains a flow. I have included the SLDS stylesheet in the static site, and have ...
4
votes
0answers
375 views

SLDS not applied to flow when used in Lightning Out

I have a Lightning Out app, hosted in a S3 bucket, that launches a flow. Everything works and is styled as it should be until the flow is launched. The input styles revert back to "normal", the date ...
3
votes
1answer
764 views

Lightning Out SLDS Weirdness

I am trying to load a lightning out app in a static site hosted via an S3 bucket. I started with a lightning app that extends ltng:outApp and it describes a single component as a dependency. The app ...
1
vote
0answers
109 views

Lightning Data Service support in Lightning Out

I am currently working on developing a new Lightning application and wanted to use Lightning Data Service. However I see from the Dev Guide (https://developer.salesforce.com/docs/atlas.en-us.210.0....
1
vote
0answers
103 views

Cross Origin Frame Error in a visualforce page using Lightning Out

I have a lightning component which uses external libraries like d3.js and jquery. I have to use this this component in a lightning page as well as show it on the record detail page of a custom object. ...
2
votes
0answers
484 views

Lightning out : Access-Control-Allow-Origin error // CORS added

We want to add a Lightning component to an external page. OAuth token is working, and the page's URL is added to the CORS list. However, we are still getting an error: "No 'Access-Control-Allow-...
4
votes
3answers
3k views

lightning:helptext not working in Lightning Out

I'm having issues rendering the lightning:helptext component with Lightning Out. Here's the code that will reproduce the issue: TestOut.page <apex:page showHeader="false" sidebar="false"> &...
0
votes
0answers
424 views

Is lightning:recordViewForm supported in Lightning Out?

In the documentation for lightning:recordViewForm it explicitly states that it does not use Lightning Data Service. Also, nowhere in the documentation does it say that the record view form is only ...
2
votes
0answers
82 views

Elegant exception handling in ltng:outAppUnstyled

I am using ltng:outAppUnstyled to create re-usable bi-style (LEX and Classic) components. However whenever some sort of exception occurs, it just gets appended the the bottom of app body: <div ...
2
votes
0answers
415 views

Intermittent Lightning out CORS issue with external site

I'm running into a CORS issue with a lightning out component running on an external website where Salesforce appears to be redirecting to the visualforce domain to load lightning out and not ...
0
votes
1answer
368 views

Lightning Out / Visualforce Pass sObject from Visualforce to Javascript Controller

I'm adding a lightning out component to a pre-existing visualforce page. I can pass the values from the sObject bound in the Visualforce page to my Lightning Component by passing these as separate ...
0
votes
1answer
81 views

Lightning Out fails to load due to app endpoint responding with relative url scripts [closed]

I am loading a component from an external page, but when it calls the appname.app?aura.format=JSON&aura.formatAdapter=LIGHTNING_OUT URL in the host org, it responds with a "scripts" field that ...
6
votes
0answers
626 views

Detect if Lightning component is used in Lightning Out

Is there a way to detect the context of where component is used? For example to find if it's LEX, community, app, Lightning Out or Lightning Out Unstyled. I was thinking something like using $A....
1
vote
1answer
344 views

lightning:openFiles in classic

I've my list of files in a Lightning component, and I'm using - lightning:openFiles (https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/ref_lightning_openFiles.htm) to view the ...
3
votes
1answer
749 views

Cannot Load Lightning Out in Firefox

I have run into a large blocker regarding the use of Lightning Out to inject a Lightning component into a Visualforce page. I have used the method outlined in the documentation here in order to load a ...
2
votes
0answers
197 views

Specifying the DOM parent element of an Aura component

Using Lightning Out, createComponent takes a domLocator parameter that specifies where in the DOM to insert the component. I was wondering if there is was a way to do this in Aura apps without ...
3
votes
0answers
505 views

No navigation for sforce.one.navigateToURL from vfpage lightning out in a community site

I have a lightning component developed to work both in lightning and in community pages(flexipage:availableForAllPageTypes,forceCommunity:availableForAllPageTypes) To work around LockerService ...
1
vote
0answers
29 views

Have built unauthenticated update-details pages for my Salesforce Contacts. Should I use them?

I'm looking for a means that Contacts in my database can easily update their own fields and child records on a highly customised interface. I believe the best and cheapest solution is to build an ...
8
votes
1answer
479 views

Navigation between component in lightning out

I'm trying to build an app with lightning out (in my case they are hosted in VF Pages) but I was wondering if there is a way to navigate from component to component like with $A.get("e.force:...
2
votes
1answer
511 views

Lightning URL button - detect reload and prevent action on reload

As a follow up to this question: Add URL Parameter or another method to prevent action on browser refresh - Lightning Out / Component The solution does not work in lightning. The basics of what I am ...
3
votes
2answers
790 views

Add URL Parameter or another method to prevent action on browser refresh - Lightning Out / Component

Scenario: Using Lightning Out I have a VF page display a Lightning Component. The VF page passes values from URL parameters to the component attributes. If specific parameters are passed the ...