Default Menu on-the-fly change (AREV Specific)
At 14 JUN 2002 05:06:45PM Michael Gwinnell wrote:
(Caution, long winded pre-explanation follows)
Have a situation where we are building a process that creates custom menus on-the-fly for specific empoyees within an Arev user ID. If we had each user logging in under a separate user ID, this would not present a problem, but our (aged) application brings a user in to an Arev account using one of the 6 available common user IDs, and then establishes a unique identity with a login program that validates against the acceptable employee file. There may be 100 users logged in to Arev as user Guppy1, and some of them need to have a special menu.
What we would like to do is set the default Arev menu name to point to the unique menu that user should have access to, so if they hit Ctrl-Break + 'END', or have a program that takes a 'break', they are still presented with their correct menu.
Does anyone know if (where) the default menu name is contained when a user is running in Arev 2.10? Is it in one of the @ variables? And, can it be set programatically for the duration of that Arev session?
Thanks in advance!
At 15 JUN 2002 01:28AM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:
Michael, look in @ENVIRON.SET, also at the user environment definitions (field 37) in the SYSTEM file, and remember to PERFORM "FLUSH MENUS" to removed any menus from the cache.
This will take a bit of messing around to get to behave correctly.
Bear in mind that the AREV menus live in SYSMENU, and that the opening menu can be called in many ways - it may be set from account level (SECUREACCOUNT) as the opening menu, or also by a catalyst("M", menuname) call, and even may be set up by a VOC LOGIN script "RUNMENU DEVELOPER" style call. All depends on how it's implemented in your application.
For more details, we recommend you visit
http://www.sprezzatura.com/search.htm
And search on "menu"
World Leaders in all things RevSoft