466 questions
0
votes
1
answer
2k
views
How to pass a data to omnistudio flexcard from LWC while using NavigationMixIn.Navigate
I have a requirement where I have to call a omnistudio flexcard from LWC and pass a row data on click of an id in a datatable. I'm trying to use navigationmixin.navigate to navigate to particular ...
0
votes
0
answers
2k
views
LWC DataTable with 10 Account Records with checkbox and Submit Button
I have LWC component with 10 Account Records with checkbox and submit button. My Question is Whenever I select multiple Account Records and modifies Account field values and click on submit button ...
0
votes
0
answers
46
views
What is the problem with this code snippet?
I wrote this code as JS controller of a component to invoke a VF Page but here it is showing that This error
This page has an error. You might just need to refresh it.
Action failed: c:DataProcessor$...
1
vote
0
answers
2k
views
How to use jsPDF html() method in LWC
I'm trying to figure out how to use jsPDF html() method in LWC.
To use a pure jsPDF is relatively easy, but I didn't find an explanation on how to do it with the jsPDF html() method.
I did a search. ...
0
votes
1
answer
4k
views
How to pass values from JS to HTML tags in lightning web component?
I am trying to pass color to the existing style of HTML tag from Javascript. However, it's not working as I am trying. Please help.
Actual HTML
<template if:true={bmirange1}>
<div style=&...
1
vote
1
answer
745
views
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 ...
0
votes
1
answer
555
views
Load and render website in custom LWC tab
I want to load a website in Lightning itself, instead of opening the link in a new browser tab.
I have created a quick action that calls a LWC(myNavigation) on click of it. The LWC is then embedded in ...
0
votes
2
answers
69
views
Merge improper array of object in proper array of objects
I'm getting this type of data from backend
let a = [
{
QuestionNo: "1",
pageNumber: "1",
response: "xyz",
question: "What is your Name",
...
0
votes
1
answer
743
views
Can I add/embed an action layout to a LWC or Aura Component?
I want to know if an action yalout can be called from a component in Salesforce (aura o lwc).
This is the action layout that I want to add with its predefined fields
0
votes
1
answer
2k
views
How to bundle a Web Component with a CSS, HTML, and JS file using Rollup?
I have a Lightning Web Component (LWC) which has a .html, .css, and .js file.
I wish to measure the bundle size of this one component.
To do so, I wish to bundle my component using rollup. And then ...
3
votes
0
answers
414
views
Configuring Salesforce LWC Local Dev Server on MacOS / Chrome - 500 Error When Calling Apex with Wire
I'm working on a LWC (lightning web component), and have been using the Salesforce Local Development Server successfully, until the point where I use a wire call to invoke the Apex function. I am ...
0
votes
2
answers
2k
views
To Add New Row in lightning datatable While clicking on New Button getting undefined
I am trying to add Row when clicking on New Button in lightning Data table.
Created lightning-button in HTML and call the method to js.While trying to click New button getting Undefined.
Sample Code:
...
1
vote
2
answers
4k
views
LWC Parent-to-Child communication issue
I'm working with two lwc components. Both have a relationship parent-child. In my parent.js I wire an Apex class which contains an objects array:
Parent.js:
// imports...
export default class ...
0
votes
1
answer
1k
views
<NoErrorObjectAvailable> Script error when navigating Flow from Lightning Web Component (LWC)
I'm getting this error based on when I click my LWC "Next" button to save my record edit form and navigate me to the following Flow screen. The data I enter in my LWC still saves fine, but ...
1
vote
2
answers
243
views
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: ...
0
votes
1
answer
237
views
Can you defined a typedef and still use the spread operator to iterate using map()?
I'm trying to define an Object using JSDoc typedefs. So given the following type definition:
/**
* @typedef AccommodationData
* @type {Object}
* @property {string} id
* @property {string} name
* @...
1
vote
1
answer
103
views
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 ...
1
vote
1
answer
3k
views
Salesforce || Refused to connect to 'https://***********' because it violates the following Content Security Policy directive: "connect-src 'self
I'm facing the issue while Calling the api In LWC ( lightning web component)
even though i have added the base URL in CSP ( Content Security Policy ) And in Session Settings but still not understood ...
2
votes
2
answers
2k
views
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 ...
0
votes
1
answer
786
views
Calling LWC Components from aura but component is not rendering
Can I Please get some help to call Lwc from Aura.
Below is code reference and its fetching blank page below
Aura Component code.
Component
<aura:component implements="force:appHostable,...
0
votes
1
answer
715
views
How to reduce duplicated code in tests by extracting parts of it in a function or by using it.each in Jest
I was asked to reduce duplication in my tests by using it.each or creating a function. I am not sure how to go about this. I have other functions in the test suite that are not expecting errors. I am ...
0
votes
1
answer
442
views
Button behaving globally and not for each item in Salesforce LWC
I am quite new to Lighting Web Component. However, I have some experience with other component base frameworks.
I'm creating a button for each item and when the button is clicked for each item. It ...
0
votes
0
answers
590
views
can we convert docx file into PDF using javascript without js libraries
I want to create LWC component in which I have one file selector which is uploading '.pdf', '.png','.jpg','.jpeg','.docx','.doc' types of file in salesforce. but on button click I want that file to ...
1
vote
0
answers
225
views
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 ...
1
vote
0
answers
1k
views
SF Message Channel Error: Cannot find Lightning Component Bundle force-app
I'm following a Lightning Web Component course and have been stuck on the Lightning Message Service lesson. After having created the messageChannels folder under force-app/main/default and creating ...
0
votes
2
answers
643
views
Can we call Lwc or Aura component inside VF Email Template
I have a requirement in which email notification we have to provide a link which will redirect approver immediately to the approval page. I found one relevant solution mentioned in below URL
URL :-
...
0
votes
1
answer
2k
views
event.target.value in Toast is undefined in LWC
I have trouble showing a clicked value on Toast.
I would appreciate it if you could help me!
The details are written below.
Thanks in advance!
[what I want to do]
Show the value of the selected link ...
0
votes
2
answers
1k
views
VS Code cant import custom objects from salesforce
I'm trying to create a custom form to insert a record for Student but I have a problem, VS or there is maybe something else, cant see my custom object named Student
import STUDENT_OBJECT from '@...
0
votes
1
answer
206
views
Can't make table in LWC
I want to make a table like this:
I got the values from the apex in js and it looks like this:
@track data2 = [];
@track data = [];
testClick() {
getExchangeRates({...
0
votes
1
answer
2k
views
Salesforce communities how to edit CSS
I need help in how to identify which .Class CSS in communities I have to edit?
I am able to inspect the what changes needs to be done but unable to understand that in communities how do I edit it as I ...
-1
votes
1
answer
1k
views
Illegal assignment from List<Account> to Map<Id,Account>
Illegal Asiignment From List To Map
Please Help Me On This Error
0
votes
0
answers
2k
views
Err in $A.getCallback()[Err during LWC component connect phase:[Cannot read properties of undefined (reading 'name')]]Failing descriptor: ltng:outApp
ERRORS
•This page has an error. You might just need to refresh it. Error in $A.getCallback() [Error during LWC component connect phase: [Cannot read properties of undefined (reading 'name')]] Failing ...
0
votes
1
answer
4k
views
<NoErrorObjectAvailable> Script error in lightning web component (LWC)
I am trying to create a customer review form but having issues when the user is about to submit it.
Whenever I try to test by clicking the submit button, I keep getting the error below,
Where could I ...
0
votes
1
answer
125
views
when clicked on button "reschedule scheduled service" spinner keeps on loading
trying to reschedule the calim but when clicked on button spinner keeps on rotating and unable to reschedule
see the screenshots for the error
Creatfurniturecontroller.js
createFurnitureServiceInfo : ...
0
votes
1
answer
2k
views
How to add custom html tag in salesforce lightning web component?
I want to include a custom JS and a custom html tag in salesforce lightning component.
For example: I want in include a JavaScript webcomponent in LWC. So I need to include a custom js file and custom ...
1
vote
1
answer
2k
views
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;
...
0
votes
1
answer
2k
views
how to get reference to the element hidden in lwc?
I am learning lwc and I came across this problem. I have the following code.
html:
<template if:true={showLayout}>
<template if:true={showAllTabs}>
<div class="tab-...
1
vote
1
answer
1k
views
Sending parameters with history.back()?
Is it possible to send a track/api variable to the next cmp, while using history.back() in LWC.
this.var1 = false;
var compDefinition = {
componentDef: "c:Component-to-...
0
votes
1
answer
514
views
Aura - Salesforce , "v.remainingBalance" returning undefined
CMP
<aura:attribute name="remainingBalance" type="Decimal" />
<lightning:tile label="Update Amount ">
<div class="slds-grid slds-wrap">
...
0
votes
1
answer
5k
views
LWC : How to make lightning-input-address fields read-only while the address search bar is still available for use?
In order to maintain data integrity, we are trying to implement the lightning-input addresses in show-address-lookup mode. This mode renders a lookup field integrated with google places API, which ...
1
vote
1
answer
2k
views
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
0
votes
1
answer
1k
views
Onblur event fires when clicking on the scrollbar
I have a onblur event on included in the HTML of LWC:
onblur={closeDropdown}
and here is the closeDropdown in the js file:
closeDropdown(event) {
setTimeout( handler: () => {
this.validate()
this....
0
votes
1
answer
438
views
Salesforse LWC not working navigator.mediaDevices.enumerateDevices()
`
navigator.mediaDevices.enumerateDevices()
.then(function(devices) {
devices.forEach(function(device) {
console.log(device.kind + ": " + device.label +
" id = &...
1
vote
1
answer
3k
views
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 ...
0
votes
1
answer
52
views
I'm trying to add the month values for each contact, but I get NaN [closed]
I have an object in which the office(office this is contact) contains months with values:
let data = {
offices : [],
January : [],
February : [],
March : [],
April : [],
May : ...
0
votes
2
answers
3k
views
LWC wire returning Error as [Object Object]
I am trying to get a data table with Account hierarchy using the Lightning tree grid lwc. I have a community page and when I open an account record, there is a parent Id field on each account. I am ...
0
votes
1
answer
592
views
Having Issues using Esri ArcGIS API for JavaScript in Lightning Web Component (require is not defined at eval)
I'm trying to implement Esri ArcGIS JS in Lightning Web Component. While using ArcGIS JS, the sample code uses require function to load modules. In order to do that I'm trying to use require.js. I ...
0
votes
1
answer
3k
views
How to refresh datatable content after insert operation in modal window using LWC
I have a LWC component that displays a datatable showing the related Contacts when a particular record from an Account object is selected from a combobox. A button is also displayed, which when ...
0
votes
1
answer
1k
views
How to display Modal Popup on home when user login to salesforce?
I have created LWC Modal popup which is currently displayed on Home Page when home page gets loaded. I have to display Popup when user login to salesforce and once it came on home page.
If user reload ...
0
votes
1
answer
828
views
How Filter Platform Events with LWC?
I have a lwc component that subscribes to the event WhatsAppMessage, and I have been trying to filter the event platform but I have not been able to get the expected result, since it does not respect ...