For questions about Lightning Web Components (LWC) - the UI framework for the Salesforce platform. When using this tag also include the more generic [salesforce] tag.
Questions tagged [lwc]
503 questions
0
votes
2 answers
Datepicker Input in Lightning Web Component
I want to any pass date value from Datepicker input of lightning web component to PostingDate variable in LWCcontroller.cls
import { LightningElement,api ,track} from 'lwc';
import getInvoiceData from…

Sabahat
- 1
- 1
- 1
0
votes
1 answer
Declaring field public vs private with public accessor lwc child component
I need to pass a parameter from the parent component to a child in lwc. Is there a difference between having the field to be public vs private with a public accessor?
// Private field with public getter
import { LightningElement, api, track } from…

LinhSaysHi
- 642
- 5
- 14
- 30
0
votes
0 answers
Getting all content from html lwc component values into its JS component
I have a custom button popup on Sobject using Aura component which in turn calls LWC component. In .html there is a form which includes text paragraphs and a dynamic custom table which can add/remove rows.
I need to take those text paragraphs and…

Karthik
- 1
- 1
0
votes
1 answer
How to disable options when radio/check is selected in LWC?
I'm new to Salesforce LWCs and wanted some help with this.
So basically I want to figure out how to disable and check off the options for all the months when 'All' is selected.
https://i.stack.imgur.com/3kt7L.png

Sadi
- 5
- 1
- 2
0
votes
0 answers
lwc datatable on record update
Followed this tutorial to work with lwc datatable:
https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.data_table_inline_edit
When clicking 'Save' button after editing values in columns I get an error from…

mSinisa
- 3
- 1
- 4
0
votes
1 answer
Download XLSX File from Salesforce with Data Validation
Can anyone confirm if there is the possibility of downloading xlsx file with Data Validation Logic from Salesforce? I know we can download the xls file as XML Spreadsheet but I would like to know if we can do it using the XLSX file.

Aryama I
- 77
- 1
- 10
0
votes
1 answer
Nested JSON with dynamic Key Values in LWC
I have a JSON Data and I would like to iterate on runStatus, however not all the nodes have runStatus and I am getting error that run.runStatus is Undefined.
How can i fix the error in HTML?
[
{
"Code": "AB",
"Run": {
…
0
votes
2 answers
LWC superbadge step 14 challenge
I am on step 14 of LWC superbadge and getting the following error : We can't find the wire service provisioned function similarBoats() with the data property used correctly in the component similarBoats JavaScript file. Make sure the component was…

M.S
- 41
- 1
- 7
0
votes
1 answer
Cannot see proxy object while using Lightning Web Components
Please find below.
Let me know the procedure to show it as the proxy object in consoles
0
votes
1 answer
Display attachment in LWC
I'm trying to display a image stored in an attachment.
I have tried the following combinations and nothing seem to work:

Alin Paraschiv
- 26
- 5
0
votes
0 answers
Salesforce Community - logging user in via Apex isn't updating current user
We have a lightning community, as well as a VF community that holds a cloudcraze/B2B commerce storefront. Within the lightning community we are calling cloudcraze APIs for things like user registration.
Currently, we are successfully registering…

Ashley
- 1
- 1
0
votes
1 answer
Enter a valid URL and try again : Salesforce Lightning Web Component Error
Hi all
I am using LNS(Lightning NavigationService) in LWC. I have created three buttons for New,Edit ,View in LWC on Account object where i am adding my component in Account record where i can clcik thee buttons i.e. On click of New…

Amit Mane
- 13
- 1
- 2
0
votes
1 answer
How to enable Aura for this class
public List getYearList(){
Integer year = Date.Today().year();
String s1=string.valueof(year).right(2);
Integer Year1= Integer.valueof(s1);
List YearListOptions = new List();
…

Tech Skill
- 25
- 1
- 7
0
votes
0 answers
LWC - Javascript object is not reactive with Wrapper class object
Could you please guide me how to make the wrapper class object reactive in LWC js.
I believe that @track properties are reactive but when I change the value of any property in this.coreAttributes js object, its not reflective in on Save button…

Saravana
- 11
- 4
0
votes
0 answers
how to update checkbox value as checked in salesforce using lwc
how to update checkbox value as checked in salesforce org record by using lwc
ex: I have a req that if the A field (checkbox) value as true then the email alert will send. This A checkbox should be updated via LWC Javascript file (because this is a…

Tech Skill
- 25
- 1
- 7