Answer by cropredy for Difference between Transient and Static variable?
In addition to the sfdcfox answer, this simple example shows how static variables are not part of the viewstate, even if you are doing Ajax refreshes But first, a word from the doc on static variables:...
View ArticleAnswer by sfdcfox for Difference between Transient and Static variable?
The main difference between the two (static versus transient) is that static variables exist only once per transaction, but transient variables can exist many times. In other words, static variables...
View ArticleAnswer by crmprogdev for Difference between Transient and Static variable?
Use the Transient keyword to declare instance variables that can't be saved and shouldn't be transmitted as part of the view state for a visualforce page. These variables will not persist across...
View ArticleDifference between Transient and Static variable?
In SF docs, we will get an example of transient variable getting recreated each time the action is done via button. It will help to reduce view state. Although if I used static keyword the view state...
View Article