Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [lightning]

This tag is for questions related to the "Lightning Experience" which comprises a number of elements around a new User Interface on the Salesforce Platform. While it can still be used in a server side MVC environment, it is primarily a MV UI where the Controller is JavaScript based operating from the user's browser. Lightning "Pages" are single page applications.

13
votes
0answers
327 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 ...
8
votes
0answers
487 views

Internet Explorer bug with lightning ui:inputNumber, ui:inputCurrency with change attribute

I've discovered a strange bug in Internet Explorer with ui:inputCurrency and ui:inputNumber lightning components (probably it also affects other "number" components -> ui:inputPercent). When your ...
7
votes
0answers
274 views

New Lightning Warning

Last night when I left, I was not receiving this warning. This morning, I get this warning multiple times. Even if I navigate to something that I have not customized at all (ie the dashboard home ...
7
votes
0answers
255 views

Lightning Datatable Action Violates Content Security Policy directive

I'm using Lightning Datatable with Static Actions and following the guide in Developer Salesforce.com Lightning Datatable component guide but getting the following error (seen in the Chrome developer ...
6
votes
0answers
339 views

Lightning Component - Intermittent Long Loading Times

I've created this very same example in my org in order to test the new lightning:datatable. The SOQL query in the apex method is also limited to 10 records. Typically my requests finish within 2 ...
6
votes
0answers
201 views

Summer 17 Web tab bug

Testing web tabs in a summer 17 sandbox and have come across an issue where it won't redirect to the page. The browsers dev console shows mostly warnings about deprecated methods being called, a ...
6
votes
0answers
262 views

Remove border in visualforce page added in Lightning Page

Using the lightning page editor is possible add visualforce pages in a lightning page but that add a border and I want to remove it
6
votes
0answers
498 views

Build an Account Geolocation App Zoom

I'm trying to get zoom to work with the code from the Build an Account Geolocation App trailhead. I've passed and got my badge but I'm struggling to figure out how to handle zoom. I did wonder if it ...
6
votes
0answers
1k views

Lightning Component > force:inputField is not working for picklist in Sandbox

I am working on a lightning component where I want to show picklist field using as follows. ` <aura:component > <aura:attribute name="conObj" type="Contact" default="sobjectType:'...
5
votes
0answers
171 views

Safari support for iframing a visualforce page

Background: I have an API I wish to use from within my managed package which occasionally results in long running callouts. In order to ensure my users don't encounter errors with the limits to long ...
5
votes
0answers
127 views

Passing a variable to lightning component through snapin chat

I have a snapin chat component embedded on our custom application (not salesforce or a community). I'm trying to allow a parameter to pass through to my lightning component for use in the prechat ...
5
votes
0answers
57 views

How to use speech recognition functionality in lightning component

Generally, in Javascript, there is a way to using SpeechRecognition API. But in Salesforce this is under locker service. So is there any way to perform speech recognition in a lightning component?
5
votes
0answers
194 views

Lightning popover - show nubbin in the right side

I am using popover with lightning:overlayLibrary. The standard side of the nubbin is on the left. and looks like this: I am trying change it to right. This is how I'm using it: component.find('...
5
votes
0answers
1k views

Not able to open lightning component from quick action otherwise working fine

i get the record id alert after that nothing works doInit : function(component, event, helper) { alert('start'+component.get("v.recordId")); var action1 = component.get("c.getCurrentOpp"); ...
5
votes
0answers
76 views

Can't delete deprecated packaged Custom Object as it has a Flexipage?

Is it true that there is no way to remove a packaged Custom Object with a Flexipage attached to it? Flexipages can't be removed and the Flexipage itsself can be edited when it is packaged. If so, ...
5
votes
0answers
438 views

Standard “Related List - Single” component fires refreshView event only in certain cases

I have three standard related list(Related list - single) components on Opportunity object Lightning page as below: Related list for detail child custom object(Master detail relation with ...
5
votes
0answers
330 views

How to bind expressions to attributes when dynamically creating components

With markup I can do things like this: <aura:attribute name="level" type="Integer" /> <c:childComponent level={!v.level + 1} /> I can bind expression to child's attribute, and whenever ...
5
votes
0answers
982 views

Display Tasks in Calendar in Lightning Experience for all Users

I would like to see Tasks in my Calendar in Lightning. According to this Idea, this is delivered in Lightning Experience. I can see that I can do it using the Create a Calendar from Anything feature, ...
5
votes
0answers
637 views

aura:locationChange doesn't work in Internet Explorer?

I have the following lightning component, TestUrlChange: TestUrlChange.cmp <aura:component implements="flexipage:availableForAllPageTypes" access="global" > <aura:attribute name="hash" ...
5
votes
0answers
1k views

Strange Lightning Error: “Action failed: aura:if$controller$handleTheTruth”

In our Salesforce Lightning components we're running into a very strange error: Action failed: aura:if$controller$handleTheTruth [null is not an object (evaluating 'b.Aa')] Failing descriptor: {aura:...
5
votes
0answers
408 views

Lightning force:inputField with filter issue

I have a lightning component that uses the force:inputField element for a lookup. The lookup field has a filter applied to it. I have the filter field displayed on my component, but when I set the ...
5
votes
0answers
169 views

Can I set an ECMAScript 6 Javascript Map() Object as a Lightning Component Attribute?

I have a scenario where I am building a Javascript Map() object in my client controller helper of a Lightning component. Ideally, I would like to use this map for client-side filtering in a component. ...
5
votes
0answers
2k views

force:canvasApp in a Lightning Component

I have a simple Lightning Component with a Canvas App embedded in it via the force:canvasApp tag. CanvasTestComponent.cmp <aura:component implements="forceCommunity:availableForAllPageTypes" ...
5
votes
0answers
3k views

Lightning Date properties issues

I need to perform a simple business task. I need to alter date property before sending it to server to minimize server response time. I need to use LEX (Lightning Experience). I have declared my ...
5
votes
0answers
778 views

How to get apex:outputLink to work in Lightning Desktop correctly using target='parent'?

In Lightning Desktop we have come across an issue when using apex:outputLink that has a target of "_parent". The links will not work in Explorer or Firefox. The link works fine in Chrome. The ...
4
votes
0answers
73 views

lightning:empApi is not working in summer19's sandbox: 403::Unknown client

I am receiving errors in lightning:empApi in the console. It was working fine before summer19 release in the sandbox. It works fine in scratch org. Scratch org is also on summer19. The error is ...
4
votes
0answers
39 views

How navigate between Lightning Apps using Custom App Launcher

Background I want to build a custom App Launcher as a lightning component using the Lightning Design System App Launcher. I can query AppMenuItem to get apps display: SELECT Id, ApplicationId, ...
4
votes
0answers
60 views

How does one get the active app in Lightning?

In Classic, one can use code like this to determine the app the current user is currently working in public static String getActiveTab(){ String tabLabel; for(Schema.DescribeTabSetResult i : ...
4
votes
0answers
280 views

How to detect minimize action on a utility bar item?

PROBLEM STATEMENT I have a 'Compose Email' component which is embedded in the docked utility bar. Please see below image for clarity. I am using lightning:fileUpload to allow multiple email ...
4
votes
0answers
293 views

Summer 18 - navigateToURL Issue

i got another problem with the summer18 release regarding the URL changes. I use a visualforcepage to render a pdf that is liked to a button on a lightning component. The redirection works this way: ...
4
votes
0answers
77 views

Blank Page while viewing Report in Lightning Community using customer community plus license?

We have created a portal based on Lightning Community (Napili) template. We would like to allow users with "Customer Community Plus" license to access report using the following URL: https://<...
4
votes
0answers
659 views

force:navigateToSObject's slideDevName doesn't support in API Version > 37

If you goto this link https://developer.salesforce.com/docs/atlas.en-us.202.0.lightning.meta/lightning/ref_force_navigateToSObject.htm slideDevName - Supported for lightning experience for API 37. ...
4
votes
0answers
479 views

Change password

I am trying to build a custom page with lightning components where the users of my community can change their own password. I want to do it with the site.changepassword method as described here:https:/...
4
votes
0answers
344 views

Issue with lightning app when using lightning out

Hi guys I have made a nodejs app and want to expose my lightning app in it. The component seems to render but some functionality does not work in the dev console I am getting these errors: Access to ...
4
votes
0answers
455 views

Custom Content Layout for Lightning Community

I've been working with the forceCommunity:layout interface to make my own custom layout for use in a community. The examples from the docs work fine, but there seems to be some magic around the ...
4
votes
0answers
520 views

Add custom Javascript <script> tags to Napili and Lightning communities after Summer 17 release

After Summer 17 release the LockerService will disable Javascript tags in the community Header Markup and access to DOM from Lightning Components. If I would like to add a custom Javascript to Napili ...
4
votes
0answers
929 views

Lightning Components - <force:inputfield> Not working for certain field types?

Is force:inputfield not working for certain field types? I've put together a simple Lightning component I'm finding the following: Picklists - Are rendered as disabled (this is an issue I'm aware of ...
4
votes
0answers
976 views

Capturing save events on Lightning detail page inside a component

So I have a Lightning component on a Lightning detail page. Whenever a user updates some value on the record, I want to refresh this component. Basically want to pull in some fields based on the ...
4
votes
0answers
414 views

Embed visualforce page on standard layout shows up on New/Edit (Lightning Experience)

I've developed a visualforce page for a custom object on Lightning. When I embedded the page to the layout, it is showed in new and edit. I want that works as salesforce classic (show the visualforce ...
3
votes
0answers
36 views

Continuation Apex Unit Testing - Lightning

With Summer'19 release continuation is available in Lightning. To make long running callouts. Continuation - Aura Dev Guide: https://developer.salesforce.com/docs/atlas.en-us.220.0.lightning.meta/...
3
votes
0answers
40 views

Lightning Component Container 403 error

We've developed a lightning component which hosts a react app within a container. I've noticed that sometimes after pushing a change to it in a scratch org (i.e. updating the static resource which the ...
3
votes
0answers
34 views

AuraError: Error at new Aura.externalLibraries

Background I am using this approach Call REST API from Lightning Components without Named Credentials to call the Salesforce REST API from a Lightning component. It works when I call this URL: /...
3
votes
0answers
37 views

Passing a parameter to visualforce in lightning experience

We have a Visualforce page in Lightning Experience and we are using an apex:outputLink to pass a parameter to the same page, so that we can edit an item on the page. VF Page 'MySetup' Snippet: <...
3
votes
0answers
46 views

Simulating a lightning button menu onchange event through jest

I've been trying to write some unit tests for a lightning-button-menu component. With the lwc file as: <lightning-button-menu onselect={onSelectMethod} class="edit-record-wrapper"> <...
3
votes
0answers
27 views

Lightning Action override not working in Google Chrome

i created a lightning component to override the default new action for a custom object. The component is a simple dummy with no function. It displays as expected in Safari for Mac, but absolutely ...
3
votes
0answers
218 views

Array.push() won't update Lightning Web Component View

We are migrating over to Lightning Web Components in the last couple of weeks now and we had some struggles with the arrays in Javascript. On a trackable array, when I call push in a wiredMethod, ...
3
votes
0answers
49 views

ltng:require style issues in preview as a guest user in community

I think I've found two issues with the lntg:require tag, especially with the styles attribute (when previewing as a guest). First, some context: Let's say I have a CSS file as a static resource ...
3
votes
0answers
46 views

Is there any way to turn off these global toast notifications?

Wondering if anyone knows of a setting that would turn all of these toast notifications off,
3
votes
0answers
153 views

Lightning datatable not loading data when scrolled to the bottom

I have created a lightning component which has a lightning:datatable that loads more data as I scroll down. The data loads fine when I use the component explicitly in an app. In the below picture ...
3
votes
0answers
236 views

lightning:recordEditForm. Override submit retrieve undefined on event.getParam('fields')

I had a working code on Winter 18 which override the standard submit event on recordEditForm component but it is not working on Spring 19. When I try to retrieve fields using event.getParam('fields'); ...