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
1
vote
1 answer
powerBI embedded report in Salesforce
I have a powerBI report that I embedded in Salesforce as an LWC. the report has multiple tabs, the LWC shows the report but only the default tab and no option to switch tabs in there. is there a way we can show the tabs toggle in Salesforce?
I have…

Zeid Ameli
- 11
- 1
1
vote
1 answer
Illegal invocation at elementClosest fullcalendar v4.3.1
I'm using fullcalendar library v4.3.1 inside a Salesforce LWC. All was working good in sandbox until I clicked inside an event and I get the following error:
aura_prod.js:999 Uncaught TypeError: Illegal invocation
throws at…

Krmn
- 41
- 5
1
vote
1 answer
eventTimeFormat not working in my fullcalendar library version 4
I'm using a fullcalendar library inside a Salesforce lwc. I need to set the 24 hours format to my timegrid view as now its shown as 3pm, 4pm, etc. I tried adding the eventTimeFormat but it doesn't work. Also tried with the deprecated timeFormat :D.…

Krmn
- 41
- 5
1
vote
1 answer
Salesforce LWC components - Unable to hit debug point in chrome dev tools - sources tab
I am a newbie to salesforce package development and trying to figure out debugging of the LWC components.
I am able to see the custom LWC components in components/c folder in my sources tab of chrome dev tools but any debug point that i place in any…

John Cooper
- 41
- 4
1
vote
0 answers
Salesforce LWC and React application need to upload more then 4mb file to Salesforce from React
I have an LWC component that calls the React application. I uploaded files using Upload - Ant Design. I have a problem, I can upload a maximum of 4 mb. I upload files as FileReader.readAsDataURL() and pass them to salesforce as a string. Then I…

Axelf3000GT
- 11
- 2
1
vote
1 answer
How can I refresh datatable in Wire using refreshApex
@wire(_getContacts,{recordId:'$recordId'}) wiredContacts({error,data}){
this.dataToRefresh = data;
if (data) {
this.contacts = this.dataToRefresh.recordList;
this.ContactsRecords = this.dataToRefresh.cList; …

surinder rana
- 11
- 2
1
vote
1 answer
I don't know how to add a delete button to Lightning-datatable
Here is my Lightning-datatable:
Tell me how to make Delete buttons (in the Action column) and how to delete the line on this button when you click on the Delete button

Jhony
- 63
- 1
- 6
1
vote
1 answer
lwc - how to call a function from within an lwc callback
Havent been able to reconcile this challenge to the docs :/ Hoping someone can point out to me why when this lwc renders (successfully) and it receives an event via its empApi subscription it throws a 'handleGoNext is not defined' runtime error. I…

user1517566
- 348
- 1
- 3
- 14
1
vote
1 answer
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 Applications is a custom object
When creating an…

Jhony
- 63
- 1
- 6
1
vote
1 answer
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 table header so that there is a Montn column with…

Jhony
- 63
- 1
- 6
1
vote
1 answer
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 - completely according to the example from the…

Vitaly
- 11
- 1
1
vote
1 answer
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 using salesforce's fairly recently released API.…

JWL182
- 11
- 1
1
vote
0 answers
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 select from a checkbox 1-2 items to add them to the…

Klosmi
- 11
- 3
1
vote
0 answers
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 as null in the querySelector
html:
…

Fergoso
- 1,584
- 3
- 21
- 44
1
vote
1 answer
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: {
label: 'Client',
disabled: {fieldName:…

Alexia Ribeiro
- 65
- 1
- 8