Salesforce Certified Platform Developer II (Plat-Dev-301) Exam - Topic 6 Question 51 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?
C) Add getData ({ name; this,name}) , then (result=> { this.account = result}) to the LeadData ( ) function.
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.
D) Add @wire(getData, {name: $name'}) to the account field and delete loadData ( ) because it is not needed.
Florinda
7 months agoCyril
7 months agoJeannetta
7 months agoFranklyn
8 months agoGlynda
8 months agoLashonda
8 months agoJospeh
8 months agoIvan
8 months agoKarl
8 months agoDortha
8 months agoWillard
8 months agoMarlon
8 months ago