Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - 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
Dominga
2 days ago
C) Add with sharing to the custom controller.
upvoted 0 times
...
Annelle
10 days ago
B) Change theAccount attribute to public.
upvoted 0 times
...
Edmond
16 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
Judy
9 days ago
B looks like a good option too, making the attribute public could help with the display.
upvoted 0 times
...
Donte
16 days ago
C) Add with sharing to the custom controller.
upvoted 0 times
...
Johanna
19 days ago
B) Change theAccount attribute to public.
upvoted 0 times
...
Freeman
29 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
3 months ago
I agree with Kirby. Adding a getter method for the actType attribute should correct the problem.
upvoted 0 times
...
Kirby
3 months ago
I think the developer should add a getter method for the actType attribute.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77