ExamGecko
Question list
Search
Search

List of questions

Search

Question 254 - Certified B2B Commerce Administrator discussion

Report
Export

A developer is on a tight timeline and needs to implement a Lightning web component which can read, create and modify single records. What is the recommended path forward?

A.
Use base components
Answers
A.
Use base components
B.
Write custom functions against a wire adapter
Answers
B.
Write custom functions against a wire adapter
C.
Create an Apex Controller
Answers
C.
Create an Apex Controller
D.
Use Lightning Data Service
Answers
D.
Use Lightning Data Service
Suggested answer: A

Explanation:

The recommended path forward for a developer who needs to implement a Lightning web component that can read, create, and modify single records is to use base components. Base components are prebuilt Lightning web components that provide common functionality and user interface elements, such as forms, buttons, inputs, outputs, and more. Some of the base components, such as lightning-record-edit-form, lightning-record-form, and lightning-record-view-form, use Lightning Data Service to access and manipulate Salesforce data without requiring any Apex code.These components can handle CRUD operations on single records, as well as validation, layout, and error handling3.Using base components can save time and effort for the developer, as well as ensure consistency and performance across the application4.Reference:3: Work with Salesforce Records - Trailhead5,4: Use Base Lightning Components - Trailhead6

asked 23/09/2024
Zakaria Boujli
28 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first