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
2answers
8k views

Difference between lightning and ui tags

I've begun to work on lightning component last days ago and I wonder why two different tags exist for the same things. For example, what is the different between lightning:select and ui:inputSelect? ...
1
vote
4answers
2k views

Calling a component method from another component: Lightning aura:event not firing

I have two Components ComponentA, and ComponentB, I have an Event, I have put my component in my App. Like below App: <aura:application > <ComponentA /> <ComponentB ...
0
votes
1answer
474 views

Object tab icon is not visible in vf page in lightning mode

I have a vf page as shown below. In classic mode, apex:sectionHeader is showing tab icon for the Student__c object, but the same thing doesn't show icon in lightning mode. Please suggest some ...
0
votes
0answers
31 views

My LWC is not calling my Apex method

I created a LWC that calls an apex method from an apex class. The LWC is inside an aura component that is being used as a quick action to create a new record on another object based on the data from ...
1
vote
0answers
13 views

lwc getFieldValue from a custom object

I am creating a LWC that handles data from an external object. I have access to the recordId through @api recordId;, but I need to get the externalId from this object as well. Currently, I have call ...
0
votes
0answers
26 views

Dependency check of lightning application

I have to create package.xml for a custom lighting application and then I have to retrieve all metadata which is related to the app. For that I have to understand the dependencies. How can I check ...
3
votes
3answers
89 views

Not able to add dynamic style based on device

I am trying to add dynamic style one of lightning layout, the code goes till the device identification yet it doesn't apply the proper style. Here is my code:- <lightning:layout aura:id="...
0
votes
1answer
14 views

Activity Tab Missing in Record page-Lighting

Activity tab is missing in lightning record page. And as a system admin i am able to see the tab (record page is same ) . Checked the 'Activity Time line' for the record page and this is already ...
0
votes
3answers
19 views

Change Quick Link FIelds on Account Record

When I'm in the Account record, I hover over the related Contacts in the "Quick Links" view. Is there a way to change which fields appear when I hover? I'm not finding anything obvious in Object ...
1
vote
2answers
48 views

Problem inserting LWC to display Account data using wire APEX method

Created a LWC to display Account Record data using the APEX wire method, after pushing the code to the scratch org, unable to add the LWC onto the record page as unable to open the 'Account's record ...
1
vote
2answers
6k views

List view for custom lightning component

Is there a way to use list view widget in custom components with all same functions as on record tabs. To create new list view Edit list view. Planning to build a console on custom object, ...
0
votes
0answers
20 views

Multi-Lookup fields - set default Object

In Duplicate Record Item Object we have RecordId field in which we can select the entity and then a record from the selected Entity. This one defaults one object, can we somehow change the default ...
6
votes
1answer
61 views

Basic Question about @track decorator

I have a (probably very) basic question about @track decorator. I modified the helloExpressions LW Component from Sample Gallery as below. Here the values FirstName and lastName are no longer ...
0
votes
1answer
483 views

Remove white space when using conditional rendering on Visualforce component in Lightning view

I can't get rid of the white space above the Visualforce page that is embedded on my page layout. The Visualforce markup has conditional rendering depending on the user's display theme. The whitespace ...
1
vote
1answer
409 views

Lightning Out session expired from external page

We are integrating a lightning out component into an external web page. We are using the the user agent style of oauth authentication.The component seems to work fine, however after an hour of non-use ...
1
vote
1answer
487 views

show error message after delay in lightning

Here is the situation. I have a @Future method which has callouts is running along side of actual main CLASS. in the callout response, I am receiving some error/success XML, I am saving them in a ...
0
votes
0answers
13 views

Unable to setup Einstein Bot in my enterprise edition

I have a enterprise edition with required licences for Einstein bots but I can't see the "Einstein bots" in the setup. In the documentation, it says I need the "Service Cloud" license and the "Chat ...
1
vote
1answer
44 views

Unable to deploy source to dev-hub enabled org

as part of doing Push and Deploy Lightning Web Component trail (https://trailhead.salesforce.com/content/learn/modules/lightning-web-components-basics/push-lightning-web-component-files), I have been ...
14
votes
1answer
377 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 ...
2
votes
1answer
747 views

How to pass @api property from one lwc to another lightning web component

I have three lightning web components.and i plug two component in one parent component and i want value from one of the plugged component to another component. I have following parent component ...
2
votes
3answers
2k views

Binding a click event to document Lightning Component

I am using SLDS Picklist in Aura Component, I am trying to close the picklist when user clicked outside the picklist. I am trying to bind a click event to document and call the action to close the ...
0
votes
0answers
20 views

Lightning salesconsole org started throwing error from today : [NoErrorObjectAvailable] Script error

From today morning we started recieving this error in our salesforce lightning console. The error stacktrace says : a()@https://hcscace--****.lightning.force.com/auraFW/javascript/...
4
votes
1answer
396 views

Problems passing array custom object through Lightning components

We are now starting moving our application to Lightning by re-writing it. We are facing some problems during the process and the one which is now blocking us is the following. We have one component ...
0
votes
1answer
47 views

Canvas App in New Window from Lightning Component

I have a Canvas App in a Lightning Component that I'd like to display in a Modal/Overlay when a User clicks on a button (within a different Lightning Component). The Canvas App component uses the ...
1
vote
1answer
19 views

Send an Email on Contacts

I am using Enhanced Emails. My use case is as follows: When on the contact record, if the user clicks the send email button, they can send the email, and the "Related to:" field is filled out with ...
0
votes
1answer
26 views

Dynamic expression in nested aura iteration in Salesforce Lightning

I've two objects: listContent: [{'Id':1,'Name':'SF'},{'Id':2,'Name':'DS'}] fields:['Id','Name'] Now I'm using nested aura iteration to display the listContent as shown below: <aura:iteration ...
1
vote
1answer
404 views

Winter '18 - Is it now possible in LEX to add mass action buttons to invoke Lightning components?

With Winter '18 SF has added checkboxes to object lists in LEX, with some built in mass actions. Is it now possible to add a mass action to invoke a custom Lightning Component from the same list? I'...
0
votes
1answer
627 views

Showing Infinite scrolling in DataTable

I want to show the lightning datatable in modal and when user will scroll it will show more records after the spinner. I don't want to call server side controller every time so i tried to implement ...
0
votes
2answers
25 views

how to display pricebook record type on pricebook list view [closed]

How can i display the record type on the list view of the pricebook object. please help me to show the record type on the list view
1
vote
1answer
362 views

Find value of div inside aura iteration on icon click!

I am trying to find the value of a div which is inside aura iteration on icon click which is also inside the same aura iteration. Here in this code below I am trying to find the value of the aura:id=...
0
votes
1answer
25 views

How to pass the index values of lightning:select into javascript?

how to pass the index values from lightning:select to javascript onchange event occurs. please help anyone ...
0
votes
1answer
493 views

Override 'New Product' on Opportunity doesn't work in Lightning Experience

We are overriding our standard 'Add Product' button on Opportunity in Classic to redirect to a Visualforce page. Works fine there. When migrating to LEX, we are seeing that this action is unavailable. ...
1
vote
1answer
31 views

Formula field with BR() function in lightning calendar

I created a formula field to show two field values but in separate line. Here is the formula field with BR() function Field1& BR() & Field2. I created a calendar for a user and It is coming in ...
3
votes
1answer
30 views

Lightning components inside Salesforce Mobile SDK

I am pretty new to mobile Development, so i have started with this Trail and created hybrid_remote app. Everything works great as i could able to access the data trough VF page. Then I wanted to ...
0
votes
1answer
20 views

Checkbox misaligned in mobile view

I have a table which I am showing stacked in the mobile view. I have a checkbox input to show an indicator, it looks alright in desktop view, however gets misaligned in the mobile view. I have tried ...
0
votes
0answers
20 views

Salesforce activity timeline vertical line gone

Develop console preview by application the vertical line is working. But add this component to page layout that vertical line gone.
0
votes
1answer
24 views

Salesforce Files Settings - Expected Behavior?

We were looking to migrate to Files as a first step to prep for a Lightning migration and noticed a potential useful setting: "Files uploaded to the Attachments related list on records are uploaded ...
1
vote
3answers
62 views

Success Message on record save in lightning component

I have a lightning component embedded in a VF page. This component has a custom lookup to select an Opportunity , on click of a save button calls a method in helper.js which calls an apex method, does ...
1
vote
0answers
15 views

How do I add a Gauge to a Lightning Web Component using Gauge.js?

I'm trying to add a Gauge using the Gauge.js plugin. I've seen elsewhere on the Exchange that this library is compatible with the Locker Service so I'm not sure if the issue is stemming from there. (...
0
votes
2answers
106 views

Dynamically change color of text/numbers in LWC?

I want to change values of text/numbers dynamically depending upon certain conditions. (3 colors - Red, Yellow, Green) So like depending upon value of numbers (like if its greater than 10 i want to ...
-1
votes
0answers
16 views

How to redirect from one lightning page to another lightning page record type selection page with pre poulating the lookups [closed]

I'm working on migrating list button(onclick javascript ) to quick action.I have fetched the necessary parameters.I know how to redirect in classic ui. Can anyone please guide me here to redirect in ...
2
votes
1answer
32 views

lightning-input type=“date” does not open date picker on focus() method

When the focus() method is called on lightning-input type="date". it's not opening the date picker but its set the focus on input. Even tried with click() method. If user clicks on input then it will ...
0
votes
0answers
11 views

Lightning Record View Form Cache issue

after modifying some data and clicking the save button it will redirect to view layout , but its showing the old data not the updated values. <template> <lightning-card> <template ...
0
votes
0answers
8 views

How to display different dashboards on click of a button in on lightning community home page?

I need to display different dashboard on click of a button on the lightning community home page.Is there any option to load lightning dashboard in aura component. Suppose if i click on records then ...
6
votes
2answers
460 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"> <...
1
vote
2answers
23 views

Create a custom button for Price book

I am trying to create a custom button in the Price Book layout. The problem is that when i go to Object Manager->Price book i cannot see the menu "Buttons, Links, and Actions" for Price Book, but for ...
0
votes
0answers
24 views

Assign value to column in lightning:datatable

I am new to Salesforce and lightning development and I would like to know, how should I assign values such as actor name, status etc. from the query given below to the columns in lightning data table. ...
0
votes
2answers
22 views

How do I put my card lightning component side by side? It is repeated by an aura iteration [closed]

How do I put my card lightning component side by side? It is repeated by an aura iteration As shown below
0
votes
1answer
414 views

In lightning - Record edit on save loops when standard(contact) edit button is overriden with visualforce page

Steps to reproduce: 1) Create a VF page with below code and override Contact Edit button with this visualforce page. <apex:page standardController="Contact" action="{!URLFOR($Action.Contact.Edit,...
1
vote
0answers
20 views

ActionHub (Mass Edit + Mass Update + Mass Delete) Lightning Customization?

We are currently migrating from Classic to Lightning. Our ActionHub Mass Edit + Mass Update + Mass Delete AppExchange package customizations rely on copy/paste of JavaScript for unincluded default ...