List of questions
Related questions
Question 308 - Certified Platform Developer II discussion
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.
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.
D.
Add @wire(getData, {name: $name'}) to the account field and delete loadData ( ) because it is not needed.
Your answer:
0 comments
Sorted by
Leave a comment first