Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam CRT-450 Topic 7 Question 43 Discussion

Actual exam question for Salesforce's CRT-450 exam
Question #: 43
Topic #: 7
[All CRT-450 Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Delbert
1 months ago
Personally, I'd go with D. Converting the data type is the most straightforward solution here.
upvoted 0 times
...
An
1 months ago
Haha, I bet the developer is kicking themselves for not converting the Type to a String. Classic mistake!
upvoted 0 times
Annelle
2 days ago
B) Change theAccount attribute to public.
upvoted 0 times
...
Edmond
8 days ago
A) Add a getter method for the actType attribute.
upvoted 0 times
...
...
Antonio
2 months ago
B looks like a good option too, making the attribute public could help with the display.
upvoted 0 times
B looks like a good option too, making the attribute public could help with the display.
upvoted 0 times
...
Donte
8 days ago
C) Add with sharing to the custom controller.
upvoted 0 times
...
Johanna
11 days ago
B) Change theAccount attribute to public.
upvoted 0 times
...
Freeman
21 days ago
A) Add a getter method for the actType attribute.
upvoted 0 times
...
...
Pete
2 months ago
I think the answer is D. Converting theAccount.Type to a String should fix the issue with the display.
upvoted 0 times
...
Johnetta
2 months ago
I think changing theAccount attribute to public could also solve the issue.
upvoted 0 times
...
Mertie
2 months ago
I agree with Coral. Adding a getter method for the actType attribute should correct the problem.
upvoted 0 times
...
Coral
2 months ago
I think the developer should add a getter method for the actType attribute.
upvoted 0 times
...
Susana
2 months ago
I think converting theAccount.Type to a String could also solve the issue.
upvoted 0 times
...
Dick
2 months ago
I agree with Kirby. Adding a getter method for the actType attribute should correct the problem.
upvoted 0 times
...
Kirby
2 months ago
I think the developer should add a getter method for the actType attribute.
upvoted 0 times
...

Save Cancel