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.

Filter by
Sorted by
Tagged with
9
votes
1answer
12k views

How to add custom button to Lightning layout

I have custom button that runs some javascript code, I added it to page layout in Salesforce classic. But when I switch to lightning, on record page my button is missing. I tried creating custom ...
0
votes
1answer
2k views

How Can I Add Column Resizing to Lightning Design System Data Table?

I am working to build a Lightning Design System data table. I will have several columns that will push the width of the table body beyond a normal screen width. Therefore, I want to add column ...
1
vote
0answers
91 views

How to save page state in Community Builder?

How to save page state in Community Builder? I need to navigate from Page A(Component A) to Page B(Component B) (and vice versa) and save page field values. Or better solution will be navigate between ...
5
votes
3answers
3k views

component.get(v.body) not working as expected

As per the doc: The root-level tag of every component is aura:component. Every component inherits the body attribute from <aura:component>. The body attribute has type Aura.Component[]. ...
6
votes
1answer
2k views

How to add chatter on home page in lightning

I want add feed and groups on my lightning home page for logged in user i.e chatter functionality on home page. I have tried to get chatter on home page by adding VF Page But we get only feeds ...
4
votes
1answer
541 views

Lightning Components in Visualforce - datepicker, icon style inconsistency

Based on trailhead module or documentation: Lightning Components Basics Trailhead Module Lightning Components Developer Guide I have added lightning component to visualforce page: $Lightning.use("c:...
10
votes
1answer
21k views

Use of setCallBack() in Lightning

I am new to Lightning and I am completing Lightning Components Developer Guide. Here, in client-side controller, there is a method 'setCallBack()' used to call the method in server-side controller. I ...
2
votes
1answer
5k views

“No COMPONENT named markup://aura:method found” when saving component

I get the error message "No COMPONENT named markup://aura:method found" when saving the following component. I attempted to add a simple <aura:method></aura:method> ...
3
votes
1answer
685 views

Aura iteration over array of objects accessing key values

I am using aura:iteration to iterate and show images on my lightning component. Which looks like below: <aura:iteration items="{!v.Assets}" var="asset"> <img src="{!asset.asset-url}"/> &...
1
vote
3answers
3k views

Add multiple rows in Lightning component

I am new to lightning. I have one requirement and I am not sure how to achieve it. any help is appreciated. Requirement is : we have to build custom lightning component, where in user will key in few ...
3
votes
1answer
7k views

Lightning Component retrieving text value

I've been working with a Lightning component that has me confounded. I have found a workaround for this issue temporarily, but I'd really like to figure out what is wrong here. Here is the component ...
1
vote
1answer
976 views

Embedding Tweet on Lightning Component

I am trying to embed a single tweet into a lightning component. I have a static resource to load the widget.js file of twitter. On my cmp file, Please see sample code below: //cmp file the script is ...
1
vote
2answers
343 views

Is it possible to detect that an org has lightning enabled through any available API?

So far as I've searched, this isn't possible, but any suggestions would be appreciated. I'd like to be able to link to an organization's Storage Usage screen from the UI of my external application, ...
3
votes
1answer
614 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
6k 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
644 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
94 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
1answer
1k 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
559 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
630 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
480 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
103 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
769 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
964 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
206 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
175 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 ...
2
votes
1answer
422 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
339 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 ...
10
votes
1answer
4k 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
591 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
128 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
623 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
898 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
66 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
442 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 ...