lightning-components's questions - English 1answer

5.885 lightning-components questions.

Apex controller: public class plController { @AuraEnabled public static integer IsDataAvailable() { integer count=[select count() FROM Bank__c where IsActiveFlag__c=: true and ...

I have an application which depends on outbound calls to REST APIs to fetch data. Is there a way to enqueue and process actions right away? It seems like if I enqueue an action, it is not processed ...

I have a input field in lightning component and I'm struggling with two requirements. Autofocus - after page is loaded and on Enter key I want to trigger function. I can handle those requirement ...

From lightning component, when I select the startdate and end date, I should able to select in MM-DD-YYY. But from backend Apex, it is coming as YYY-MM-DD 00:00:00. I want to convert this into that ...

I have a component that toggles between displaying a list of items and a selected item. When a user selects an item we hide the list and display the selected item at the top of the component. The ...

In my Lightning Project i have 2 different components (Login Component,Home Component). What i want is when the user click the login button. The user will redirect to the home component.

I would like to create two buttons on Snap-ins pre-chat form to route customer to different support departments. According to documentation we can control the agent routing with embedded_svc.settings....

One of my clients is keen on using Lightning experience looking at the nice and interactive UI layer, but we also need to keep the live agent functionality since this is a client service and live ...

I have a object and i create a list button on object to delete the all records on click on button and add that button on record list view page, somehow that is working fine in salesforce classic but ...

I want to conditionally render each item in an iterating list. It has to check if each contact in the iterating list is included/contains in another list of contacts. How should I approach ? ...

In lightning, we can reference to static resource by a value provider like: <img src="{!$Resource.staticResource}"/> Is there any smart way to make it dynamic like: <aura:attribute name="...

I'm developing a lightning component which displays some records. Initially, I have put a <lightning:datatable> inside a <lightning:card> but the table is not showing as I expected: it ...

I want to create a function that can be used across lightning components.

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

I would like to know how to how redirect from Contact to related User record page via Lightning component quick action. Currently I have created Component which gets Contact record Id and passes it to ...

I have a component that contains lightning:recordForm like so: <lightning:recordForm recordId="001f200001Zg2uYAAR" objectApiName="Account" layoutType="...

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

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

I am trying to creating a new record using LDS for that I have first create a template record which can be used to create a record. I followed the example present in - https://developer.salesforce.com/...

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

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

I have a lightning component which handles a event and performs subsequent dml operations. Once this is done, a toast message is displayed (success/ error etc.) I want to refresh the entire browser ...

I have a problem regarding on displaying lightning:icon in Lightning:tabset after an Winter 19 update the Lightning:icon is not displaying an image. Here's my code: <lightning:tabset variant="...

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

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

I am trying to save a record that a user creates using a form. I get a strange error description as "Undefined" which I do not understand. Below is my component, controller and helper class. The save ...

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

I have created a lightning components tab and wanted to surface it to users by adding to the Sales app but users are not seeing it. However If they go to App Launcher--> Other Items, they see the tab. ...

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

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

I have a lightning component that is available for use as lightning component quick action. I need to use this component from various object actions, for example, I will add a lightning component ...

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

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

I would like to install custom Lightning components in my organization, but according to https://help.salesforce.com/articleView?id=000214270&language=en_US&type=1 I need to set up My Domain ...

I have component which holds Object[] attribute. On init action I am loading data in it and showing that for user interaction. All works well and update on input field gets bonded properly with ...

Having some problems dynamically creating a lightning:buttonMenu using $A.createComponents(). Creating the buttonMenu works fine but as soon as I try to add a lightning:menuItem I get the following ...

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

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

I am trying to embed a single tweet into a lightning component. I have a static resource to load the widget.js file of twitter. On my cmp file, Please see sample code below: //cmp file the script is ...

This may be a very basic questions, but I don't seem to find the answer for it! Basically I want my console.log statements to show all the good stuff instead of the LockerService Proxy object. Is ...

We are using lightning console applications. I override the detail page of Leads with a custom visualforce page. It is having several links. If I click on any of them, it has to open in a primary tab. ...

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

I want to add button and disable scroll Is this possible?

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.

I have created a lightning pop up modal on click of a button. I can change the width of the pop up but is there a way I can increase the size by height by means of css or any other? The text area is ...

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?

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

How to display date in dd/mm/yy format. <ui:outputDate value="{!v.CreatedDate }" output:17-jan-2018 How to display date in following format: output:17-01-2018

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

Here is my code. I followed the Lightning Components Developer Guide for the most part. I left out parts about updating the running count of records and changed how the 'newCase' attribute is created ...

Related tags

Hot questions

Language

Popular Tags