ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 248 - Certified Platform Developer II discussion

Report
Export

A developer is developing a reuseable Aura Component that will reside on an sObject Lightning Page with the following HTML snippet:

<aura:component implements="force:hasRecordId,flexipage:availableForAIIPageTypesM>

<div>Hello!</div>

</aura:component> How can the component's Controller get the context of the Lightning Page that the sObject is on without requiring additional test coverage?

A.
Set the sObject type as a component attribute.
Answers
A.
Set the sObject type as a component attribute.
B.
Add force:hasSobjectName to the implements.
Answers
B.
Add force:hasSobjectName to the implements.
C.
Use the getSObjectTypeQ method in an Apex class.
Answers
C.
Use the getSObjectTypeQ method in an Apex class.
D.
Create a design attribute and configure via App builder.
Answers
D.
Create a design attribute and configure via App builder.
Suggested answer: B
asked 23/09/2024
Evelina Turco
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first