Questions tagged [create-lwc-app]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
31 views

Why isn't my LWC passing the values on submit to my apex class?

I've created an lwc that is called in a flow, but when I run it the form doesn't submit and the values aren't passing to the apex class. I can't figure out why. The form allows me to populate the ...
0
votes
0answers
13 views

how to preselect rows in a lightning data table in LWC?

I passing a custom link column in a data table using a custom data type and upon clicking the link (record detail page) I can pass the selected row information to the child component and i am ...
0
votes
1answer
24 views

Lightning Input fields

Can I create a lightning record form which is not related to any object it just checks the input values of the fields and posts the toast message. Example I want to create a quiz application wherein I ...
1
vote
1answer
66 views

Lightning Open source use of base components

A few days back an npm package for base lightning components was released Base Lightning Components With this I am expecting to use base lightning components like my favorite lightning-datatable in a ...
0
votes
2answers
88 views

Show and hide in LWC

There 3 records fetch by query and since I using iterator It shows 3 buttons as well whenever I click any show button it expands all 3 records I just wanted to expand only that record which button I ...
0
votes
1answer
18 views

Lwc showtoast multiple line

Does anyone know how to implement myltiple line in LWC showtoast? I only see workaround using aura but not lwc please help
0
votes
1answer
36 views

Query Selector is not working when I am putting inside renderedCallback Lifecycle hook in Lightning Web Component

I am creating a variable crashride and doing querySelector inside renderedcallback then I am using that variable inside another function. But if I directly say this.crashride inside the function ...
1
vote
2answers
88 views

Invalid mutation LWC

I'm trying to clone the array of records that is passed to the component and add some additional attributes to the cloned records however I always get the 'Invalid mutation: Cannot set "...
0
votes
1answer
36 views

Can't use lightning components in create-lwc-app

I created create-lwc-app (with Electron) and the build breaks when I try to use lightning-textarea for example (Module not found: Error: Can't resolve 'lightning/textarea' in .....'). Are those not ...
1
vote
1answer
103 views

LWC Component Tabs are not getting refresh, when moving back and forth on different tabs in the Lightning App [duplicate]

I created an LWC component with lightning-radio-group and added it to the Lightning App, it only shows which value is selected by the user. As I selected value and move the back and forth on the tabs ...
0
votes
0answers
55 views

LWC pub sub : subscribing component fetching stale data from apex

I am having two separate LWC components on the App Page. One is for adding Team members(Call it A 'members-skills') and other for showing all the team members(Call it B 'Team list'). Current ...
0
votes
1answer
136 views

Refresh button with time in lwc?

I have kept the refresh button my requirement is when I click the refresh button it needs to show the time for each time refreshing the page or record there is any resolved solution? Like this, I need ...
0
votes
1answer
54 views

Named Exports in Lightning Web Component

Can we have named export in Lightning Web Component? In ES6 module there are two ways of exporting module: Default Export Named Export I am able to find deault export in lwc export default class ...
6
votes
3answers
292 views

Is curly brace optional in lwc import statement

Below is my JS code in LWC: import searchBears from '@salesforce/apex/BearController.searchBears'; import { LightningElement, wire } from 'lwc'; I would like to understand why some import statements ...
1
vote
0answers
186 views

How to make font-awesome icons work on Lightning Web Components?

Downloaded the latest version of the Font Awesome Icons as a .zip file, I extract the files and uploaded the file all.css as a static resource in my scratch org. Below is my html <i class="fab fa-...
0
votes
1answer
338 views

how to pass data from form made on LWC to visualforce page

I've been trying to connect paypal with salesforce using paypal api: "https://www.paypal.com/sdk/js?client-id=sb&currency=USD"> the problem, i'm not able to implement this api in lwc but i ...
0
votes
2answers
165 views

how to pass data from child window to parent window using lightning web component

how can i pass the data from child window to parent window using lightning web component to populate the new window i used this code popup = window.open("fileName", "Popup", "width=600,height=700"); ...
1
vote
1answer
82 views

How to export flow to external website

I am trying to use flow in my local as mentioned here This is how the code looks like: And I'm getting this CORS issue: Access to XMLHttpRequest at 'https://casesrnd-dev-ed.lightning.force.com//...
0
votes
2answers
538 views

How to fetch new data in Lightning-record-form? LWC

I am facing an issue with getting the latest data on a simple search and update form that i have made in LWC. All i am trying to do is to search a case, get the details and then update it. It works ...
2
votes
2answers
305 views

Getting this error in the LWC Component? How can we resolve it?

<template for:each={fields} for:item="fields"> <tr class="slds-hint-parent" key={fields.id}> <td role="gridcell"> <div class="slds-truncate">{fields.value1}​</div> ...
0
votes
0answers
60 views

What is Equivalent of $A.getReference(“$Label.c.” + customLabelName) in LWC? [duplicate]

In Lightning Component we can get the custom label value dynamically by passing parameter using below - $A.getReference("$Label.c." + item); What is equivalent in Lightning Web Component ? How to ...
0
votes
1answer
456 views

Lightning Web Component dynamic action button name

I'm trying to get a dynamic lightning button using Lightning Web Components, what I currently have is a wrapper class which builds the necessary data I need and outputs it neatly in a table. This is ...
5
votes
1answer
353 views

How to bypass immutable proxy objects when using an external and old jquery library in LWC

Please note I'm fairly new to LWC and even SalesForce (like barely 2 weeks into it). I'm trying to use SlickGrid with LWC, note that this jQuery lib was created over 10 years ago, and I got that ...
1
vote
1answer
248 views

How to set a unique class for each item in an iteration? (LWC)

In a Lightning Web Component, I am displaying a list of images. I want to change how the image is displayed on mouse over (hover). How can I determine which item from the list triggered the event? ...
0
votes
0answers
113 views

Can I use lightning out on Heroku to show LWC?

I have created a LWC in my Salesforce Org. This LWC uses Salesforce org data like account, contacts etc. Now, I need to show this LWC on Heroku app. Can I use Lightning out to do this? Or is there ...
0
votes
0answers
89 views

Hook into before unload of salesforce standard tab in lighting web component

Is there any way to detect and execute some JavaScript method before unload of salesforce standard tab inside LWC.
3
votes
1answer
135 views

Difference between create-lwc-app and SFDX cli

Hello Salesforce community, I'm not sure where to ask the question so I'll ask it here. I'm beginner with LWC and Salesforce (but senior as frontend developer). Can you explain me the difference ...
0
votes
2answers
1k views

Prepopulate values in lightning record form lwc

I’m trying to create one lwc component, where I need to prepopulate some values including lookup in lightning-record-form. Is it possible to do this in lwc?
2
votes
0answers
52 views

Run LWC open source app on HTTPS instead of HTTP

Hi I am playing with LWC open source and want to host it on HTTPS, default it is on HTTP. I ran the below to run app on http; npx create-lwc-app my-app cd my-app npm run watch App runs ...
2
votes
1answer
323 views

lwc-services is not recognized as an internal or external command

I am trying to run a hellow world app in LWC open source and after "npx create-lwc-app my-app" when I cd in the dir and run "npm run watch" I get the below error. E:\Development\LWC\workspace\dev>...
0
votes
2answers
882 views

How to create a custom lightning web component for Knowledge Articles to show article title and article body only?

I have been trying to create a lwc that will only show the article title and body within our community. so far I am running into some trouble with the lightning record view form commnd and assigning a ...
4
votes
1answer
153 views

lwc : npx create-lwc-app not working

I am running the command and getting the following error : npm ERR! code ECONNRESET npm ERR! errno ECONNRESET npm ERR! network request to http://registry.npmjs.org/create-lwc-app failed, reason: ...
1
vote
1answer
203 views

How to view new LWC?

I want to play around with the new Lightning Web Component announced earlier today. I have Node.JS downloaded and I'm running a local server, but I'm unable to see anything at the address '0.0.0.0:...