Salesforce
CRT-450 · Question #197
A developer created a Visualforce page and custom controller to display the account type field as shown below. Custom controller code: Visualforce page snippet: The value of the account type field…
The correct answer is D. Add a getter method for the actType attribute. See the full explanation below for the reasoning.
Question
A developer created a Visualforce page and custom controller to display the account type field as shown below. Custom controller code:
Visualforce page snippet:
The value of the account type field is not being displayed correctly on the page. Assuming the custom controller is properly referenced on the Visualforce page, what should the developer do to correct the problem?
Exhibit
Options
- AConvert theAcccunt, type to a String.
- BChange theAccount attribute to public.
- CAdd with sharing to the custom controller.
- DAdd a getter method for the actType attribute.
How the community answered
(48 responses)- A6% (3)
- B4% (2)
- C10% (5)
- D79% (38)
Community Discussion
No community discussion yet for this question.
