The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
0
votes
1answer
25 views

In Lightning: Record Edit modal box is not opening for first time [using $A.get(“e.force:navigateToURL”);]

I've created a lightning component in which a Case record will get create automatically(using force:recordData) from account and contact. Once the record gets created at the backend I need to redirect ...
0
votes
1answer
13 views

How to change UI Button label in controller?

It's sound simple but I'm going nuts here, and I'm simple trying to change the label name in the controller.js file Here is what I'm doing here, any help? Component: <ui:button aura:id = "Btn1" ...
0
votes
1answer
6 views

Use Flow and Action (Create a Record) to Conditionally Create Opportunity From Account

Scenario - I currently have an Action that can be clicked on the Account page to create a pre-populated Opportunity. Now I want to use Flow (specifically a decision), to build a Flow Button (Button ...
0
votes
0answers
7 views

failed to save: asset file cannot be found in namespace

I'm trying to use the $ContentAsset value provider, and have successfully done so in one Sandbox using zip files. When I attempt to duplicate it in another sandbox, however, I get this error: Failed ...
0
votes
1answer
14 views

Navigate to differents tabs on recordPage

I want navigate to diffents tabs of a record. I need 3buttons for navigate to opportunity: Navigate to Activity tab (default tab of flexipage) Navigate to Chatter tab - Activity Navigate to Details ...
0
votes
1answer
15 views

In the dynamic table, how do you dynamically set the value for each row's inputSelect?

These problems have plagued me too much time. Maybe my implementation method is problematic. Is there a better way? Ask a friend to help me. Question 1: When I get each row value in a dynamic table, ...
0
votes
0answers
10 views

Lightning Component to show User names as per hierarchy model [on hold]

We have a requirement to show users in a hierarchy in custom lightning component framework. Can you please help in showing how to achieve this? So, it should look like a Country manager when clicks on ...
0
votes
0answers
23 views

How to use nodejs in an extensive way with salesforce LWC?

I want to install some NodeJs applications such as webrtc, quagga using nodejs in LWC. After installing the applications in force-app\main\default\lwc\lwcQRcodeScanner, it creates a package.xml in /...
0
votes
0answers
12 views

How to use a Button to download a file in lightning?

I have an Excel/pdf file stored in the files section of Lightning. I would like to create a Button on a Custom object so that when any user clicks the button it downloads that file. How do I do this?...
-1
votes
0answers
8 views

why Upload File Freeze for all lighning users?

Cant upload files from lightning with an administrator, i can from classic mode. Get freeze, without any error. Any ideas? I already open a case but this its urgent =(
0
votes
0answers
12 views

Render DesignAttribute configuration by visualforce page (LightningOut)

Hi I have a lightning component with design attributes. I want to render this component in salesforce classic view. So I have created a visualforce page and embedded the lightning component using ...
0
votes
0answers
31 views

Lightning Web Component Deployment Error!

Getting below error while creating the JS file for the Lightning Web Component "Hello World" Below Code for the JS File : import {LightningElement, track }from 'lwc'; export default class ...
0
votes
0answers
5 views

Live data sync in Lightning Communities

I have a custom community pages which is showing some content based on Account Status. I need to update this section in my custom community page based on any server update on the account status field ...
0
votes
0answers
10 views

Solutions to Knowledge Issue

I've formatted my Solutions articles to fit the Knowledge fields and rich-text fields, downloaded and enter the correct parameter for my .property file and I keep getting an error of: The ....
0
votes
1answer
13 views

Open child component from parent on the same page

I've made two components: Is the main component. We chose value and based on that value, must be opened 2nd component.(parent) 2nd component (child) I would like do the following (step by step): ...
0
votes
1answer
23 views

How can I validate date in LWC datapicker - lightning-input-field component

How can I validate and set max date - which can't be a future date in new LWC syntax <lightning-input-field variant="label-hidden" field-name="Date_of_Birth"></lightning-input-field> I ...
0
votes
0answers
15 views

Handle Success and Error of multiple lightning:recordEditForm form submit

I have multiple lightning:recordEditForm in a lightning component. I have created a single button to submit all those forms. Using the following code. component.find("recordViewForm").forEach( form =&...
0
votes
0answers
14 views

Navigation inside a Utility Bar item

I'm implementing a component that has a button and when it is pressed, navigation to another component should happen. This component is placed in a utility bar item and navigation to another ...
0
votes
0answers
13 views

HELP to convert onclick javascript to visualforce page in lightning [on hold]

{!REQUIRESCRIPT("/soap/ajax/14.0/connection.js")} {!REQUIRESCRIPT("/soap/ajax/14.0/apex.js")} var win = window.open('/apex/xxxx?id={!Bb__c.Id}&retURL=/apex/ForceWindowClose', 'Popup Name' ,"...
0
votes
0answers
8 views

Lightning Data Table

In Lightning datatable border is not showing in columns after scrollable. <div class="slds-border_left slds-border_right slds-border_bottom slds-scrollable" style="height:37rem" ondblclick="{!c....
0
votes
0answers
11 views

Same file is getting attached “ total number of file times” through when i try to attach multiple file in SFDC lightning “KIndly assist”

Controller: handleSave: function(component, event, helper) { if (component.find("fuploader").get("v.files").length > 0) { helper.uploadHelper(component, event); } else {...
0
votes
1answer
38 views

Lightning Component, How to get the click event of each row of the table?

If the table has only one line, the annotated code can execute smoothly because I am using the static aura:id="parentField", but when I click on [+], the first line is copied and pasted to the second ...
0
votes
0answers
11 views

How to create Dynamic Column Header for Lightning Data Table?

I have some data bring into Salesforce using integration. Can not create Custom report based on the requirement. I choose to go with Lightning Page. Data Points Example: Last Month, 2 Months Ago, 3 ...
1
vote
0answers
21 views

Lightning Visualforce

I have a Visualforce page in Lightning it works as expected. In the Visual Force Page I have a custom button that redirects a user to a standard page for edit. After the user clicks Save I dont want ...
2
votes
0answers
19 views

How to refresh record page when related objects are created

When a user adds a related object on a contact you can see the newly added record instantly. However in a trigger we add another related object to the contact (an Opportunity) and to see this newly ...
1
vote
1answer
34 views

Salesforce Lightning Web Component URL [on hold]

How can you pass parameters to a Salesforce Lightning Web Component using a URL?
-2
votes
2answers
41 views

To fetch list of Sobject in lightning component and display it in dropdown list [on hold]

Hi all I am new to lightning component and I have gone through many blogs of it but still have a confusion can anyone please help me. I have been given a scenario where I have to make a lightning ...
1
vote
1answer
18 views

How to assign aura:attribute for objects with default value null?

This must be a a very simple question, but may be I'm doing it wrong. I wanted to set default aura:attribute value to null on lightning component as below. e.g. <aura:attribute name="selectedObj"...
0
votes
0answers
14 views

List not updating contents on UI

I have a list of items as an attribute that contains 5 items. Through aura:iteration, I'm printing only the first 3 on the UI. From the front end, I'm able to remove items from this list as well. I'm ...
0
votes
0answers
8 views

Null text fields being removed from JSON

We are having an issue that any text area that is not being populated with a value is being dropped from the JSON. Normally this would not be an issue but some of these fields are synced to SQL ...
0
votes
1answer
42 views

Best practices for splitting SOQL query results into 3 different lists?

I have a SOQL query which is returning a list of documents. I want to be able to separate the list of docs depending on who the author is, and display the different lists in 3 different data tables ...
0
votes
0answers
10 views

Public Calendar's URL in Lightning Experience

We have home page components in classic view where a user can click on different public calendars link to view the particular shared public calendar. In classic, if we change the calendar to any ...
3
votes
1answer
49 views

LWC: Increased security for immutable @api properties but not documented in winter 20?

I noticed that the security for immutable @api properties is increased but unable to find any documentation. Consider below LWC component: HTML: <lightning-button variant="brand" onclick={...
0
votes
1answer
28 views

Dynamic rows in lightning component throwing error

I'm trying to create a lightning component that will add and delete rows. I followed a tutorial available online and here is my code. Component: <aura:component controller="testCntrlr"> &...
0
votes
0answers
26 views

Creating a hidden attribute for a web compnent that hides from DOM as well

I have created a component named <my-customobject>. Inside the component there is <my-customfield> component. <template if:true={showCustomObject}> <my-customobject> ...
0
votes
2answers
24 views

How to create different lighting components based on the values you have selected

This is my CMP file <aura:component implements="flexipage:availableForAllPageTypes,force:appHostable" > <aura:attribute name="accounts" type="Account[]" /> <aura:attribute name=...
-1
votes
0answers
59 views

How to disable the button based on condition in Lightning dataTable

I Need to hide the view button for Note & need to hide 'Edit' button for attachment at the time of page Load Original Image: Expected Image: I have tried below code for view and edit button: ...
0
votes
0answers
18 views

How do I programmatically open a full-screen preview of a ContentVersion

When I go to a record with attached files, I can click on anything in the "Files" related list. This pulls up a full screen preview of the file, darkening the remainder of the screen, with buttons to ...
0
votes
1answer
21 views

lightning:datatable event handler when a cell is being edited

I am using lightning:datatable to display data and it has the ability to inline edit. I was wondering if there's some sort of event handler when a cell is being edited (when the user clicks the ...
-3
votes
0answers
26 views

Explain the best practise and security issue in community [on hold]

I'm new bie to lightning communities. I have few question related to communities while using custom lightning component. Q1.exposing record I'd in the url while navigating from one page to another ...
0
votes
0answers
10 views

Open Send Email Component in Utility Bar

Can I use the standard send email docked component (email quote) and call it from a custom component?
0
votes
1answer
11 views

Lightning Flows Multiselect Picklist replicate in Lignting

Is there a way I can replicate lightning flow's multi select picklist into a lightning component ?(Lightning select usually has drop downs) Below is the image of flows multi select picklist
0
votes
1answer
13 views

community cloud record detail page of Contact not showing quick actions( Email , Log A Call , New Task , New Event)

In Community Cloud for record detail page , i have used "Record Information Tabs" component which display Details, Related and Feed tabs. For Case object Under the feed tab all activities(Post,Log A ...
0
votes
3answers
44 views

my if condition is not working..else condition is working fine…somebody please told me what is wrong

public class BookingCltr { @AuraEnabled public static void CreateRecord(String conObj, String bookObj){ contactObject con = (contactObject)JSON.deserialize(conObj, contactObject.class);...
0
votes
2answers
24 views

Lightning cancel button in visualforce page

When cancel button is clicked in visualforce page, it has to redirect to home page.Instead I'm getting the same visualforce page.Kindly help. public PageReference cancel() { return null; }
0
votes
1answer
13 views

Connected app components randomly not loading

Connected app components are not displaying in our customers' orgs. Randomly the components are not loaded into their respective divs. Roughly 95% of the time they AREN'T loaded. If we disable cache ...
0
votes
0answers
17 views

Event on task completion?

I am wondering if there is any way to fire an event (like popping up a form) on task complete. I know we an do custom buttons and what not to accomplish this, but i specifically would like to put this ...
0
votes
0answers
13 views

Embed Lightning page into Lightning component

I need to show Lightning Record Page, not default one but selected by name, when click on some link. I have an idea to embed this page into Lightning component and init page inside this component on ...
0
votes
1answer
24 views

Is there any way to get the number of pending chat request on omni channel?

I have a requirement to get the number of pending chat request in the omni channel. I have set the presence configuration capacity to 5 so that an agent can have only 5 chat requests. if a case is ...