What is difference between Java and Apex? What are Trigger best practices? What is a View State?
Anónimo
Que- What is a view state? Ans- View state holds the state/size of the visual force page which includes components, field values, controller state. Salesforce provides the standard size of 135kb for an individual page. If the size exceeds, we can see the error message on the screen. To overcome this error, - use “transient ” keyword. Transient variable store the value temporary thus the size may not increase. - Refine SOQL, Filter the query with AND, WHERE clause so that only desired results can be fetched. -Try to avoid the use of when creating 2 forms. Instead we can use to submit portions of forms. - use custom settings. - use instead of or because these needs to be written inside .