Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Handling of Menu

Status
Not open for further replies.

Wendz

Programmer
Aug 9, 2000
47
PH
HI! I'm a programmer which was assigned to work on a program<br>regarding an Information System. I have a problem regarding handling of menus. The enabling of menu depends on the codes via access on passwords. There are different levels on the access and some of its access requires disabling of menus upon initialisation or some of the pads. I have browsed on some resources but it can't find something that discusses menu in a more detailed way. By the way I am using a menu builder to create a menu. Your help will mean a lot! More Power!
 
There are several ways to do this. One of the simplest is to have a &quot;Security&quot; code for each level of security. Each person allowed access is assigned a security level in a table. Each time they need to access a menu you look at their security code and call the menu based on the security level. This is fairly easy to do, first you set up a full access menu. Then copy the menu with a new name (Full Menul, menu-2, menu-3, etc..for each level of security and delete out the items that security level cannot access. <br><br>For example, if the security code for each person is stored in table Associate, field name Security and you have accessed their record:<br>do CASE<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CASE Associate.Security = 1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Do Menu Fullmenu<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CASE Associate.Security = 2<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Do Menu Menu-2<br>ETC...<br><br>Hope this helps<br>The Old Dude<br>
 
Thanks Old Dude. It help me a lot. Is it possible to only disable the pad? More Power!
 
Have you tried manipulating the &quot;Skip for&quot; options in the menu builder? You can disable menu items and menu pads with this (you can use the access level as the expression to evaluate) without bothering to design different menus for different levels of users.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top