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.

3
votes
1answer
601 views

$Resource global variable is not available in Lightning Component?

I try to build a lightning component embedded in Lightning Experience. My org is Summer 16 Dev Org. The component is in a Account record page. When using follows, it compiles successfully. <...
4
votes
3answers
5k views

Change salesforce logo on lightning

Hi I want to change salesforce logo on left corner. I searched a lot but not getting any solution.
1
vote
1answer
621 views

Custom edit page on a new project. Lightning Component, Lightning Design System or Visualforce?

It is so long that I wonder what is the best solution to the following problem. I need to build a case custom edit page. Before the rise of "lightning" I would have started developing a custom ...
2
votes
1answer
92 views

LockerService issue with Safari, Component not accessible in debugger

Component: <aura:handler name="init" value="{!this}" action="{!c.doInit}" /> Controller: doInit : function(component, event, helper) { console.log(component); debugger; ...
4
votes
1answer
1k views

Lightning security on init page load with server-side call

I was reading through the Lightning Security documentation here and noticed one of the points for Cross Site Forgery. In order to prevent CSRF attacks, do not invoke any server-side controller ...
2
votes
0answers
1k views

e.force:navigate events open browser instead of record in Salesforce1

Does anyone have thoughts as to why force:navigateTo[n] events appear to fire twice in the following scenario? I have a lightning component exposed as a lightning tab inside Salesforce1. At one point ...
2
votes
1answer
2k views

Lightning Components Error TypeError: componentClass is not a function

I'm working on a lightning component, and have started getting the error below. It seems to happen frequently as I'm adding methods to the helper and controller. In other words, I've created a few ...
0
votes
0answers
980 views

How to navigate to an SObject record based on an apex call response?

I have a lightning component which displays an Opportunity Line Item record. It has a delete button. On click of it I am showing a modal which has a confirm and a cancel button. <ui:button class="...
0
votes
1answer
994 views

Error in $A.getCallback() [TypeError: Invalid value used as weak map key] Failing descriptor: {markup://c:Top5Clients}. Please try again

I have two components 1)Top5Clients and 2)MessagesandAlerts which retrieves recodrs from their respective custom objects I want to display the two components side by side so I have included in a ...
1
vote
2answers
531 views

Cant convert {!$Label} to custom label in Lightning component inside a community project

We're able to localize everything within communities except for the attributes of a component. (Please see the screenshot) We want that {!$Label} to be converted to the custom label. According to ...
1
vote
1answer
578 views

Lightning Script SRC Attribute Rendered as DATA-SRC

I am trying to load RequireJS, a static resource, and it is failing to load into the Lightning application because the element is rendered incorrectly. I'm using the LTNG:REQUIRE tag in this format: ...
1
vote
2answers
461 views

Error when aura iteration given list property

I'm getting an error when I supply the list property acc.Contacts to the aura iteration component. <aura:application> <aura:attribute name="acc" type="Account" default="{ ...
10
votes
3answers
3k views

Display modal in Salesforce1 with Lightning Components

I'm desperately trying to display a modal in Salesforce1, but can't make it work. My component display information that doesn't fit on one screen so I need to scroll. Problem is that SLDS Modal will ...
3
votes
2answers
8k views

Salesforce Lightning vs Classic Experience

Is there any plans to replace the Salesforce Classic with Salesforce Lightning? Any news or links on this. I just went to through the release note and can see some difference between these - Compare ...
1
vote
1answer
102 views

Once I nest buttons within another element, I can no longer toggle to “hide” them using my previous CSS? [duplicate]

I have the following component: <div aura:id="appr"> <ui:button aura:id="approveButton" press="{!c.handleFirstPress}" label="Approve" /> </div> <div aura:id="subm" class="...
2
votes
1answer
665 views

Lightning Tab - Pass parameters

I am trying to navigate to a Newly setup tab using a lightning component. Component is configured to be used with RecordHome and contains recordId attribute. When navigating to the component, I would ...
2
votes
2answers
1k views

Error in Lightning : 'markup://ui:outputNumber' [Error: Unable to format NaN] Failing descriptor: {markup://ui:outputNumber}

I am new to Salesforce Lightning. I am following the below documentation to create my first Lightning App. https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/...
4
votes
1answer
2k views

New Event and New Task link is not showing in Opportunity kanban view

Salesforce - Activity option not available on Kanban view in lightning. See screenshot below for reference. Where it says No Open Activities, user should be able to have a 'New Event' hyperlink. When ...
3
votes
1answer
917 views

Not able to access event.currentTarget when locker service is enabled

There's a question already asked regarding this here Issue with event.currentTarget According to Salesforce Known Issues , they've updated that it has already been fixed in almost all the servers (...
3
votes
2answers
3k views

aura:iteration doesn't rerender when changing attribute object[] under locker service

Another issue that I found with locker service, I presume this is some kind of framework bug related to locker service (if someone can tell, I'd appreciate). I have a simple component which has one ...
1
vote
1answer
203 views

Navigating from one salesforce component to another

I sincerely appologize for the very long code, I have been working on this for a really long time but it is still not working...Please help I have 4 lightning components The main Component <aura:...
0
votes
2answers
4k views

Lightning Component - Data Tables - Record Menu

I am new to Salesforce Lightning. Trying to create a component to add/edit an object and related lists without saving as part of a workflow. SLDS help provides a nice(??) guidance on how to create ...
0
votes
2answers
2k views

ui:InputRadio with event.getSource().getElement() doesn't work under Locker Service

I was trying to use standard ui:inputRadio with change="{!c.onRadio}" attribute, precisely as in the below example from documentation: https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/...
1
vote
0answers
159 views

Combination Chart (more than 1 measure) - Lightning Experience Dashboard

I would like to compare aggregates from different fields. Normalized Total Cost vs UnNormalized Total Cost. In classic I can add another column to compare the 2. However, in a Lightning Dashboard ...
2
votes
2answers
95 views

Unable to access Salesforce reports programatically when user is set to use use Lightning UI?

I've previously accessed Salesforce reports programatically using a .NET webRequest to the following end point: https://eu5.salesforce.com/00O24000003NIxf?export=1&enc=UTF-8&xf=csv Including ...
3
votes
1answer
393 views

Not being able to navigate from one lightning component to another

I have 3 components(I sincerely apologize for the extremely long code) The main Component <aura:component implements="force:appHostable,flexipage:availableForAllPageTypes"> <aura:...
2
votes
0answers
329 views

Lightning tab not loading and throws access check error for ltng:require ?

Since a couple patches ago, My lightning component has not been working correctly in a lightning tab. When I first open the browser, and I navigate to the tab containing my component for the first ...
11
votes
1answer
3k views

AuraClientService.postProcess: error in processing [RangeError: Maximum call stack size exceeded] - Client Side Action

I have a lightning component that is using ui:inputSelect. The component code: <div class="slds-form-element__control"> <ui:inputSelect class="slds-select" aura:...
5
votes
1answer
585 views

JQuery-UI and jQuery-DataTable compatibility with Lightning Locker Service

Is there any version of following libraries: jQuery-UI (https://jqueryui.com/) jquery-DataTable (https://datatables.net/) Bootstrap JS (http://getbootstrap.com/javascript/) That are compatible ...
4
votes
2answers
1k views

Apex Chart not rendered in Lightning Design System

I developed a really simple page where I have several apex bar charts, based on values calculated in an apex controller. Now, when I put the charts into a <div class="slds"></div>, the ...
5
votes
2answers
1k views

Uncaught TypeError: Cannot redefine property: title throws at …/aura_prod.js (Lightning Locker)

Lightning Locker seems to be causing major issues with the jQuery selector and find actions (and by extension most other jQuery functions). Certain errors were arising due to jQuery 2.1.4 that are ...
3
votes
0answers
120 views

Lightning Experience - Error on Standard Page Layout

I turned on Lightning for one of my customers. On a custom object page layout (view mode), I'm getting the following error: Uncaught Action failed: ui$inputSelect$controller$doInit [TypeError: ...
4
votes
2answers
3k views

Data binding for different attribute types in parent & child components under locker service

With a lack of documentation I'm trying to understand how data binding works under locker service, when using different types in <aura:attribute type="..."> to pass values between parent & ...
1
vote
1answer
2k views

Issue with event.currentTarget

I am running through a test project from trailhead. I am attempting to create a restaurant locator component. The issue is the iterator and clicking on an item to then remove or put back a class ...
0
votes
1answer
614 views

Salesforce custom SVG component showing background of icon but not image

I'm using this page to create my custom SVG component. However, the image background is showing up but not the icon inside the image. The SVG component is the exact same as on the page. I tried ...
1
vote
1answer
828 views

ContentNote with related Object

I am trying to do insertion with Salesforce Ligtning ContentNotes through Data Loader. How can I insert a ContentNote with related object? For example, I have a note 1 with Title: "Note 1" and ...
0
votes
2answers
62 views

Change related list in page layout

We need to know if is possible the following. We want to replace a related list to a Visualforce Page that we create. We want to change it in the page layout. Is it possible?
3
votes
1answer
440 views

Locker Service - something strange happens with attributes after calling component.set()

I'm working on making my lightning components compliant with Locker Service, and I see something strange happens with javascript variables after calling component.set() on them. A component is having ...
7
votes
2answers
2k views

Can't get event target data attribute when inside aura:if tag

I'm trying to get the value of a data attribute from a button calling a client side controller. However, when the button is inside an aura:if tag, it's not working: Component <aura:if isTrue="...
0
votes
2answers
455 views

Send push notification to mobile from lightning app

Is it possible to send a push message from a salesforce lightning app? For instance suppose a record has been created and I want a push notification in my mobile phone. I am fairly new at this and ...
2
votes
2answers
1k views

Lightning Component Issues: mutliple scripts not loaded, ltng:require afterScriptsLoaded function not firing

I have tried just about everything I can think of at this point. I am trying to load jQuery, and jQueryUI, and then define an accordion menu using jQueryUI. There are no issues shown in the ...
1
vote
1answer
282 views

Directly accessing a report in Lightning Experience

So in Salesforce Classic I'm able to directly download my reports as CSV by going to the following link: https://myorg.my.salesforce.com/?export=1&enc=UTF-8&xf=csv But in Lightning Experience,...
2
votes
2answers
2k views

SLDS css stylesheet not found

I'm doing Salesforce trailhead, Lightning Component Basics - Input Data Using Forms. I have a problem with SLDS static resource. Earlier, I had downloaded slds 2.0.2 (named it SLDS202). Inside ...
1
vote
2answers
4k views

How retreive the selected option for ui:inputSelect on component load?

I'm working on a lightning app with variety of questions that the user answers by selecting an option from a ui:inputSelect component and then saves their answers to a field on my object. I have save ...
4
votes
1answer
2k views

How to display fieldset fields in a 2 column fashion with Lightning DS?

I'm trying to use LDS to display some fields in a VF page. Most sections in this page display the data with 2 fields per row with its label like the pageBlockSection tags do. This page was a regular ...
3
votes
2answers
942 views

INVALID_CROSS_REFERENCE_KEY: No package named 'aura' found (Failed)

I am trying to work with Lightning Components in the Eclipse Force.com IDE. I add the AuraDefinitionBundle type in the package.xml file. I'm able to see all the Lightning components I created in the ...
5
votes
1answer
1k views

LockerService: Can't access the DOM of a component on the same namespace

(Original question after the line) After some further investigation, it looks like it becomes "SecureComponentRef" because the < th > is inside an aura:iteration, and the aura:iteration takes it ...
2
votes
3answers
2k views

Locker Service - Uncaught TypeError: Cannot read property 'expando' of undefined

Uncaught TypeError: Cannot redefine property: title throws at https://final-bugfix1-dev-ed.lightning.force.com/auraFW/javascript/dpJ3LUIaUXt-CtvrXqBcnQ/aura_prod.js:459:356 I have enabled Locker ...
1
vote
2answers
1k views

Lightning Component for specific Custom Object

I am trying to create lightning component which should be specific to one custom object record only. I added the component to Community Builder Custom object detail page. The problem I am facing is ...
6
votes
1answer
3k views

Cannot disable locker service for recently created Sandbox - Summer 16'

quick question - maybe somebody from SFDC team will be able to help me quicker than SFDC Support. I've recently moved lightning components into newly refreshed Sandboxes, and I don't have an option ...