Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [track]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
77 views

Dynamic lightning-button-menu causing infinite loop

I have a lightning-button-menu in my lwc whos options are dynamic based on each record displayed, based on an change data capture its possible that the options will change when the user is viewing (...
ravent's user avatar
  • 35
0 votes
1 answer
776 views

Can't assign value to track property LWC

I'm creating LWC where I need to assign value in '@track selectedValue'. I'm using below code export default class CustomTrackStage extends LightningElement { @track selectedValue; @api recordId; @...
unflagged.destination's user avatar
4 votes
1 answer
323 views

LWC: Tracking a shared imported variable

I'm creating a set of LWR components that can be added to a page declaratively in Experience Builder. Since these components aren't hard-coded to the top-level component, based on a recommendation ...
Matthew Souther's user avatar
0 votes
2 answers
3k views

How to display an account owner NAME instead of Owner.Id in LWC

Please, someone help me to display an Owner Name in LWC datatable instead of Owner Id. I have this apex controller and js code Controller public with sharing class AccountLwcTableController { @...
Vladislav Volynsky's user avatar
-1 votes
1 answer
619 views

how to see previous value of a field in salesforce edited by mistake

I edited by mistake the value of a field. The track history of the custom object isn't enable. Can i do something to see the the old value? Maybe with a query.
user123788's user avatar
0 votes
1 answer
27 views

Don't see apex data

I have such code: JS @track messageBody; @wire(getDataFromController) emailTemplate ({ error, data }) { if (data) { this.messageBody = data[0].Body; //EmailTemplate ...
Yauheni's user avatar
  • 29
1 vote
1 answer
431 views

Track property do not work properly with Object methods

Setup: @track states = { first: true, second: false }; What I'm trying to achieve: I want to check if this.states has any true values. What I've tried Object.values(this.states).some(v => ...
Rechu's user avatar
  • 452
0 votes
1 answer
888 views

Using @track with @wire causing issues with LWC

I am trying to create a custom list view and deploy a LWC that lists records in the list. My component works with dummy data, but once I created an Apex class to execute my SOQL query it is having ...
Lia's user avatar
  • 93
0 votes
1 answer
67 views

Track individual clicks for content delivery

We are looking into Salesforce Content Delivery (CD) to send out marketing material, white papers to our clients. However, CD only creates a unique link per file and reports how many views that file ...
MarcLee's user avatar
  • 115
0 votes
1 answer
1k views

LWC HTML not rerendering after object change NOT Solved

I am having a similar issue as the one linked at the bottom, it looks like the answers are claimed to work, however I cannot seem to figure out wth is wrong with my code that seems to be very similar. ...
Bill Woodson's user avatar
2 votes
1 answer
1k views

Make wrapper attribute reactive in LWC

I will elaborate more than necessary on the issue i am facing, so that if i there is an entirely better approach to implement what i am doing, someone can suggest that. I am building a lightning ...
user2957592's user avatar
2 votes
2 answers
16k views

Concatenate two Values in a LWC (Lightning Web Component)

I am currently grabbing field values from a Lead and displaying them onto a LWC. I am having trouble taking two values and placing them into a variable. Here is my JS: // ********************* // ...
Max's user avatar
  • 486
4 votes
1 answer
2k views

@track array of objects

Let's say I have @track dataSource[] which contains objects {id,price} Why if I for example change the value this.dataSource[1].price = 1234; i can't get changes in markup? Markup <lightning-...
pincet's user avatar
  • 911
6 votes
1 answer
220 views

Basic Question about @track decorator

I have a (probably very) basic question about @track decorator. I modified the helloExpressions LW Component from Sample Gallery as below. Here the values FirstName and lastName are no longer ...
kshitij's user avatar
  • 83
1 vote
2 answers
4k views

LWC tracked variable not changing page

Hello so i am building my component which is suppose to display list. I am using foreach and tracked variable. So here is component html: <template> QuoteLevel {num} <lightning-button-...
Marcin Trofiniak's user avatar
0 votes
2 answers
3k views

LWC: @track binding won't refresh component on value change

I have a component that picks up the value originally from the JS controller but won't refresh after I modify the value in the JS file. Component: <template> <div class={...
Arthlete's user avatar
  • 4,907
2 votes
1 answer
973 views

LWC Access denied error referencing namespace problem

We have a JavaScript utility class containing two properties, like: class DateRange { start; end; constructor(start, end) { this.start = dateToIsoDateLocal(start instanceof Date ?...
Phil W's user avatar
  • 36.7k
0 votes
1 answer
2k views

A @track decorator can only be applied to a public field

I'm getting the following error from Salesforce whenever I try to create a Lightning Web Component app: Action.prototype.finishAction Error [Error in $A.getCallback() [Assert Violation: Compiler ...
Anthony's user avatar
  • 25
7 votes
1 answer
3k views

Array.push() on a @tracked array doesn't cause component refresh in lightning-accordion in LWC

This may be a duplicate of Array.push() won't update Lightning Web Component View However, that is for an @wire case, while this is for lightning-accordion. I am attempting to use the lightning-...
DaveS's user avatar
  • 1,604
12 votes
1 answer
28k views

Array.push() won't update Lightning Web Component View [duplicate]

We are migrating over to Lightning Web Components in the last couple of weeks now and we had some struggles with the arrays in Javascript. On a trackable array, when I call push in a wiredMethod, ...
Selçuk's user avatar
  • 133