Is there any way to be able to set global appvars that are available to all apps in an environment? I'm thinking of something like setting, say, a company code that will be used to filter data in every app. Something similar to the startup program in an app, but at user level.
Announcement
Collapse
No announcement yet.
Setting Global AppVars
Collapse
X
-
If you set a session variable via the login exit program (for example, to store a company code), then use the same name for the session variable in vvIn_Virtual, it will retrieve the value from the session variable
Example for State Code
SQL Data Source - Using State CodeCode:vvUtility_saveSessVar('usStateCode':stateCd);
Code:SELECT cusno, cname FROM democmast WHERE ( cstate = vvin_virtual('usStateCode', 'CA', 'char', 2, NULL, 'true') )

Comment