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

Access static variable from different VF pages from common class

My question is that i have two vf pages and one common class. If i declair static variable frin vf1 and try to access it from vf2 then its not there. how to access that?


Are you using setRedirect(true) while redirecting from first vf page to other ? if yes , then I would suggest to coment the line and try again.



Please mark it as the solution if it answers your question so that others can also take benifit.