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.

0
votes
1answer
14 views

Lightning events doesn't communicate data change to apex controller

ToDoItem lightning component displays list of ToDos based on the picklist field called "Insurance Type". I am trying to make sure it reflects the right data in the component whenever user change the ...
1
vote
2answers
371 views

Simple Popover Example Causing: “Cannot read property 'na' of undefined”

I'm trying to get the popover example from the Salesforce documentation working and it's giving me an interupt error with "Cannot read property 'na' of undefined" message. All I have done is copy ...
2
votes
0answers
48 views

Page break CSS not working in lightning LWC Salesforce

I am trying to do page break in LWC. But it is not working. Below is the code . How to do page break in lightning while printing the page to pdf. <template> <div>First Page</div> ...
0
votes
0answers
4 views

Flow not able to view screen

I have a custom lightning component embeded in a flow, however I am not able to view the screen. The flow goes infinite spinner. On the flow builder I am getting warning that this flow needs ...
0
votes
2answers
259 views

Select2 JQuery onChange disable Button

I am using select2 JQuery in my lightning component and i have to disable button on this component once all values are selected. below is sample Code. MarkUp <aura:component controller="...
0
votes
0answers
16 views

Disable checkbox in lightning:datatable

Below is my lightning datatable <lightning:datatable columns="{!v.myclmns}" data="{!v.mydata}" keyField="id" ...
6
votes
1answer
424 views

Binding behaviour on lightning components with ui:inputText/Checkbox components

I'm currently building a lightning component for a community builder portal. The whole series of components is reasonably complex but nothing extreme (it's a wizard). To make things easier I'm using ...
0
votes
1answer
30 views

Unable to Change/Add CSS in lightning:tab

Trying to add css class in lightning:tab, but always getting the aura:id value as undefind, I am trying to load my third tab as red in color onload of the component. here is the component <...
0
votes
0answers
22 views

Access Check Failed! AttributeSet.get(): attribute 'loadMoreStatus' Error after spring 19 release

Receiving below errors from javascript once i click 'view more' on related list Access Check Failed! AttributeSet.get(): attribute 'loadMoreStatus' of component 'markup://c:RelatedListWindow {6525:0}'...
0
votes
0answers
13 views

How to disable the blue border around all the element after selecting a time in lightning:input of type datetime?

I have a lightning:input of type datetime When I select a date it's ok, but when I select a time, after selecting during this "click" it's showing like a blue border around all the element. I know ...
1
vote
2answers
505 views

inputSelect does not update with component.set

I'm struggling once again with simple lightning component behaviour. This time with the ui:inputSelect component. I load the list dynamically like here below: <ui:inputSelect label="Expense Sub-...
0
votes
0answers
24 views

Is it possible to “find” an aura:id within an aura:id?

I have a component where I am building a lightning:recordEditForm using fields based on a different field sets that looks a little something like this: <aura:component> <aura:attribute ...
3
votes
2answers
3k views

lightning:datatable component - hiding Save and Cancel buttons after inline edit

I've been testing out the new inline edit feature for the lightning:datatable component in a Summer '18 sandbox, but I can't seem to work out how to hide the Save and Cancel buttons after I complete ...
0
votes
0answers
17 views

Unable to send file blobs to specific Salesforce Lightning folders for testing

I recently developed a script that could integrate with Salesforce and move documents via file blobs to individual Salesforce folders but with our organizations recent migration to Salesforce ...
1
vote
1answer
353 views

Lightning Component Preview and App Builder “Down for Maintenance”

When I click the preview button for any lightning component in my sandbox I get a page which says We are down for maintenance. Sorry for the inconvenience. We'll be back shortly. This also ...
0
votes
1answer
22 views

Set selected value of ui:inputselect based on ui:checkbox dynamically

I have a ui:checkbox and ui:inputSelect properties on lightning component. <ui:inputCheckbox aura:id="setColor" label="Set Color" change="{!c.onSetColor}" /> <ui:inputSelect aura:id="colors"...
0
votes
0answers
10 views

Bucket group column to show zero values

I am creating a report in lightning and I am using bucketed fields to group rows/columns. In my situation, I want to show record count as 0 when buckets don't have any matching values in my report. ...
0
votes
0answers
13 views

Cannot get session id in lightning component

I am trying to call a REST api from lightning, however i am getting 401, Unauthorized error. I know this question has been asked previously, but the solution they offered was to use a visualforce ...
2
votes
3answers
258 views

How to make Filtered Subscriptions work for empAPI and Push Topics?

I have a very simple component: PushTopicTest.cmp <aura:component implements="flexipage:availableForAllPageTypes" access="global"> <lightning:empApi aura:id="empApi"/> <aura:...
4
votes
2answers
552 views

Lightning:overLayLibrary issue Uncaught (in promise) TypeError: Cannot read property 'la' of undefined

trying to implement the Modal using Lightning:overLayLibrary as per this link lightningOverlayLibrary i am facing the below issue Uncaught (in promise) TypeError: Cannot read property 'la' of ...
0
votes
1answer
35 views

Superbadge Lightning Reports & Dashboard - Status Reports Subfolder

I am doing the Lightning Reports and Dashboards Superbadge and I have created all the folders I have created the subfolder: Status Reports within the SolarBot Support Reports folder but Salesforce ...
0
votes
1answer
54 views

Salesforce Lightnining unable to see full values in UI Picklist

In Salesforce Lightning Experience, whenever I have a 'Classic view' picklist, when I click on the picklist to choose a value, I am unable to view the select options: If i minimize my browser window ...
0
votes
1answer
15 views

Email to Case Enabling

My org doesn't have email to case enabled and currently Form Assembly is being used to capture cases from our company's website into salesforce. There's a requirement where service cloud end users ...
1
vote
2answers
265 views

Does domain name change on salesforce new release

Does domain name change on salesforce new release. For example, currently we have following domain name: test--PCSandbox.cs12.my.salesforce.com. In the new Salesforce release, will the domain name get ...
2
votes
5answers
8k views

Use lightning:recordEditForm to add a record

I am trying to use lightning:recordEditForm to add a record to the Contact object but cannot. I use the code as given in the documentation: <aura:component> <lightning:recordEditForm ...
0
votes
1answer
34 views

NavigatetoURL Community Article Page

How does navigatetoURL works in community Page.We have built a custom lightning component to display list of articles .TO redirect the article to the article page how to does navogatetoURL works in ...
0
votes
0answers
17 views

How to delete recurring events using Apex?

As of now, there is no way to find all the recurring events that are created in one shot. For Example: If I create recurring event for next 10 days, How do we get these specific 10 events in Apex?. ...
0
votes
1answer
37 views

How to show an outside page into Salesforce

I am new to Salesforce and I am trying to show an outside page into Salesforce. I thought about making a lightning web component and using an iframe to include the page. Is this possible? Are there ...
1
vote
1answer
473 views

visualforce page with apex:enhancedList alternative in Lightning

According to Unsupported Visualforce Components, I cannot use the <apex:enhancedList> tag in lightning, so the following page will not work: <apex:page > <apex:enhancedList type="...
3
votes
3answers
1k views

Pagereference not working in Lightning

I have a Detail page button (VF page) and controller for it. I used Pagereferenc method to take user to the record details page: However, it works fine in the Classic, but not in Lightning. ...
0
votes
1answer
29 views

Identify logged user details inside a lightning component

Is there any way to get the logged user information inside a lightning component? The lightning component displays an Iframe and I want
1
vote
0answers
31 views

Is there a way to prevent navigation from standard new record page after save

I have a Lightning web component that uses Navigation Mixin to show create new record page for a custom object. I am using the following function for this. this[NavigationMixin.Navigate]({ ...
0
votes
0answers
16 views

Cloud Flow Designer - Screen - Lightning Component - Input Output Screen

PICTURES Component Markup Design Attribute Screen Element Entire Flow I am building a flow which takes user input and then process further. I am not able to get aura attribute of the Lightning ...
0
votes
0answers
11 views

Unable to remove a component from salesforce case page editor

I created a lightening component, added to the case detail page in salesforce, but now i am unable to delete it. The delete button on the top right corner of the widget is disabled. But i am able to ...
0
votes
1answer
23 views

Submit Record Edit Form for every object in Aura iteration

I have a Contact object form with a child form component for Buying Center objects. When I upsert the Contact, I need to submit a list of Buying Centers for this Contact. Parent Contact component has ...
0
votes
1answer
23 views

lightning:checkboxGroup: How to identify the name value of the selected record

I have aura List attribute which has the values from the custom settings. I am trying to find the all the value of that list attribute by passing the Key value of the selected record. I am not sure ...
5
votes
1answer
511 views

Can Lightning WorkspaceAPI be used to Open tabs in Visualforce Pages?

Can Lightning WorkspaceAPI be used to Open tabs in Visualforce Pages? I have a custom console app that incorporates the integration toolkit function for opening tabs/subtabs involving multiple ...
0
votes
0answers
17 views

Does response.getReturnValue(); terminates the execution of controller function?

I am trying to get an attribute set to the value returned on using response.getReturnValue(); and a thereafter a Boolean checked to true in a controller function. This save function saves the record ...
1
vote
1answer
95 views

Parse JSON in LWC

I'm getting a JSON response as follows :- tthis.selectedRecord {"Id":"01t5C000002xxx","Name":"xxxES"},wanted to know how do i get the value of ID & Name separately.
0
votes
0answers
12 views

Pass parameter from modal popup to the parent lightning component which initiated

We have a requirement where in there is a button on the lightning component. On click of the button , a popup opens with list of records from an object. On choosing a record and closing the modal, ...
2
votes
3answers
372 views

lightning:Map component not loading in communities after Spring 19

I have created a lightning component which host the code for lightning:Map. The component is loading fine in Salesforce but in Communities, I am having the following error: Access to resources ...
0
votes
0answers
15 views

Lightning:CheckboxGroup how to default as checked

I have a lightning component called "TodoItem" which lists the TO-DOs for the user to go through based on the picklist field "Insurance Type". I was able to acheieve this through custom settings. I ...
6
votes
0answers
100 views
+50

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/...
13
votes
1answer
334 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 ...
0
votes
1answer
614 views

How to remove error messages from lightning:input?

I Created a component which consists of a form with a group of fields. The form contains 5 fields. Out of 5 fields, 4 are mandatory. If the user clicks on the save button without entering data into ...
0
votes
0answers
12 views

Lightning component - Event bubbling in source component

I am new to salesforce lightning component creation. i was going through the Aura developer guide and for inter-component interaction, i found that when a event is fired, source component can handle ...
1
vote
1answer
544 views

How to implement Custom Home Dashboard using Chart.Js in Lightning

We have to pull Reports and Dashboard on the Home Page of Lightning, I know we have to use Reports and Dashboards Metadata API and Chart.Js, However I'm struggling to understand it's design
0
votes
1answer
522 views

Error connecting to SAP oData Service using Lightning Connect

We created an external data source using Lightning connect for oData 2.0 to our SAP Gateway System. We use a reverse proxy that allows access from the cloud. However we get the error "The external ...
-1
votes
1answer
30 views

UserInfo.getUiThemeDisplayed returns Theme4t in in mobile and no useful theme information

I know that I can use UserInfo.getUiThemeDisplayed() to get the current theme displayed to the user. This works in lightning and classic. However when I am in mobile mode, I just get "Theme4t" (as ...
0
votes
0answers
11 views

Add lightning rich text toolbar buttons from css

How can I use css to add toolbar buttons to the lightning:inputRichText editor? When I used css to modify the height of the editor window, I lost the color button from the toolbar. I was able to get ...