If your viewstate has reach near to 135 kb than you have to show limiited data to user and if some data which you want show only on page and don't need to get back from page then use Transient Keyword before that property.
If you are showing data in table then you have to use pagination.
If your viewstate has reach near to 135 kb than you have to show limiited data to user and if some data which you want show only on page and don't need to get back from page then use Transient Keyword before that property.
If you are showing data in table then you have to use pagination.
If your viewstate has reach near to 135 kb than you have to show limiited data to user and if some data which you want show only on page and don't need to get back from page then use Transient Keyword before that property.
If you are showing data in table then you have to use pagination.
All Answers
Try to make variables as Transient so they will not count towards the size of view state.
Please refer to Salesforce best practices:
https://help.salesforce.com/apex/HTViewSolution?id=000126956&language=en_US
Hope this will help.
Thanks,
Pratik
P.S. If this answers you question, please mark it as "Best Answer" so it will help other community members too.
You can make your variables transient so that they are not included in the Viewstate. eg:
Also while doing SOQL queries, do not query unwanted fields. It takes much memory
If your viewstate has reach near to 135 kb than you have to show limiited data to user and if some data which you want show only on page and don't need to get back from page then use Transient Keyword before that property.
If you are showing data in table then you have to use pagination.