by Bernd.N » Mon Oct 12, 2015 7:05 pm
Hi Dean,
I guess there are many ways to work with scopes, here is one:
We use a module "base" which holds a form "_base" which is the base root of all other forms in other modules (via several inheritance steps).
In that module "base", we defined about 29 scopes for all main modules respectively themes, e.g. scopes.person, scopes.project or scopes.security .
That way, all scopes are global, and a variable can be accessed everywhere, like scopes.person.currentPersonID (which holds the UUID of the current user).
So our global variables are distributed to several top-level scopes, which makes it easier to keep them apart and to guess the context to which they belong.
In other words, to answer your question, you can define yourself any top-level scopes you need.
Bernd Korthaus
LinkedInServoy 7.4.9 SC postgreSQL 9.4.11 Windows 10 Pro