ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 308 - Certified Platform Developer II discussion

Report
Export

A developer is building a Lightning web component to get data from an Apex method called getData that takes a parameter, name. The data should be retrieved when the user clicks the Load Data button.

Exhibit.

What must be added to get the data?

A.
Add @wire(getData, (name: $name')} to the account field and this, account = getData ( ) ; to t loadData ( ) function.
Answers
A.
Add @wire(getData, (name: $name')} to the account field and this, account = getData ( ) ; to t loadData ( ) function.
B.
Add this, account = getData (this,name); to the loadData ( ) function.
Answers
B.
Add this, account = getData (this,name); to the loadData ( ) function.
C.
Add getData ({ name; this,name}) , then (result=> { this.account = result}) to the LeadData ( ) function.
Answers
C.
Add getData ({ name; this,name}) , then (result=> { this.account = result}) to the LeadData ( ) function.
D.
Add @wire(getData, {name: $name'}) to the account field and delete loadData ( ) because it is not needed.
Answers
D.
Add @wire(getData, {name: $name'}) to the account field and delete loadData ( ) because it is not needed.
Suggested answer: C
asked 23/09/2024
Robert Andrade
47 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first