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-aura-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.

0
votes
0answers
15 views

Refresh Primary Tab in lightning console [on hold]

I want to refresh Primary tab once my operations are finished in lightning.Can anyone please let me know how to do it?
0
votes
0answers
25 views

Need to “reload” child component from parent component [on hold]

I met this problem.. I've a child component that receives an object from the parent and build the graphics. This is how it looks like: When I click on the button to change month it call an event that ...
0
votes
1answer
31 views

setCallback in contoroller does NOT work

There are two main functions of the component I want to make, 1.Display the component if there is a target record, 2.Display the items of the target record on the component. However, it will not work ...
0
votes
1answer
23 views

Lightning :select is not showing the error message using v.errors

Lightning Select is not displaying the error message <lightning:select label="Case Template" variant="standard" value="{! v.objtype.Quick_Code_Name__c }" required="true" aura:id="inputtemp" name = ...
0
votes
2answers
27 views

Add Class To Aura Component Based On Value From Apex

I would like the <div aura:id="main" style="padding:15px;" class="slds-grid"> to turn red if the escalation level is M2 or orange if the escalation level is M1. My Javascript is as ...
0
votes
1answer
18 views

Need to Change custom Quick Action label in lightning component

I have created a quick action(InactivateUser), on click of that quick action I want to change the label of that quick action through lightning component/controller.Can anyone please let me know is ...
0
votes
1answer
21 views

Parameter null in the child lightning controller

I developed a child lightning component which is used from a parent lightning component. I mean that the parent lightning component calls the child lightning component and give to it a value which is ...
0
votes
0answers
12 views

Text Cut off in Lightning DataTable (wrapped)

Having issues with text getting slightly cut of in my lightning datatable. it looks like around 1 letter is getting cut off by the scroll bar. I put some CSS in order to hopefully fix this but it ...
0
votes
1answer
23 views

Unable to update namespace of custom labels in managed package

I have a lightning component as part of a managed package that uses few custom labels. The custom labels are saved with the default namespace like {!$Label.c.label_name}. I am trying to update this ...
0
votes
1answer
16 views

Object field labels in picklist in lightning component [on hold]

Can someone please guide me how to display all custom fields of account object in picklist as values in lightning component? Thanks, Ranu\i
1
vote
1answer
26 views

How to set Date field to not exceed today's date in lightning component

I have a requirement where I need Birthdate field on contact to validate so that it does not exceeds today's date. Below is the code: <lightning:input value="{!v.objContact.Birthdate}" label="...
0
votes
1answer
26 views

Clearing The IsEscalated Checkbox After Submitting The Escalation

I had a business requirement to check the IsEscalated checkbox once a button is clicked. That all works fine now but once I click that button I get the message that the case is escalated for all the ...
0
votes
1answer
22 views

Checking a Salesforce Checkbox When A Button Is Clicked

I would like to set the IsEscalated button to checked once the escalate button is clicked. Here's my code <aura:component implements="flexipage:availableForAllPageTypes,flexipage:...
-1
votes
0answers
11 views

Need help regarding the new Lightning flow builder (lookup field)

so as the title says I'm trying to populate a lookup filter when inserting a record using a Flow, I already created the lightning component to serve as a Lookup field and I was able to show it on the ...
0
votes
0answers
7 views

salesforce1 background image not showing

I've a very weird behavior right there. My lightning component is perfectly showing from Desktop & Mobile device simulator using Chrome. The LC is basically a div with a background image using ...
0
votes
1answer
17 views

Unable to create a managed package which has a component with lightningQuickActionWithoutHeader interface

Getting the following error - You can only create Lightning Component Quick Actions for Component Bundles containing a component that implements force:lightningQuickAction and has no required ...
-1
votes
0answers
13 views

How to create child contact under selected parent contact using lightning component [on hold]

I have a requirement where I need to create Child Contact under Selected Parent Contact(which is Contact__c custom lookup field). This should be done using lightning component. I am a newbie and ...
-1
votes
0answers
19 views

Error while Adding Contact to Selected Parent from Lightning Component

I have a contact creation form where I need to add the contact under a selected contact(parent) from lookup. Below is the code and when I try to preview, I am getting this error "An internal server ...
2
votes
0answers
63 views

How to delete a Lightning Web Component?

I'm trying to delete new Lightning Web Component without any luck. I've tried to find it in Dev Console, but as you know it doesn't support Lightning Web Components yet. Another way I've tried to ...
0
votes
2answers
19 views

How to enter the seconds in lightning input date-time

I don't know how to enter seconds as well in the date-time field because of lightning input takes only hours and minutes <lightning:input type="datetime" name="input1" label="Enter a date/time ...
0
votes
1answer
19 views

Component Event doesn't seem to working! [duplicate]

I was testing passing data between two components using Component Events but something doesn't seem to be right. I am not able to get the value in the Handler component. Could someone let me know what ...
0
votes
1answer
20 views

Locker service compliant alternative to document.querySelectorAll()?

I'm trying to dynamically update the attributes of a CSS class that is assigned to a bunch of elements in my lightning component. In order to determine how to update the CSS of these elements, I ...
0
votes
1answer
34 views

How to change the color of lightning spinner?

<div class="demo-only" style="height: 6rem;"> <div role="status" class="slds-spinner slds-spinner_medium"> <span class="slds-assistive-text">Loading</span> <div class=...
0
votes
1answer
36 views

Is there more effective way to communicate between sibling components than application event? [on hold]

As in the question tile: Is there more effective way to communicate between sibling components than application event? Why I'm asking: Generally speaking there is recommendation to use application ...
0
votes
0answers
21 views

CSS issue with “ slds-popover slds-popover_tooltip”

I used slds-popup in a table. And those popup contains multiselect picklist values options with break(<br/>). My problem is when popup values are more, then its going to the second column. ...
-1
votes
0answers
18 views

Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'index.html' in Angular 4 application using Lightning Container

My angular 4 application is running perfectly standalone. I tried to run with Lightning Container in Salesforce but I got error as in screenshot - Same application is working in iframe as well.
-1
votes
1answer
45 views

Single row deleting issue while using aura:iteration [on hold]

Problem facing: Not able to delete single row. For ex: I have followings rows: row1 row2 row3 I am able to delete row 2 and row 3. But I am not able to delete row1. I believe problem ...
1
vote
1answer
22 views

How to populate design attribute datasource automatically

We are using lightning components in a lightning community. When a user drag-drops a component in the community builder, in the configuration options we give user ability to select image names and ...
0
votes
0answers
6 views

Download Analytics Dashboard in VF page or lightning Component

I'm looking for a way to download Analytics Dashboard from the VF page or lightning component. I'm displaying it in my lightning component, where I want to have a button to download it similar to what ...
0
votes
1answer
18 views

How to get callback result — lightning component

apex public class Edit_Controller { @AuraEnabled public static List<OpportunityLineItem> ItemList {get; set;} @AuraEnabled public static List<PriceBookEntry> Oppline(List<String> ...
0
votes
0answers
18 views

and condition unpredictable in lightning [duplicate]

The following does not evaluate correctly and shows a field even when the cond4 is not met <aura:if isTrue="{!and(cond1, cond2,cond3, cond4)}"> SHOW A FIELD </aura:if> However, when I ...
1
vote
0answers
16 views

Wrapping long text field on custom lightning component

I have created a custom lightning component to add on a tab on detail page. It contains field from custom object in a list form/table. The field call_comments__c is a long text field and it needs to ...
0
votes
0answers
12 views

Add Specific Attachments to Docusign envelope

I have Docusign for Salesforce set up with a Lightning Component custom button the generates the URL reqd to select the correct template, fill in various merge fields and redirect to Docusign. What i ...
0
votes
0answers
16 views

Font Awesome in Lightning component

How to connect FontAwesome to component. It is my code. @font-face { font-family: 'FontAwesome'; src: url('/resource/FontAwesome/fonts/fontawesome-webfont.eot?v=4.2.0'); src: url('/resource/...
0
votes
0answers
17 views

Overridden button disappeared from related list in community

We want to override the "New" button for a custom object for our community, using a Lightning Component. So we went ahead and did that. The thing is, now the "New" button doesn't appear on the related ...
2
votes
1answer
17 views

Lightning component not being displayed in home flexipage

I'm working with a testing org and I have put one of my lightning components inside home flexipage. The point is my code is running (cause I put logs in js) but it's not displaying anything. Extended ...
0
votes
0answers
20 views

Record list component doesn't show external objects in scratch org

I'm trying to use the record list component in a Community with an external object but I can't see it in the list. I can't see in a scratch org but it's possible to see it in my Dev Hub. Also, I'm ...
0
votes
1answer
25 views

I want to set record type while creating record in lightning component through e.force:createRecord. But I am not able to do so

I want to set record type while creating record in lightning component through e.force:createRecord. But I am not able to do so. I tried using custom label and even I tried hardcoding still It is not ...
-3
votes
1answer
35 views

Illegal value for primitive issue in JSON [duplicate]

I have following JSON Format lstSelectedIds--> [{"Id":"a0k1k000000QTPrAAO","Name":"00006144","User__c":"0051k000000wvYAAAY","User__r":{"Name":"Wissam Mahmassani","Id":"0051k000000wvYAAAY"}},{"Id":"...
0
votes
0answers
29 views

Unable to fetch recordTypeId in lightning component

I am unable to fetch recortype in lightning component. Can anyone help me tell where is the issue Code for component <aura:component controller="EMTEventCreationWizardController" implements="...
2
votes
1answer
13 views

How to place custom lightning button in Standard button division?

I have used a lightning button in the component. I have to use both SUBMIT and Cancel Buttons. But Already Cancel Button Popping up. Either I have to remove the Cancel button and add Custom Cancel ...
0
votes
1answer
16 views

How to Use same variable values in different methods of lightning component controller?

I am using the Parent-child concept. I am calling one component from another component. Component(Parent): <aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,...
0
votes
0answers
12 views

Lightning datatable body component [duplicate]

I am not sure how to use the body component of the lightning datatable. This is how I have it so far. <div style="height: 300px"> <lightning:datatable columns="{! v.columns }" ...
0
votes
1answer
42 views

Lightning Components: Call init method of a child component from a parent component

I want to call the init method of a child LC from a parent LC. I tried to use aura:method, and call the init method from a parent method. ..... <aura:attribute name="userContact" ...
0
votes
0answers
20 views

Lightning component in VF page: API call promises never fire

I have a VF page which loads a Lightning Component that in turn makes an API call (workspaceAPI.isConsoleNavigation). The client controller invokes the API call, but the promise returned never fires. ...
2
votes
1answer
27 views

Does <lightning:navigation> support targeting Visualforce pages with URL parameters?

I'm working on a Lightning component that includes a button, whose purpose is to load a Visualforce page rendering a PDF cover sheet. I'd like to use the most current supported functionality, so I'm ...
1
vote
1answer
30 views

How can I display a spinner when switching between lightning:tabset tabs?

I recently asked a related question about how to display the lightning:spinner while waiting for a component to render. Although I found a way to make it work, and have thoroughly reviewed the 'Events ...
0
votes
2answers
34 views

Adding an element in object JavaScript

My Question is am displaying the records in Table format and there is a NEW button when it's pressed want to create a new row at the top. With all the fields empty. Here doc contains the record ...
0
votes
1answer
19 views

SLDS table content is not truncating the long text

SLDS table is not truncating the long text in table column. I have given slds-truncate class as well but its not working. <aura:component implements="force:appHostable,flexipage:...
0
votes
1answer
29 views

Lightning component attribute type object [closed]

we have got lightning component which displays certain information on a lightning page. I want to change the value but it is not stored in custom label rather it refers to attribute object (rateInfo). ...