Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [track]

The tag has no usage guidance.

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

Track Push Open real time from Salesforce Marketing Cloud

is there a way we can capture the Opening of a Push Notification by a member for a campaign real time in Salesforce Marketing Cloud and store it in a Data extension. The Push notification is triggered ...
user avatar
  • 1
1 vote
1 answer
64 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 => ...
user avatar
  • 332
0 votes
1 answer
208 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 ...
user avatar
  • 73
0 votes
1 answer
45 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 ...
user avatar
  • 95
0 votes
1 answer
888 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. ...
user avatar
2 votes
1 answer
336 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 ...
user avatar
2 votes
2 answers
8k 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: // ********************* // ...
user avatar
  • 466
4 votes
1 answer
339 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-...
user avatar
  • 687
6 votes
1 answer
169 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 ...
user avatar
  • 83
1 vote
2 answers
3k 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-...
user avatar
0 votes
2 answers
2k 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={...
user avatar
  • 4,441
1 vote
1 answer
521 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 ?...
user avatar
  • 26.7k
0 votes
1 answer
1k 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 ...
user avatar
  • 25
6 votes
1 answer
2k 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-...
user avatar
  • 1,514
8 votes
1 answer
20k 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, ...
user avatar
  • 93