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

How to include moment Js in Lightning Web Component? I have used the below code

import moment from '@salesforce/resourceUrl/XXX'; import { loadScript } from 'lightning/platformResourceLoader'; export default class ProjectActivity extends LightningElement { connectedCallback(){ Promise.all([ loadScript(this,…
0
votes
1 answer

Can we integrate XLSX and Syncfusion Library with LWC

We have some custom requirement to export our data into excel with custom and conditional cell styling. We have explored two libraries (xlsxjs and syncfusion) and would like to know whether it is compatible with salesforce Lightning Web…
anish samant
  • 183
  • 1
  • 4
  • 13
0
votes
1 answer

Apply Standard Design Community Tokens in the Lightning Web Component (LWC)

As per the https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/tokens_standard_communities.htm, I want to use community tokens in the Lightning Web Component (LWC). In the LWC CSS file, I have applied the textTransform token…
0
votes
1 answer

Lightening component recordUpdated method binding triggers stale data event

I've a lightening component which will call a controller method on update action. Below is the code of the component, controller and helper: Component code:
JPReddy
  • 63,233
  • 16
  • 64
  • 93
0
votes
2 answers

LWC Passing List Parameters to Apex Controller

How to pass List data type from LWC @wire method to Custom Aura Method
AJEET SINGH
  • 11
  • 1
  • 4
0
votes
1 answer

Empty JSON values (LWC)

Hi guys I'm trying to get some "hardcoded" values from an apex Method, but when I write a console.log it's comming empty. Here's the code I'm working on: @wire(getValues) wiredValues({error, data}) if(data) { …
Diego
  • 69
  • 1
  • 1
  • 10
0
votes
3 answers

I want to display a 'loading' spinner until data is loaded completely from the server. How to do this in javascript for salesforce lwc?

I am using 2 functionalities in sequence: 1. GetMetadata 2. GetTableData Using the metadata values the table is prepared and rendered. I want to display a spinner 'loading' until the entire fetch has been made from the server for table data. What…
0
votes
1 answer

Salesforce Not loading D3 V3 Script

I uploaded my d3 version 3 javascript file in a static resource in Salesforce. But when I am trying to load the script in my javascript facing resource not found issue. I am able to load D3 V4 javascript file. But when I am trying to load D3 V3 file…
Aryama I
  • 77
  • 1
  • 10
0
votes
1 answer

Trackable array sorting in Lightning web components

Working on the new Salesforce Lightning web components. I am trying to get the multidimensional array sorted in javascript. I have a trackable array, it has a few columns, i want the data sorted by the total buildings value. Here is what I have done…
Sumchans
  • 3,088
  • 6
  • 32
  • 59
0
votes
1 answer

promise resolution in imperative APEX call

I have LWCA that calls a method in LWCB (service LWC) that makes an imperative call to an APEX method. The problem is that the promise is not behaving as expected. LWCA import serviceLWC from 'c/servicelwc'; handleButtonClick() { …
sunchey
  • 3
  • 3
0
votes
0 answers

LWC Related List Inline Editing with Dynamic Columns

I hope you can help. I'm wanting to create a LWC that uses the Datatable component with Inline Editing. but which get's the columns to display from the Lightning Page Parameters in the JS.Meta file Properties. For instance, the Properties will have…
0
votes
2 answers

how to use carousel in Lightning web component see below code + need some sample example how to implement in lwc

how to use carousel in Lightning web component.need some sample example how to implement in lwc.
bhuvanesh
  • 1
  • 2
0
votes
1 answer

LWC not update view when change @track value

https://developer.salesforce.com/docs/component-library/tools/playground/GcVjmML4/2/edit Why not update @track value on view? And how to force update value? Parent.cmp import { LightningElement } from 'lwc'; var OBG ={ data: …
Aleksei
  • 1
  • 1
  • 1
0
votes
2 answers

Salesforce LWC / Google Maps

lightning-map is useful however I found multiple limitations and I would like to implement my own version, someone knows where I can find an example of how to implement the library of google maps in LWC. Implementing google maps is simple however in…
Hector Bayona
  • 97
  • 1
  • 2
  • 6
0
votes
1 answer

How to Integrate Roles Field from "Account Contact Relationship" to Contacts Object Fieldset

I have a field called Role under fields in "Account Contact Relationship". I wanted to integrate this field in contacts Object fieldset. Since am new to salesforce, I don't have any idea how to do this.
RKCY
  • 4,095
  • 14
  • 61
  • 97