New answers tagged

-1

Javier, thanks for your pointers. I finally got it to work in another context. the reassignment worked like this.. this.displayResults = [...this.displayResults, this.searchResult]; The component gets rerendered and captures the new elements.


1

I think the problem is that you are reassigning the variable, and overwritting the actual tracked object. You can both: this.advisor.Name = 'Bossman'; //As fas as it is @tracked Or: this.advisor = {...pAdv}; Or: this.advisor = Object.assign({},pAdv); For not tracked variable or reassignations you need to use {} syntax or Object.assign. If you don't the ...


1

You dont need the @track annotation since you are reassigning the entire variable. Can you try these 2 things? Deep clone the object (just as an attempt) and before assignin the value, assign it to undefined like: this.advisor = undefined; this.advisor = JSON.parse(JSON.strinify(pAdv));


0

The issue was resolved the I removed all instances of required="true" from other fields within my VF page - I'm not sure why that caused an error with rendering, but it did!


Top 50 recent answers are included