Stack Exchange Network

Stack Exchange network consists of 174 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-components]

The Lightning Component framework is a UI framework for developing dynamic web apps for mobile and desktop devices. It’s a modern framework for building single-page applications engineered for growth.

15
votes
0answers
444 views

What can cause $A.createComponents to be slow?

Simple to ask, possible hard to answer. I have written a Lightning app to create forms which works a bit like the page builder in LEX itself. It saves the form description into JSON, and then ...
14
votes
0answers
853 views

Highcharts tooltip getting overlapped by graph when locker service is activated

I'm facing an issue where Highcharts tooltip is being overlapped by the graph itself. Please find the following image which depicts the same: When LS is active: When LS is deactivated (The scale of ...
12
votes
0answers
298 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 ...
9
votes
0answers
159 views

toLabel in @AuraEnabled Apex Lightning controller

The SOQL toLabel function doesn't work in my @AuraEnabled method when called from a Lightning component. UserInfo.getLanguage returns "fi" (for Finnish) but the Record Type Name field that's supposed ...
9
votes
0answers
351 views

Highcharts not being rendered in Microsoft Edge browser | Lightning component

I'm facing an issue where Highcharts report is not being loaded when opened using Microsoft edge browser. It's loading fine when opened using Google Chrome. Here's the code:- Component:- <aura:...
8
votes
0answers
208 views

Make custom, in-memory “Lightning Data Service” work

Lightning Data Service is great. Multiple components are magically linked to database records. When records change in the db component show that change. Imagine this to work without saving change to ...
7
votes
0answers
312 views

How to set attribute in the designer to a string-value which contains expression-tokens like “{!…}”?

I have defined a string attribute like <aura:attribute name="pageParams" type="String" default="" access="global" /> and in the design <design:attribute name="pageParams" label="Custom ...
7
votes
0answers
214 views

Spring 18 breaks overridden apex methods in lightning components

We have an overridden @auraEnabled method that returns an array of custom apex class objects with @auraEnabled get methods. This has worked since it was built. However, one of our customers just ...
7
votes
0answers
109 views

Is it possible to combine attribute updates into one re-rendering-cycle or defer re-rendering?

I have a component basically consisting of 8 <aura:iteration>s. For each <aura:iteration> I have a dedicated attribute. So 8 aura:attributes are controlling 8 iterators. The types of all ...
7
votes
0answers
879 views

Lightning Components: How to fix New Button in Related Lists of Visualforce Pages rendered insinde a Visualforce Component on a Flexipage

For Visualforce pages the Standard New-Button created by <apex:detail> doesn't work correctly inside Visualforce containers on Flexipages. Scenario: I've put a Standard Visualforce Component ...
7
votes
0answers
458 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 ...
6
votes
0answers
107 views

Debugging Lightning Components worse in Communities in Winter 19? [NoErrorObjectAvailable] Script error

Debugging little javascript errors has become a nightmare (again.. feel like this is how it was a year ago and earlier). Simple errors it seems, like referencing a controller method that does not ...
6
votes
0answers
270 views

'Script Error' in my Lightning Component?

I have a component: <aura:component controller="FileUploadController"> <ltng:require styles="{!join(',', $Resource.DropZone + '/basic.min.css', $...
6
votes
0answers
239 views

Always show more records in Lightning Experience for Related Lists?

In Aloha there was for Related Lists at the bottom a link to always show more records in related lists: We clicked this ALWAYS and either did it several times or hacked the url like this: rowsperlist=...
6
votes
0answers
263 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
390 views

Lightning List Builder - Need Working Example

I am trying to build a lightning component that includes a list builder. The example supplied does not work out of the box as it uses the depreciated svg component. There is no mention of the list ...
6
votes
0answers
362 views

Is the Standard Lightning Compo “Activities” programatically usable in custom Components or on visualforce pages?

In the Lightning App Builder used to arrange a Flexipage, the topmost Standard Components on the leftside panel is called Activities. Is this Component also available (or exposed) and usable in a ...
6
votes
0answers
289 views

Unable to add custom scroll due to “component/namespace encapsulation” when Locker Service is active

I'm unable to add custom scroll due to the component/namespace encapsulation when locker service is activated in Salesforce1 app. Since the Scrollable is still not compatible with Salesforce1 app, and ...
6
votes
0answers
447 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
481 views

lightning:textarea | Scroll not working when the content exceeds the container height in Salesforce1 | Winter '17

I'm facing an issue where scroll is not working in one of the newly released Lightning Base Component in the Winter '17 namely lightning:textarea. The cursor even moves out of the textarea when tried ...
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
35 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
48 views

How to handle percentage factor of 100 problems when using lightning:input and lightning:datatable?

When working on a bug, I just noticed that lighting:input now supports two percentage formatters, where the older one percent expects the user to know to enter e.g. 0.5 for 50%: <lightning:input ...
5
votes
0answers
38 views

How can I create an example component for AuraDoc which does not appear in the component library?

As I was playing around with the Lightning Component's documentation I saw that in order to display an example, I need to provide a reference to an actual example, but I haven't figured any possible ...
5
votes
0answers
95 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
67 views

Is it possible to call REST api from lightning:container

I'm seeing conflicting information: On one hand, the lightning:container docs state that you can use this npm package to get a REST Session Key. On the other hand, the spring 18 release notes say ...
5
votes
0answers
105 views

Is User Interface API accessible via JS from a Helper of a Lightning Component?

Can we use the UI API in Lightning Components directly from within a Helper JS? https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started.htm I've just read the docs and ...
5
votes
0answers
211 views

lightning:input behaves strangely with Non-US(german/french) locale

In my app there are many users with a German or French locale. Both have in common that they use comma as decimal separator (opposed to Apex, JS and US-citizens which use a dot .) The dot instead is ...
5
votes
0answers
89 views

Component.set(v.body) not clearing existing components

I’m trying to create a Component (B) inside another component (A) dynamically. Initially the child component (B) loads the script. In the child component (B) button click I’m clearing the existing ...
5
votes
0answers
38 views

Impossible to navigate to a related contentNote in custom Lightning component

I'm building a 'simple' component that displays a list of notes related to a collaborationGroup. Basic functionality works. I am unable to make the note title into a link, and just discovered tha ...
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
308 views

Lightning component error handleOnBlur event

I have an iteration on a component with an ui:inputNumber inside, which has an onchange event that calls a server side action. If after i change the value, i click on an input after the onchange is ...
5
votes
0answers
951 views

Error occurs on lightning:recordViewForm

I have a simple component which uses lightning:recordViewForm My component loads fine with proper data, however I am getting this error: Action failed: lightning:recordViewForm$controller$...
5
votes
0answers
326 views

d3.js in Lightning Component - TypeError: cannot use the given object as a weak map key throws in Firefox

this error appears in Firefox (56.0) when trying to run (d3.js v4): svg = svg.call(d3.zoom().on("zoom", zoomed)).append("g"); or .call(d3.drag()... in Lightning component. error: TypeError: ...
5
votes
0answers
350 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
196 views

Dynamically created selectOptions not appearing in dynamically created inputSelect from FieldSet

I'm creating components from a fieldset, which means determining that a field in the set is a picklist in real time, then creating that inputSelect dynamically, and then creating the ...
5
votes
0answers
279 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
237 views

How to use lightning:input (Beta) for percentages that such a 12.3456%?

The lightning:input (Beta) documentation suggests using this markup for percentage input: <lightning:input type="number" name="percentVal" label="Enter a percentage value" ...
5
votes
0answers
168 views

Using abstract component to iterate sub-component - how to correctly bind state?

I have this idea for a generic component that would allow adding, deleting and copying entries in the form - abstract component handles adding, cloning, etc, while your main component holds actual ...
5
votes
0answers
571 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
124 views

Lightning Components - NavigateToComponent with javascript bug

I'm making an app with Lightning Components, and i'm using the navigateToComponent event. It's working fine, allows me to navigate from one component to another, problem is: - When i navigate to ...
5
votes
0answers
333 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
286 views

Can we detect context inside a Lightning Component which has implemented 'force:lightningQuickAction' interface?

While working on a Lightning Component that can be invoked inside a Lightning Record Home Page as well as Quick Actions. But I need to present different User interface in both context of the component....
5
votes
0answers
2k 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
335 views

Is it possible to pass parameter between napili template built with lightning component

I am working on napili community template pages built with lightning components. There is a requirement to pass value from a lightning component in page 1 to a lightning component in page 2.. I ...
5
votes
0answers
884 views

ui:inputDate and SLDS

The SLDS date picker depicted here looks lovely: https://www.lightningdesignsystem.com/components/datepickers/ The stock ui:inputDate is very functional and I like how it falls back to native date ...
4
votes
0answers
83 views

Lightning component override for standard new button not always getting called

This may not be the best place to post this, but since Salesforce partner support has refused to look at the issue, saying it’s a developer issue that requires premier support, I’m posting here to see ...
4
votes
0answers
45 views

How can I manage lightning components' navigation-related caching

This is related to this question: Navigation in Desktop Lightning Experience not Destroying Components My components are listening to the force:refreshView event, but since the components are cached ...
4
votes
0answers
336 views

Detecting Data Changes with lightning:recordform

how can one bind onchange event handlers to the fields of the lightning:recordform component? component.cmp <aura:attribute name="fieldsArray" type="String[]" default="['Subject','...