466 questions
0
votes
1
answer
858
views
Loop the JSON String using filter function by passing array values, Javascript
[
{
"dataType": "BOOLEAN",
"name": "checkbox_confidential",
"isCollection": false,
"flowName": "FlowData",
&...
0
votes
1
answer
524
views
JAWS screen reader breaking keyboard navigation in select list
We are using a component that creates a drop down select that ends up looking like this.
With the JAWS software closed keyboard navigation works perfectly well to move between the items in the search ...
1
vote
0
answers
288
views
Chart JS not working with large dataset but when I have small amount of data chart is working fine
I am using chart js in LWC and I have data which have more than 3000 records and more than 500 labels.
`
getData() {
labels: this.uniqueLabels,
datasets: data: this.data,
...
0
votes
0
answers
2k
views
Update checkbox in lwc in the js file
I'm trying to update a checkbox field via javascript before the submit. I'm getting correctly the lightning input field (I can see in the console) but is not getting saved. I also tried with a text ...
1
vote
1
answer
51
views
I need to create a new expense card
I need to create a new expense card, the input parameters are Amount, Date and Description.
Fields that must be filled in the expense card to create it:
Card keeper is contact
Months Expenses ...
1
vote
1
answer
99
views
I don't know how to create an exact copy of such a table
I need to create a table in order to work further, but unfortunately I have no idea how to create this table
I tried to make this table with tags, but it didn't work. I don’t know how to make a ...
0
votes
1
answer
415
views
Not able to get desired output for the following code
outputimage
.JS file
import { LightningElement, wire } from 'lwc';
import getContactList from '@salesforce/apex/ContactController.getContactList';
export default class ApexWireMethodToFunction ...
1
vote
1
answer
2k
views
Salesforce lwc lightning/modal dispatchEvent
Documentation - https://developer.salesforce.com/docs/component-library/bundle/lightning-modal/documentation - modal - API 56
When I try to fire an event from the modal window to the parent window - ...
0
votes
0
answers
1k
views
DataTables unable to display the field of related object in LWC
I have a data table which displays 'Name' field and 'Address' field (Address related to another object). The 'Name' field is displayed properly but if I iterate over the list in html for pcon....
2
votes
0
answers
948
views
How to convert npm module for use in Salesforce LWC
I want to use the below npm package 'wordwrapjs' in a lwc Salesforce component but lwc does not support the out of the box. Is there an easy way to convert an npm module into a lwc component?
Guess I ...
-4
votes
1
answer
7k
views
How can I reduce the size of doughnut chart and fixed the doughnut size
I have a doughnut chart built using chart js. I want a fixed-size of doughnut chart no matter how much data it has. check the image how bad it is looking It has 371 legends. How can I fix the size of ...
1
vote
1
answer
2k
views
Is it possible to pass records into a collection, and then display them, in a lightning web component?
I'm in the midst of creating a lightning web component to visualise salesforce records in the concept of a timeline. I've managed to create my timeline component, styling etc, and retrieve the data ...
0
votes
1
answer
506
views
Input field mendatory LWC
I need help to put the input fiel required. When a user click on Search, if the search field is empty, an error message should show in red.
```<template>
<div class="slds-grid">
...
0
votes
0
answers
2k
views
LWC - How to add validation to LIghtning-input
IN HTML
<lightning-record-edit-form object-api-name="Lead">
<lightning-messages></lightning-messages>
<lightning-input-field class="inputCmp" ...
1
vote
0
answers
3k
views
In a Salesforce LWC app how can I add checkbox values to an object's field and show it in a data-table?
I have made my research, but couldn't find the answer.
I have a Lightning App in Salesforce, I used LWC Js and Apex.
In one part of the app the user can add a 'desk item' (by typing its name) and ...
0
votes
1
answer
2k
views
How to save a selected item from a picklist, a date to the same object, then the selected date and item should not be available, all in in LWC/Apex?
I'm trying to create a Salesfroce lightning reservation app.
In that app the selected User can select an item ('desk') from a picklist, then pick a date from a datepicker.
When a user clicks on the ...
0
votes
1
answer
3k
views
LWC: Sibling component not rerendering after Parent is updated
I have an LWC which acts as a ToolBox: a user selects a tool from the ToolBelt and then a WorkArea is populated with the business logic for that tool.
Components involved:
Parent: Wrapper.js
Child 1: ...
0
votes
2
answers
1k
views
Redirect to Dashboard by embedding Dashboard URL inside LWC
I have a custom Dashboard and a custom LWC and an Account record Page as shown below.
https://i.sstatic.net/8JFeR.png
On Dashboard tab, I have embedded the custom LWC and inside which I have added ...
-1
votes
2
answers
632
views
Arrow function and Promises in Lightning Web Components
I have seen many examples of Promises but not able to understand meaning of
"xyz(()=>{"
in codes. Sometimes there are two equal signs in same line. Please help me understand. Also, along ...
0
votes
0
answers
702
views
why wont lwc nested in an aura component work as expected?
Hi all first attempt at this aura with nested lwc sorry so may be (hopefully) a simple implementation error.
I have a basic lwc component embedded in an aura component. I know the lwc serverside/apex ...
0
votes
2
answers
3k
views
"SFDX: Deploy Source to Org" function missing
Hello I have created a LWC project in VS Code but the "SFDX: Deploy Source to Org" option is missing when I Right-click the default folder under force-app/main.
I have authorized the org and ...
0
votes
1
answer
4k
views
LWC @wire decorator not getting response from controller class. how to verify response from controller class using @wire decorator in LWC?
I am new to LWC. Kindly help me.
I am trying to fetch value from controller class in LWC component.
But every time I try to fetch value from controller class, it comes as undefined.
Here is my code:
...
0
votes
1
answer
827
views
LWC Chart js: How to display dataset labels on each of the bars below in single horizontal stacked bar chart js
I have built a single horizontal stacked bar chart using LwC with ChartJS version v2.8.0,
Now I want to display the dataset labels like 'Completed','Waiting','In Progress' on bars below corresponding ...
0
votes
2
answers
2k
views
Can not make header sticky in Salesforce LWC - Data table
I am trying to make my header sticky with overriding css with "Top:0"
it seems to be over written by something else.
I did try !Important but nothing seems to help.
0
votes
1
answer
815
views
Apex returns the Same Result when called through SetInterval
I am trying to implement a progress bar indicator for APEX Jobs that are running in the background, however when I call the APEX method through the setInterval method, it is returning the same values ...
0
votes
1
answer
4k
views
LWC: How to display data values in chart js bars in Lightning Web Components(LwC) salesforce
I have built simple bar chart in salesforce using LwC with ChartJS version v2.8.0, so now I am trying to display the data values on each bars using chartjs-plugin-datalabels v1.0.0 plugins. I have ...
1
vote
0
answers
1k
views
Remove class from elements created via for:each LWC
I am trying to remove the 'hide' class from the anchor tags. But querySelector shows as null. I believe this is becuase the li elements are not in the DOM at the time of rendering hence it's showing ...
3
votes
1
answer
4k
views
Problem with Trailhead "Get Hands-On with New Alert, Confirm, and Prompt Modules and Components"
I can't to complete challenge "Get Hands-On with New Alert, Confirm, and Prompt Modules and Components".
I'm pretty sure this challenge have a bug and I want to know I made a mistake or this ...
1
vote
1
answer
6k
views
How to disabled a button on lightning datatable based on field value?
I want to disabled a button on a lightning datatable based on a boolean field, I came to this solution:
const columns = [
{ label: 'Client', type:'button',
typeAttributes: {
...
0
votes
1
answer
6k
views
Uncaught Error in $A.getCallback() [Cannot read properties of undefined (reading 'setParams')] salesforce Aura
error
PrescriptiveResolutionTool.cmp
<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId,lightning:isUrlAddressable" access="global" controller="...
0
votes
1
answer
51
views
How to rotate td element correctly [duplicate]
I'm rendering a table that represents (pretty much) the layout of a parking lot:
The thing is, I want to rotate the grey cells containing the parking space number 90 degrees, to look like this:
I ...
0
votes
2
answers
2k
views
In LWC JavaScript controller splice method not working with @api variable which is an array
In console this.unselectedPlayerList.length is not shown, It will shown before using splice method. So I have doubt in splice method.
export default class MakeYourTeamChild extends LightningElement {
...
0
votes
1
answer
2k
views
field not appearing in lightning-datatable from query in controller
I am working on a datatable to create a user view and bring in permissionSetAssignments related to the user record page for each user by AssigneeId
I am able to get the table to populate as if there ...
1
vote
1
answer
825
views
Fields in a Block of a Step disappears while designing an Omniscripts
I'm working on a Omni Scripts (Vlocity). I'm designing a screen flow where I have Asset Mgmt Quote, Tax, Doc Request, Sales, Pricing etc., screens. These screens are set by the record Id of the ...
0
votes
0
answers
716
views
Screen Flow Error on an External Web Application
I am embedding a Salesforce screen flow in my web application using Lighting Out feature. It worked for very basic screen flow with 2 screens but when I used a complex screen flow it is showing me ...
0
votes
1
answer
3k
views
how to use four different AND condition in single soql query?
I have two soql on same object but where condition is vary by single condition mentioned below, I need to combine both and make it as single soql, can someone help me how to do with below soql after ...
2
votes
2
answers
513
views
No keyboard accessibility on LWC tabs?
I have run into an accessibility requirement in building an LWC where the user must be able to use the keyboard to tab across tabs in a tabset (what a mouthful!).
I have a lightning-tabset with three ...
3
votes
0
answers
556
views
LWC OSS & Jest - Cannot create elements to test as createElement no longer exists
I'm trying to write a unit test for my open source LWC but cannot complete the test as the createElement member from the LWC package no longer exists. I have been following the docs on lwc.dev but ...
2
votes
1
answer
7k
views
onsubmit event not working for Lightning Record Edit Form
According to the Lightning Web Component documentation, https://developer.salesforce.com/docs/component-library/bundle/lightning-record-edit-form/documentation, you should be able to create an ...
0
votes
1
answer
1k
views
I am using button in Lightning table and i wish to remove the button border. I try to give css class in typeAtributes but it doesn't work
{ label: 'Name', fieldName: 'Name', type:'button',initialWidth:200,typeAttributes: { label: {fieldName: 'Name'},class:"borderRemove" },sortable: true}
//css class
.borderRemove{ border:none; ...
0
votes
2
answers
536
views
Sort an array of different values in JavaScript
I have a use case where I need to sort two different lots of values in the same go.
Basically, I'm building a Lightning Web Component and need to display a list of records with these sorting ...
1
vote
1
answer
11k
views
This page has an error. You might just need to refresh it. Action failed:
'cmp file'
<aura:component >
<aura:attribute name="aval" type="Integer"/>
<aura:attribute name="bval" type="Integer"/>
<...
0
votes
1
answer
264
views
getting value in front of checkbox
<template if:true={allFolderNames}>
<template for:each={allFolderNames} for:item="fName">
<div key={fName}>
<div class =&...
0
votes
1
answer
3k
views
Lightning-record-view form is not displaying the record with the id that is fetch from an apex class. Salesforce LWC,Apex
I have a record view for which the id is from apex class and then wired it and assigned to a variable, but the record is not displaying. below is my code.
apex class to get the record id of the record ...
0
votes
1
answer
3k
views
Apex method not executing when called from LWC component
I have written simple logic to call the apex method at the time of initialization of page load and in return I have returned the boolean value from the apex but the Apex method is itself not getting ...
1
vote
1
answer
2k
views
How to write an APEX @test for a picklist method?
I was searching for answears but I couldn't find it. It might be a beginner question, anyhow I am stuck.
What I am trying to write is a test in Apex. Basically the Apex code gets field names from one ...
1
vote
1
answer
989
views
APEX not allowing queries of 3 levels or more relationships
I am having a dilemma of what kind of query shall I make
Imagine that I'm inside a Details View of an object named Merchandise and of course, with the scope of LWC coding here, the recordID is focused ...
0
votes
1
answer
442
views
Salesforce -- Anyone experiencing weird behavior of "wire"?
Been learning Salesforce for a month now and this is the first weird stuff I have encountered and not a single documentation was able to help me
I have imported the wire from lwc properly
But whenever ...
0
votes
1
answer
4k
views
How can I fix input width and label spacing to match surrounding lightning inputs
I have a LWC, there is a section which comprises of filters. Most of them are standard lightning-inputs, but two of them, are custom lookup components. The problem is, I can't find a way to make them ...
0
votes
1
answer
1k
views
LWC tree grid not rendering the data
tempdata in consoleHi iam creating an lwc component for tree grid view i have get the data from my controller but it is not rendering into the user interface.
My js code
import { LightningElement, ...