function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
PalakPalak 

Maximum View State is exceeding [ERROR on VF]

Hi all,

 

I am retieving the list of contacts on VF . I have applied pagination, for this i am using standardsetController and for showing records on VF i m creating wrapper of those contacts, beacuse of the check boxes column in pageblocktable.

 

My issue is I cannot set any of the list as null and their view state size is too much.

Please help me.

 

With Regards

Palak

bob_buzzardbob_buzzard

If the viewstate is too large you'll have to do something to reduce it.  Are you querying back lots of fields for the contacts in question?

kiranmutturukiranmutturu

some best practises are there in order to eliminate this metioned in this post have a glance and happy day

 

http://forceguru.blogspot.in/2010/11/best-practise-to-write-apex.html

PalakPalak

Hello,

 

Thanks for replying.

Yes the problem was with fields only. I reduce the number of fields and problem got solved. Thanks a lot 

 

With Regards

Palak