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
2answers
86 views

In LWC How to redirect back to case list view page after opening a record creation popup by clicking on 'New' overrided button. LWC

I have a requirement to override 'New' button for record type selection CASE object, on recordType selection for one of the record type(1 out of 4) i need to open custom LWC component. for 3 remaining ...
0
votes
2answers
43 views

Passing parameter in getRowActions

JS Noob here. I am currently following lwc datatable documentation to create a datatable with actions. The constructor has an argument as 'data' which I want to pass in getRowActions method. The '...
0
votes
1answer
31 views

not able to access the variable values after using the continuation class

private class StateInfo { Account acc {get; set;} StateInfo(Account acc){ this.acc = acc; } Contact cont {get; set;} StateInfo(Account acc, ...
0
votes
1answer
36 views

A parameter to an Aura Action is undefined. But not always. Why?

I have a particularly strange issue where one, and only one parameter to an Aura Action is undefined. Worse, it seems to be nondeterministic when it is undefined, and when it actually works. Relevant ...
0
votes
1answer
21 views

Lightning Community Custom Theme/Component/Content Language change (text/button label)

Any one has idea on how to change language based on profile language for text and button labels for a custom component in lightning communities? I tried to add language to the community page but it is ...
0
votes
0answers
11 views

Will Increasing Email Characters to 131k introduce Lag

Will increasing the Email Characters to 131k introduce lag within the org either in loading the email record page or within other object records?
0
votes
1answer
20 views

Retrieve currentRecord from aura:iteration to controller.js

I am quite new in lightning and I need an hint in order to resolve a problem. What I would like to achieve: in a table component, for each record I would like to see a column with different icon ...
0
votes
3answers
48 views

Appending Value in hyperink in LWC

As in LWC values cant be appended directly in view for example : <a href={xyx.abc} target="_blank">link to create</a> ====> <a href="abc"+{xyx.abc} target="_blank">link to ...
1
vote
1answer
40 views

How to get field level help through wire in LWC

<lightning-helptext class="customIcon" content={helpText}></lightning-helptext> How to fetch help text of a specific field in JS as we do in apex/VF using $ObjectType....
0
votes
0answers
57 views

Metadata Retrieve issue Salesforce

When i try to access other org metadata item list after authentication getting the following error .. Web service callout failed: WebService returned a SOAP Fault: INVALID_CROSS_REFERENCE_KEY: ...
0
votes
1answer
22 views

Package a list of packages is it possible? [closed]

Hi so apparently I have made some progress on the org and packaged the features . Assuming that I have features : foo and bar. and packages : foo-package and bar-package can i package both of them to ...
2
votes
1answer
32 views

Record edit form not accessible by a user

This question is the extension of THIS question. Posting again (with simplified code) as I am blocked in this issue. Even for very simple form as below I am getting [object object] error. <...
1
vote
1answer
33 views

How to Hide Column Label Lightning Datatable

Is there a way to hide or render labels based on a true/false value? For example, how to hide only the Phone label but display the other two labels? Is there a possible render value that can be set? (...
2
votes
1answer
19 views

Create Component with Lightning Admin Dialog box

I'm not sure what its called but I'm looking to write a Lightning Component which utilizes the below image's section of Lightning App Builder. Does anyone know what its called? Doesn't have to be rich ...
1
vote
1answer
55 views

LWC navigation issue in communities

I am trying to redirect on the a href click to a custom visualforce page in lightning. <a href=# onclick={navigateto###} target="_blank"></a> navigateto###() { console.log('...
0
votes
1answer
32 views

Javscript button to Lightning Experience

I am trying to convert the Salesforce Classic Javascript button to Lightning Experience. The button has a custom URL. I don't know how to replace the custom URL in lightning. The button uses the ...
0
votes
0answers
15 views

Lighting:tabset rendering tabs in “more” drop down when tabs are populated dynamically even though it has enough space to display all tabs

My sample code is <div class="flexipageComponent"> <div class="tabset slds-tabs_card uiTabset--base uiTabset--default uiTabset flexipageTabsetV2"> <div role="application ...
0
votes
1answer
34 views

Unable to call second component from first component

i have tried every suggestion given on community but not able to call second component from first component.I want it to display as modal popup, after clicking on button nothing is showing on screen. ...
1
vote
0answers
104 views

Lightning RecordEditForm - getting error [object object] for few users

Problem: Many users are able to see a form but few users are not able to see the form and getting error [object object]. I am using lightning:recordEditForm as below in lightning record page: <...
2
votes
1answer
112 views

How do I differentiate when a child LWC component is called twice in the parent component?

I have a parent component where I am calling a child component twice in LWC. I am firing an API method in the child from the parent, but it is firing for only one child component, not the other one. ...
1
vote
0answers
21 views

Data Category Mapping not working properly for knowledge articles

In my org, the 'knowledge sidebar' section which is visible on opening a Case record should ideally show all the suggested articles based on Data Category mapping. I have a Data Category Group named '...
0
votes
1answer
20 views

How to to get conditional rendering inside an iterator which is inside a scroller?

`If ui:scrollerWrapper is uncommented, the class in card element does not work. <!-- <ui:scrollerWrapper class="scroll" >--> <aura:iteration items="{!v.commentsData}" ...
0
votes
0answers
18 views

How to display Activity Component as List with Header Rather than Timeline

Is it possible to display the Activity within the Activities component as "List" rather than "Timeline"? I would like to keep this activity section but display items in "List" format and not "Timeline"...
0
votes
1answer
49 views

How to trigger an action in LWC component from aura container

I have a an LWC component which is referred from aura wrapper. I need to trigger an action inside the LWC component on a button press from enclosing aura component. Requesting to provide input on the ...
0
votes
2answers
23 views

Can't pass 'greater than' or 'less than' operators in reportFilters via url

I have a lightning component that redirects to a custom report passing filters via url. This component is working inside a community and, as far as I know, you need to generate your url with a '...
1
vote
1answer
35 views

PDF file is getting corrupted when sending by HTTP callout to external system

on file upload below function is called in LWC. LWC Function uploadHelper() { this.file = this.filesUploaded[0]; this.fileReader = new FileReader(); this.fileReader.onloadend = (() =&...
0
votes
0answers
33 views

How to unsquish DataLoader UI

How to fix the squished UI for dataloader. See Image below. Machine specs: 4k res display, Windows, x64
-3
votes
1answer
43 views

Aura component error: setcallback is not a function [duplicate]

Apex class public class Controller_Apex{ @AuraEnabled Public static string callApexmtd(){ return 'Amit kumar'; } } component <aura:component controller="Controller_Apex"> ...
1
vote
1answer
31 views

How to make input form Readonly based on User profile in Lightning Component?

I have an Action button in our lightning Page, upon clicking it shows a form to input couple of fields and save it. But I have to make those input fields readonly for Profile 1 and editable for ...
0
votes
0answers
14 views

Can't redirect to custom report from community

I have a lightning component that redirects to custom reports including filters if needed and it's included inside one of our salesforce communities. The issue is that the generated URL works fine ...
0
votes
1answer
41 views

How to pass Objects from Lightning component to apex

I have been trying to pass the JS object from component to apex. it says Issues are I am not getting Listsubsystem variable in apex. var listOfsubsystemObj = []; var jsondata = ...
0
votes
0answers
10 views

Chatter FeedItem LinkUrl open in current tab

I have a Chatter Feed displayed in a Customer Portal, and I have Chatter Posts with a LinkUrl value. Is it possible to change the way the anchor tags are rendered so they do not open a new browser ...
0
votes
1answer
36 views

LDS data coming null for a specific profile for a lightning component, the profile has view/modify all permission

<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId,force:lightningQuickAction" > <aura:attribute name="record" type="Object"/> <aura:attribute name="...
0
votes
0answers
20 views

Salesforce Multi select Search box issue in ligtning component

We have a custom lightning component where a user would choose one of 5 objects. Then there is a search box where the user searches for the records and can add multiple records. while displaying ...
0
votes
0answers
14 views

Auto redirect visualforce page from lightning actions in lightning Community

I would like to redirect a visualforce page to action attribute URL from lightning action. I have created a sample VF page like below <apex:page standardController="Quote__c" action="https://www....
0
votes
1answer
42 views

Position fixed problem lightning

I have a custom lightning component on a record detail page. The component has a message which i want the user to be alerted. Everything works great but now i want the banner to scroll also if a user ...
1
vote
1answer
57 views

Lightning Web Components - Radio button “checked” not retaining when navigating back and forth

I am not UI/UX person and I need help with setting radio button as checked when used in a LWC inner template-for-loop which involves page navigation and conditional rendering. I am able to get the ...
0
votes
0answers
21 views

Embed a custom component in lightning email template

There are several VF email templates in my org which internally references VF components. These components have custom functionality of querying different objects and preparing a custom result which ...
1
vote
1answer
24 views

Deselect checkbox on click of a button

I have the following code in my lightning component <lightning:input type="checkbox" label="Life" aura:id="checkboxField" value="{!v.isLifeChecked}" ...
0
votes
1answer
21 views

Lightning <option value=“”> not displaying

In the lightning documentation it states that I should be able to set a default value with the <option value=""> inside of a lightning:select. When I attempt to do this, my option value gets ...
0
votes
1answer
25 views

Need to pin a lightning component so it is always visible on the page

Let's say i have a custom lightning component which have some kind of message embedded. When i add my custom lightning component to a record page and the user is viewing the record page where the ...
0
votes
1answer
11 views

Not rendering data in lightning component

I dont understand what is the problem here. I have to show list of about 48 countries like below but nothing is coming in UI. I have tried every possible combination but no use! <aura:component ...
1
vote
2answers
43 views

What is the use of errorCallback lifecycle hook in LWC?

I found the documentation of errorCallback here - https://developer.salesforce.com/docs/component-library/documentation/lwc/lwc.reference_lifecycle_hooks. But whatever I am trying to implement does ...
0
votes
1answer
38 views

How to display Several URL"s in toast message

I have a requirment where i need to show some alert messages to the user. The alert message should be non blocking and if the user scrolls the page down, the alert should also move so that the user ...
0
votes
0answers
13 views

Can we transfer call using salesforce open CTI?

Can we transfer a call if we use the softphone implemented from open CTI in salesforce? I installed the lightning open CTI plugin from there https://developer.salesforce.com/page/Lightning_Open_CTI, ...
0
votes
1answer
38 views

How to convert this javascript code to lightning

{!REQUIRESCRIPT("/soap/ajax/15.0/connection.js")} {!REQUIRESCRIPT("/soap/ajax/15.0/apex.js")} var r = confirm("Are you sure?"); if(r == true) { sforce.apex.execute("psaPTO_Accrual","...
2
votes
1answer
37 views

Convert Opportunity javascript button to Lightning Component

I have an onclick javascript button and converted this button to an lightning component(full) using the Lightning Experience Configuration Converter tool. But,when I'm testing the converted button,...
1
vote
1answer
52 views

LWC @api boolean attribute issue

I am trying to pass value to a public boolean property in a web component from a parent lwc. Child JS definition: export default class GsdDseUserProfilePicture extends LightningElement { @api ...
0
votes
1answer
36 views

Add custom validation when table is loaded in LWC

I have a table with few columns. I have to add validation based on first two columns. First column is "Model Number" and second is "Part Number". I am using html table with "for:each". And data is ...
1
vote
2answers
33 views

How the button method gets the value passed by [postmessage]

I have been thinking for too long, but there is no substantial progress on this issue, so please ask everyone, what are the good suggestions and solutions. This is my LWC.JS file import { ...