Discussions
Pass functions or Global Variables across entrypoints
In SS1 I remember declaring global variable outside of entry points (e.g pageinit, fieldchanged, saverecord) - with these variables and functions I used to process common business logic and then use the values across all entry points. E.G. Calculate and declare summarized value and keep it stored in a variable, then can use this variable in pageinit or saverecord or fieldchanged - this was useful to have common variables and calculations done and populated.
With SS2 however am unable to do this as we do not have objects like scriptContext etc. available outside of entrypoints, thus unable to create global variables.