Salesforce Certified Platform Developer II (Plat-Dev-301) Exam - Topic 4 Question 39 Discussion
There is an Apex controller and a Visualforce page in an org that displays records with a custom filter consisting of a combination of picklist values selected by the user.The page takes too long to display results for some of the input combinations, while for other input choices it throws the exception, *Maximum view state size limit exceeded.What step should the developer take to resolve this issue?
C) Use a StandardSetController or SOQL LIMIT in the Apex controller to limit the number of records displayed at a time.
A) Split the layout to filter records in one Visualforce page and display the list of records in a second page using the same Apex Controller.
B) Adjust any code that filters by picklist values since they are not indexed.
D) Remove instances of the transient keyword from the Apex controller to avoid the view state error.
Millie
7 months agoMalcolm
7 months agoJunita
7 months agoFrederic
8 months agoDominga
8 months agoOsvaldo
8 months agoAshton
8 months agoMarguerita
8 months agoTerina
8 months agoMariann
8 months agoLavera
8 months agoLajuana
8 months ago