lightning-components's questions - English 1answer

5.024 lightning-components questions.

I'm familiar with the stuff that SLDS is CSS framework, and know that we need to incorporate our own JS to implement additional logic, which I can easily do in VF pages with jQuery etc, but I'm ...

Most examples I've seen for Lightning form validation assign a common aura:id to all field components in the form, and then use component.find to return the set of components to validate, as in this ...

I've this issue using Salesforce1 on mobiles (Android and IOS) with a long lightning component form: Tapping on an input text element at the bottom part of the form, scrolls the screen to the top. ...

We are trying to migrate a Live Agent app from classic to Lightning. The classic live agent console integration events are not working in Lightning. We are searching for few Live Agent events and ...

When calling window.onload() and LockerService is enabled, I get this error: aura_proddebug.js:17569 Uncaught TypeError: Cannot use 'in' operator to search for 'target' in undefined at Function....

I am getting the below error while trying to navigate to a related list. Error: Unfortunately, the related list you're trying to view isn't in the layout. Please get in touch with your ...

can I disable autDestroy on lightning component. Currently in higer version api than 39 customComponent().autoDestroy(false) not working. I need storage dynamicly created lightning component. This ...

I am completely new to coding. However, I have created the following to populate the lightening variable with the formula field from salesforce in order to use this variable for further calculations ...

All I want to do is retrieve picklist options from a custom object and fetch the inputSelect element in a lighning controller. I am trying this way.. but I am getting an error.. If someone knows any ...

I am displaying a multiselect picklist as a inputcheckbox using aura iterator. I want to check the inputcheckboxes for the selected values. I am facing issues while setting the value for the ...

I've got an array in an aura attribute that I wish to use custom labels for: <aura:attribute name="options" type="List" default="[{'label': 'Phone', 'value': 'option1'}, ...

I have a lightning component which enqueues server side action. To that action I need to pass a map as one of the parameters, but it looks like it takes memory address of the object instead. The ...

Has anyone faced below error: Uncaught (in promise) TypeError: Cannot set property 'innerHTML' of null at AuraInstance.message Screenshot: even I removed the things from component and made ...

In a lightning component, I am trying to use the values in 1 array to set the values for a field in a second array. But for whatever reason I always end up with the last value of my array as the field ...

I am testing the new <lightning:datatable>, it is really good, and is a good replacement for most of my use cases which today I use a custom list component that I have developed. I am getting ...

When I am creating a list at js controller side I am adding hyperlink to 1 value, So while displaying the list on table that column will look like href. lstApplications is wrapper list returned from ...

I've a simple component with one button with onclick method. The method prints a debug message then calls a server side action. The response code is success. But every time I click on the button the ...

I am having some trouble completing the Entering data using forms challenge on trailhead. My code is working as i want it to but i'm getting an error and i don't know if it is a "trailhead problem" ...

I'm playing around with the new <lightning:datatable>. Looking at the documentation, it says that it supports type url for the column data. However, that renders the value of the field as both ...

With events being fired and also handled in a helper, I have multiple copies of simple constants and so there is some risk of silent failure due to typos. Given the helper functions are defined as ...

My If-Iteration structure is similar to written below <aura:if isTrue=""> <ul> <aura:if isTrue=""> </aura:if> <aura:if isTrue=""> </aura:if> <aura:...

I wanted to display a different text for a specific set of result from the records. I tried the following code but it just displays the condition as it is. Is this even possible inside the option tag? ...

I have a blank Lightning component which I am using as a custom tab in Service Console. While the content loads fine the tab label stays on "Loading..." forever. Component Tab Screen There are no ...

Currently, Status of the Case list view to get proper visibility. This functionality is one of the must have in Lightning Experience but doesn't support formula fields with images in List Views. ...

I have a custom lightning page which has two lightning components and 2 visualforce pages. In the lightning components whenever any changes being done I have used the force:refreshview event getting ...

I have created one search bar component which is working when search with contact name. Now i want to search contact along with account name. For eg. if contact name is 'Contact1' and account name is '...

I'm using $A.get('e.force:editRecord') to display standard lightning edit modal window. I want to refresh my component after user saves the given record. However there are no callback events ...

Hi guys I have made a nodejs app and want to expose my lightning app in it. The component seems to render but some functionality does not work in the dev console I am getting these errors: Access to ...

I am working on one AppExchange app on Salesforce Lightning. I have successfully completed development of that app. But while testing, found one very weird issue. Please check following issue, Issue: ...

I'm trying to use a Lightning Component in a Quick Action (introduced in Winter '17), but the documentation has no mention of placing a Save button alongside the Cancel button in the modal dialog ...

I'm trying to programmatically generate and insert a Quote PDF, given a Quote Id and a Template Id, within an @AuraEnabled method in my Lightning component's server-side controller. (N.b. - the ...

Scenario: I have a component that has an <aura:renderIf> within an <aura:iteration>. The <aura:iteration> references a component attribute called "selectedItems" to display a list ...

I have a Lightning Component that displays a lightning:dataTable of custom object records. Displayed fields include Name, Amount, and Date. I need the fields to be editable, but dataTable's inline ...

I have parent and child components. I have reasons to keep child component as separate. I am trying to get the selected record information when I click any of the buttons(child component). Not sure ...

I want to add text boxes on button click using jquery in lightning component. On a button click i am unable to maintain a counter value in helper file. Where can i maintain counter value. How can i ...

Using <aura:method>, I am not able to call child component controller function from parent controller. Below code. Parent Component <aura:component access="global" implements="force:...

Below is the error I got when I try to complete the trailhead challenge. I have tested it works, but not sure why trailhead will prompt such error. Challenge Not yet complete... here's what's wrong:...

I'm having issues rendering the lightning:helptext component with Lightning Out. Here's the code that will reproduce the issue: TestOut.page <apex:page showHeader="false" sidebar="false"> &...

I've been experimenting with lightning:dataTable and have some issues -- not sure if they're bugs or simply user error. I've spotted lots of issues with setting up the columns. I have a table with 3 ...

I have a lightning component as below on Opportunity standard lightning page. Example.cmp: <aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,force:hasRecordId" ...

I have a quick action on Contact that displays a pop up with two buttons. Each button is creating a case of specific recordtype. Each record type has a diffrent page layout but when I tested this in ...

The old approach of using a helper component to display SVG in Lightning now appears to be blocked in Summer 18. What is a bit alarming, though, is that even components marked with API version 40-42 ...

Hello there Unfortunately, I don't know a lot about Javascript so my mistake should be obvious for you ; I'm trying to initialise a custom object in a ligthning component, with js. I'ts part of this ...

{!pickVal == objRecord.{v.kanbanPicklistField}} is there any workaround to use this type of expression is possible to use in lightning?

I need to display a modal popup when i click on event in my calendar with editing details of that event, Please any one suggest me the right way to display popup, i would like to call a "Event Click" ...

I have a few cases where I wish to translate labels in lightning controllers and I can't get it to work. For instance, the label head in a lightning:datatable won't work with $A.get("!$Label.c.Model"...

Could someone explain what is the correct way of using Lightning helpers? Is that any place where I can find best practices how to move code from the controller to the helper? Sometimes I see in js ...

Do you know how can I set the width of a modal window opened by a lightning component action? In the edit options I can set only the height but is not enough because the content of my table is not ...

In the javascript side, I am checking enddatetime >= startdatetime,but it's not working. How to handle it in Javascript side? <ui:inputDateTime aura:id="startTime" label="Start Time" class="field" ...

I've tried using the Id from a lookup field involving the record being view in my lightning component. I query this data in init, then set the returned value to theCase. <aura:component ...

Related tags

Hot questions

Language

Popular Tags