Questions tagged [lwc]

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.

503 questions
0
votes
1 answer

Update Information Using DML in Aura

I've been training Lightning Components by myself and I'm creating a modal that shows the user a video. The user has the option to tick a checkbox which prevents the modal to show up again. My question is: how can I change the value from an object…
0
votes
1 answer

Salesforce LWC Uncaught (in promise) TypeError: Cannot read property 'Symbol(ViewModel)' of undefined

I am getting this error when running a Salesforce scratch org application; aura_proddebug.js:274 Uncaught (in promise) TypeError: Cannot read property 'Symbol(ViewModel)' of undefined at getInternalField (aura_proddebug.js:274) at Object.update…
John Mutuma
  • 3,150
  • 2
  • 18
  • 31
0
votes
0 answers

Unable to test setter/getter method inside of LWC using jest testing framework

I am trying to test LWC components.js using jest. There is a setter method(Step) inside of the LWC components js file, but I am unable to test the setter method. I tried the solution using mock that the jest provided for the setter method. Another…
0
votes
1 answer

Issue with lightning carousel

I am facing some issues with a lightning carousel that I am building in lwc like it is showing only 5 to 6 images inside the carousel and remaining are not showing up. If there is any limitation for the number of images could you please suggest the…
SF_32
  • 1
  • 1
-1
votes
1 answer

What should I Do ? the Salesforce LWC components continously showing this error

**This is An Apex Class Calling From Parent JS. public with sharing class accountProvider { @AuraEnabled public static List searchContact(Account objAcc){ Id accId = [select Id,Name from Account where Name =:…
-1
votes
1 answer

LWC1058: Invalid HTML syntax: unexpected-equals-sign-before-attribute-name

I'm not a developer and I'm trying to get chatGPT to write me a Lightning Web Component (LWC) on Salesforce. I've managed to get a few things done, but I'm stuck on a problem that I can't seem to understand. My issue seems to be that all the IF…
-1
votes
1 answer

Illegal assignment from List to Map

Illegal Asiignment From List To Map Please Help Me On This Error
-1
votes
2 answers

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 with that please drop a link from where I can easily learn…
-1
votes
1 answer

vsCode can't retrieve/deploy anything

Working with Salesforce, org is authorised, everything works fine until it doesn't and there's no error code or anything. In the morning I retrieved a few files I had to change, 10 minutes later when I needed to retrieve another one, it kept…
-1
votes
1 answer

How to display Map's list value based on 1 key in Apex Salesforce?

Hello beautiful people, I have a scenario where I am defining a Map with string key and a list. Now, I want to put values in a list one by one and also display them using the single Key. Example code - Map> accountMap = new…
Praveen Behera
  • 444
  • 2
  • 8
  • 17
-1
votes
1 answer

How to create popup in lightning web component

Page which will display New Milestone popup in the org, there should be one button for Add new milestone. On click of this button, popup will ask for milestone details and after click on save button this new milestone details will add to…
Kavita
  • 1
  • 1
-1
votes
1 answer

How to overlap a picklist field dropdown over a lightning card in LWC?

I have tried inserting the below css, .table-responsive, .dataTables_scrollBody { overflow: visible !important; } But still it does not work. When i use a dropdown picklist field over a modal, the below css helps, but not in lightning…
-1
votes
1 answer

I need to compare two dates and display a icon based on the comparison out come. But the if condition is failing and i get only else outcome

connectedCallback() { var q = new Date(); var m = q.getMonth()+1; //january is 0! var d = q.getDay(); var y = q.getFullYear(); //var date = new Date(y,m,d); var formattedDate = new Date(y,m,d); …
-1
votes
1 answer

Differentiating Types of API (Apex) Exceptions In JavaScript Try/Catch

In a Lightning Web Component, I'm making an API call to an Apex method, which can throw an exception. Currently, in the catch block, there's code checking for a specific string in the exception, b/c if it's a certain type of exception we want to…
jbyrd
  • 5,287
  • 7
  • 52
  • 86
-1
votes
1 answer

LWC :how can i display the list of Objects in a drop down list and when we select an objects it should display it fields

Lightning web Components to display list of Objects in a drown list. and display fields of selected objects
1 2 3
33
34