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

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
10 views

Onchange Function for Lightning:inputField Automatically Runs (Causing an Error) when Loaded in a Modal

I have a component that opens in a modal. Modal/Button Markup <lightning:overlayLibrary aura:id="overlayLib"/> <lightning:button name="modal" label="Create Pet" onclick="{!c.handleShowModal}...
0
votes
0answers
11 views

Error message: Invalid literal value [1, 1]: 'WorkOrder' - Lightning Components - Dynamic Binding

I have a issue, I'm trying to create a Dynamic Form with two lightning Components and fieldsets, each component's related to an Object 'WorkOrder' and 'WorkOrderLineItem'. I pass the API names of each ...
0
votes
0answers
13 views

How can I create generic helper methods that can be used accross multiple components? [duplicate]

I want to create a function that can be used across lightning components.
0
votes
0answers
13 views

Get Id of lookup field with force:recordData? [duplicate]

Does someone know how to pass a lookup field ID to a controller with force:recordData? I got a component on the Opportunity layout, and I'm trying to pass the Account ID to the controller but it's ...
1
vote
1answer
26 views

Nested / multi level lighting:datable

I'm looking to see (If it is even possible) to create a multi level lightning datatable. I.E. The parent object has a tickbox in table element 0, If selected a sublevel opens and you can see the ...
0
votes
0answers
15 views

Select multiple Accounts and call apex class using Lightning Components

Is it possible to select multiple accounts in order to call an apex class that will calculate a result based on a account specific field for all the accounts selected, using lightning components to ...
4
votes
1answer
64 views

cant use Apex bind-variable (String) to filter by recordId in SOQL

I have a Lightning Component controller doing the following: inserting a custom object Audit__c record via LightningDataService. on successful insert calls a server-side controller method, passing ...
0
votes
2answers
22 views

How to pass radio group value from Parent to Child component?

I have to pass radio button value to the child component. Here is the code snippet of the same on the Parent component. <lightning:radioGroup aura:id="msRecTypeOptions" name=...
2
votes
1answer
27 views

Dynamic Button Icons in a Data Table Similar to Dynamic Actions in a Data Table

It's possible to have actions for each row in a data table that change depending on the contents of the rows (that are changed by those very actions). For example: The component reference provides ...
0
votes
0answers
18 views

Problem in upload file [on hold]

we have the same profile, same role. when i load the file, i have no problem. the second user has this error message. Thank you
1
vote
0answers
24 views

Lightning component: highlighting wrong element on hover

I have a progress bar component, split into 5 segments. For some reason, when I hover on a segment, the next segment is highlighted instead of the current segment. You can't see my cursor, but it's ...
0
votes
1answer
21 views

Does lightning:recordEditForm works for wrapper classes with an sObject?

I have a wrapper class which can hold a custom object record and some variables. However I want to leverage this out of the box lightning:recordEditForm for displaying the wrapper class records (...
0
votes
1answer
16 views

Dynamically update Lightning path (Chevron)

My Lightning/Salesforce Path was displaying the Chevron based on the Case Pick list field which has 15 pick list options. Every Case is unique and doesn't require all the 15 options, how can I make my ...
0
votes
0answers
25 views

Winter 19 Flow Dependent Picklist Error

When using the Flowscreen lightning component for Dependent picklists I am encountering an error. The components is configured: Object API Name - the object where the picklists reside Picklist 2 API ...
0
votes
1answer
27 views

Salesforce lightning setting slds column rows to be the same height

I'm using lightning:recordEditForm with lightning:inputField to generate a list of fields. I dynamically create a lightning:inputField component and add it to an slds column. The lightning:...
0
votes
2answers
15 views

salesforce custom lightning Horizontal navigation?

I am working on a requirement now to develop a custom component for navigation menu. We are using custom "Build Your Own" Community Template . And the standard navigation (Horizontal) is not available ...
0
votes
1answer
18 views

Component event not firing or not being catched

I spent the whole day trying to figure out why this event is not getting fired, i tried both component and application events but noting worked although the code is pretty simple. here is my code : ...
0
votes
1answer
13 views

How to add lightning action in standard page ..? [on hold]

I want to add button and disable scroll Is this possible?
0
votes
0answers
6 views

Upload File in flow embed on VF [on hold]

I have a Flow that will upload a file then the flow was run in lightning and I embed it on Vf. When I test to upload a file and it doesn't work and there is no popup modal.
0
votes
1answer
24 views

How to create a custom search component using lightning [on hold]

I have been struggling trying to create a custom component for searching through objects using lightning. I have been on trailhead and the only reference to such is the Lightning Communities: Create a ...
0
votes
2answers
24 views

lightning component: how to force refresh page when redirecting

I created a custom action which is a lightning component to deactivate the current order and then redirect to the same page. The order is deactivated successfully but after redirecting, the order page ...
0
votes
2answers
18 views

Dynamically creating lightning:inputField with a div

Currently I have this loop which can dynamically create a lightning:inputField: for(var i = 0; i < editFieldsToRender.length; i++) { $A.createComponent ( "...
1
vote
1answer
20 views

Error using Javascript file from Static Resource in a Lightning Component

Sorry, this may be a simple beginner question but I still get errors after following all instructions I could find. I have a JS file (testjs.js), which I loaded in the resources as (testjs). var ...
0
votes
0answers
23 views

Can't get component instance via component.find()

I'm encountering a weird behavior when taking one of the challenge in Lightning Component Framework Specialist superbadge BoatDetails.cmp <aura:component access="global" implements="...
2
votes
0answers
14 views

slds themes not applied in lightning communities

I tried using slds themes for applying a light gray background color to a certain section of my layout,, It works fine in LEX, however, I require this form to also be used in lightning communities. ...
3
votes
1answer
29 views

Rename Lightning Component Bundles via AuraDefinitionBundle gets an 'unexpected error'

There is a helpful article on an easy way to rename lightning component bundles: https://www.codescience.com/blog/2017/how-to-rename-lightning-component-bundles Essentially you query and edit the ...
1
vote
2answers
75 views

Lightning Equivalent to Dynamically get Field Label

We are a multilingual org and need to be to dynamically translate field labels according to the running user's settings. Using Lightning:InputField is not always an option and we preferably do not ...
0
votes
1answer
19 views

Child component not displaying records from Parent record

I am passing the results from Parent component to Child component but the results are not displayed for some reason. I have gone through many example codes and it seems I have done everything ...
0
votes
0answers
25 views

Make table row (tr) as read only in lightning [on hold]

I have a table where we are showing data of a particular object. When the picklist value of a particular record is changed to a particular value and button is saved, I am updating some other field of ...
0
votes
0answers
15 views

Probability value Not getting updated on Stage value change in Lightning:RecordEditForm [on hold]

Probability value Not getting automatically updated on Stage value change in Lightning:RecordEditForm.This was working just fine in my lightning component but after winter 19 release the probability ...
0
votes
0answers
13 views

Lightning Component Styling: Collapsible region doesn't push item below it further down when expanded

i'm making a lightning component, and I have just added collapsible regions to each table within my component that lets the user hide or display each table. A problem however is when I expand a table ...
0
votes
2answers
28 views

How to play video from Salesforce file in lightning component

There are few videos in files (Lightning files) of my slesforce org. Is there a way i can play/preview them in an iframe inside a lightning component?
0
votes
1answer
30 views

get apex controller value in lightning component controller

I have created apex controller which is returning List<sObject> as apex controller: @AuraEnabled public static List<TimeSheet__c> getDetailTimeSpendInWeek_ctrl(string selectedDate){ ...
0
votes
1answer
19 views

Getting grey and white background when implementing a lightning component custom action modal dialog

I have created a lightning component custom action which will open a modal dialog. However, when I click the button, the dialog looks like below: The dialog is okay but I am wondering where are the ...
3
votes
1answer
80 views

Component Body is empty after init event but not from Chrome Console

I've a weird behaviour going on here. I've built a custom card carousel component as below : <c:carouselComponent aura:id="carousel" iconName="standard:carousel" ...
0
votes
0answers
16 views

How to capture 'after render of output fields' in lightning component?

I know of overriding things like rerender and afterRender. I currently have a popover that gets positioned after render and on rerender so the actual size of the popover can be taken into ...
0
votes
1answer
28 views

How to nest standard lightning component inside custom lightning component? [duplicate]

I need to create a custom Lightning component and inside of it I need to output record details page and related lists. There are standard components in App Builder for this: "Record Details" and "...
0
votes
2answers
17 views

Hide a custom button from a record based on Role in salesforce

I have a custom button that run a lightning component where I want it to be visible from a record only for certain User based on their role. Any idea How to adjust this permission set. I know that ...
1
vote
1answer
17 views

Remove tabs from activities in lightning

I want to delete tabs in activities, and just let new task. Help me capture bellow :
0
votes
1answer
31 views

Same controller two components lightning

Is it possible to have the same apex controller being used by two different aura components? I'm trying to do that but the the component controller is getting an error response from the apex ...
0
votes
0answers
16 views

Codeship Bitbucket/Github and Salesforce - Deployment Management [closed]

I want to configure Codeship with bitbucket to manage Deployment in my Org. I couldn't find any helpful reference on the Internet.
0
votes
1answer
26 views

Disable access to “Delete”, “Edit”, “Upload New Version” on the file previewer

I use lightning:fileCard and e.lightning:openFiles components in my lightning component (that I use inside a community) In 1 stage on my component, I wish to display a file preview, and to not give ...
0
votes
2answers
43 views

How to auto populate fields using data from record in edit form using lightning component? [closed]

Once I click the edit button it will display the lightning page shown below. How can I make my component auto populated with data from the record that I am editing?
0
votes
1answer
19 views

Why I can't override deactivate order button into lightning component

I am trying to override the deactivate order button into a lightning component. However, it seems that it doesn't have this option: I am a bit confused about this since we are definitely in ...
1
vote
1answer
16 views

getBoundingClientRect() does not work in lightning component?

Every example I am seeing about positioning a tooltip manually involves getting client boundaries, which you would get through getBoundingClientRect() on the element. I have a lightning component ...
0
votes
2answers
21 views

Redirect to perticular record related of a record in Lightning

We have a visualforce page on opportunity which is redirecting the URL as below /02i?rlid=RelatedAssetList&id=001800000.... i.e redirect to Asset related list of an accountId mentioned. This ...
1
vote
1answer
111 views

Custom Script Eval error when developing a lightning component in an organization with namespace

I'm getting a "sorry to interrupt" error modal when trying a custom component I'm building. The component doesn't even load (the specified action in the afterScriptsLoaded doesn't even run). The ...
1
vote
1answer
14 views

how to add a custom class in table row in LDS?

I have a lightning component which contains a table. I am trying to highlight a row in red if some conditions are met. My code is like this <tr aura:id="tablerow" > </tr> I have added ...
1
vote
2answers
51 views

Displaying Account Closed and Account Open Cases On Case Page Layout

I created a new case layout and I would like to display the related account's related cases. I can currently show all the related account's cases but I would like to split that up into two related ...
1
vote
1answer
33 views

Lightning Component integer attribute not matching javascript integer

I have an attribute of type integer. <aura:attribute name="selectedRowNum" type="integer" /> I also have an iteration component in which I get the index of the current object that is being ...