Notifications
Clear all

What is wrong?

1 Posts
1 Users
0 Likes
213 Views
(@katterjohnoctavio)
Noble Member
Joined: 2 years ago
Posts: 721
Topic starter  

Consider the controller code above that is called from a Lightning component and returns data wrapped in a class.

Consider the controller code above that is called from a Lightning component and returns data wrapped in a class.

The developer verified that the Queries return a single record each and there is error handing in the Lightning component, but the component is not getting anything back when calling the controller getSomeData().

What is wrong?

  • A . The member's Name and Option of the class MyDataWrapper should be annotated with @AuraEnabled also.
  • B . The member's Name and Option should not be declared public.
  • C . The member's Name and Option should not have getter and setter.
  • D . Instances of Apex classes such as MyDataWrapper cannot be returned to a Lightning component.

Show Answer Hide Answer

Suggested Answer: A

   
Quote

Latest Salesforce PDII Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: