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
Rami HawlyRami Hawly 

Detect View State before the page breaks

Hello,

I'm developing a complex visualforce page that might load a great number of records simultaneously. The page is functioning and can process hundreds of records at a time.
I'm using HTML when possible and only using apex:inputFields and apex:outputFields for the obvious reason of conserving data formating on the page.

Unfortunately the page sometimes plummets because of view state limits. I'm trying to figure out a way to  detect or at least guess when the page will reach the limit before it actually fails to load and display the error message to the end-user.

I really appreciate any help,

Rami