New answers tagged javascript-controller
0
votes
Accepted
Evaluating multiple record criteria in a loop
I'd define some intermediate variables and then evaluate them outside of the loop. Something like this:
let started = false;
let next = false;
let complete = false;
//should be able to use a forEach ...
- 19.7k
2
votes
Accepted
LWC get field value from @wire result (single object) from apex query
As you can see from the console log, data holds both Id and Name, it doesn't hold a MyObject__c object, so you should just assign data to this.record:
if (data) {
console.log("in @wire " ...
- 5,639
Top 50 recent answers are included
Related Tags
javascript-controller × 304lightning-aura-components × 216
javascript × 94
lightning × 91
apex × 48
lightning-web-components × 42
aura × 27
helper × 15
lightning-experience × 14
lightning-design-system × 13
controller × 12
visualforce × 10
json × 7
community × 6
javascript-remoting × 5
lightning-events × 5
aura-attribute × 5
soql × 4
lightning-apps × 4
custom-controller × 4
create-records × 4
aura-iteration × 4
array × 4
attribute × 4
javascript-debugging × 4