465 questions
0
votes
0
answers
17
views
LWC Quick Action Not Visible in Feed on Case Object
I have developed a Lightning Web Component (LWC) and exposed it as a Quick Action on the Case object. However, the action does not appear in the Feed section of the Case record page. Is it a ...
0
votes
1
answer
42
views
How to call onclick events written on div through jest (salesforce)?
I have created an LWC in Salesforce and am trying to creat Jest tests for it. I have implemented a div in html file and calling the js function using the onclick event as shown below.
<div class=&...
0
votes
0
answers
53
views
How to change the sizing or the layout of the label lightning-accordion-section so that it wouldn't overlap with the buttons in the action slot?
I have an issue with the lightning-accordion-section styling where it overlaps with the action buttons:
screenshot here
Here is my code:
<lightning-accordion allow-multiple-sections-open>
&...
0
votes
0
answers
54
views
Render pdf from jspdf for LWC
I’ve built a Lightning Web Component that uses jsPDF to assemble a multi-page PDF on the fly. In my generateAndPreviewPDF() method, I:
Load jsPDF and custom fonts
Draw a custom header and body onto ...
0
votes
1
answer
62
views
LWC communication Child to parent
I am trying to understand the difference in child to parent communication when doing with custom event via
this.addEventListener
by defining method name in child component definition in parent ...
0
votes
0
answers
32
views
Unable to update JSON object in LWC throwing :1 Uncaught (in promise) error
I have a wire function where i am getting data from apex
get userAddressBookData() {
var selectedUserListBeforeApexCall = this.selectedAddressList;
console.log('selectedUserListBeforeApexCall--...
0
votes
1
answer
883
views
Difference Between Throwing AuraHandledException and Custom Exception in Apex Aura-Enabled Methods
In Salesforce documentation, it is mentioned that Aura-enabled Apex methods should throw an AuraHandledException to propagate user-friendly error messages to the client. However, I have a custom ...
0
votes
0
answers
58
views
handleInputChange data input synchronising to all other rows
I have a LWC which diaplays a table of a custom object called 'Specifications' which a are grouped by Opportunity line items (parent record of the specifications.
The Opportunity row was read only, ...
1
vote
1
answer
52
views
How to change value in tooltip charJS
Im using LightningWebCharts here is the documentation link https://salesforcelabs.github.io/LightningWebChartJS/
I want add 'k' in tooltip value. Tooltip documentation https://salesforcelabs.github.io/...
0
votes
1
answer
396
views
How to hide the Scrollbar while using a Modal from LwC?
I have certain contents under body, but as the contents increases a scrollbar starts to appear as expected. But is there a way to hide it and still the modal is scrollable?
If there's any or anything ...
0
votes
1
answer
164
views
How to Click a Button Inside an LWC Component Using TestCafe?
I'm working on a TestCafe script to automate tests for a Salesforce Lightning Web Component (LWC). I need to interact with a button that is nested inside several layers of components and has specific ...
0
votes
1
answer
157
views
Why is a dynamic picklist query in my Custom LWC component executing twice when added to App Builder and click save?
I have a Custom LWC component exposed on a Record Detail page in Salesforce. This component includes a Design attribute that dynamically queries picklist values. When I drag and drop this component ...
0
votes
0
answers
87
views
How Can I append a recordId with href url in anchor tag
I have a lwc table where I have created buttons. I am using a url inside the href attribute and it is redirecting me to a other page as expected but I need to append the recordId with url inside href, ...
0
votes
0
answers
44
views
Search box input is not getting focused on shift tab
In dialog box, there is one input search box and one close button. On tab click both elements are focusable and readable by NVDA but shift+tab not allowing me to focus inside an search box but instead ...
0
votes
1
answer
102
views
Using Slickgrid Universal 4.7.0, checkbox column not displayed with Salesforce LWC, header displayed not for rows
I am create a LWC component using Slickgrid Universal 4.7.0 for custom datatable. However I can not set the checkbox column correctly. How can I config the option for this?
I already set the ...
0
votes
1
answer
227
views
Apex test class for the for loop is not been covered what needs to be done
public class ItemTypeWrapper {
@AuraEnabled
public Id ItemTypeId ;
@AuraEnabled
public String ItemType;
public ItemTypeWrapper(Id ItemTypeId, String ItemType) {
this....
0
votes
1
answer
274
views
Display record based on record type and and industry and show a green button icon if account is active using lwc how to implement
Write a LWC component to display Account records in lightning-datatable and show checkbox
field (IsActive) as an image (true: green check, false: red cross). Please don’t use @wire
adapters.
Please ...
0
votes
1
answer
45
views
Apex call returns successfully after errror, resulting in issues
I have an Apex call which causes an error (ENTITY_IS_DELETED, but it doesn't matter which error it is). I might be able to fix that error, but now it somehow also returns successfully anyway, so the ...
0
votes
1
answer
118
views
Aura to LWC recursion method migration
I have an older Aura method here that I want to translate to modern Javascript. For some reason I keep getting different output. I console log before recursion (data), then I console log before the ...
0
votes
1
answer
240
views
How to Reflect Updated Account Data in Subsequent Salesforce Lightning Flow Screens?
I'm working on a Salesforce Lightning Web Component (LWC) designed to be embedded in a Screen Flow. This component allows users to modify an Account record's fields and then updates the record using ...
0
votes
0
answers
113
views
Unable to implement V6 in LWC component using JS
The full calendar is not working with V6 in LWC Component.
It throws error
TypeError: Cannot read properties of undefined (reading 'changeView')
when trying to call the ChangeView method from JS
The ...
0
votes
0
answers
97
views
How to hide or encrypt the payloads when API calling is made from js of LWC?
When the API is invoked, you can observe the this.accessToken and the request body in the browser's network tab.
const response = fetch(endpoint, {
method: 'POST',
headers: {
'...
0
votes
1
answer
330
views
LWC setter is not getting called
LWC setter is not getting called.
<template>
{message}<br><br>1. getter value: {displayMessage}<br><br>2. setter value: {updatedMessage}
</template>
import { ...
0
votes
1
answer
485
views
How to expose lighting record edit form on salesforce site
<lightning-record-edit-form object-api-name="Financial_Entity_AC_Detail__c" onsuccess={handleSuccess}>
<lightning-messages> </lightning-messages>
<lightning-...
0
votes
0
answers
1k
views
Hover popup expanding entire row of lightning datatable
I am trying to show User info on hover over Name field in datatable, which is resulting in expansion of entire row rather than just hover popup.
Below is the code for datatable where I am using custom ...