Load Menu Option Table

Before you can set up and test Menu Security in your application, you must run the Load Menu Option Table option on the Security Builder menu to build the application’s Menu Security table.

Tip: Before you package your application for distribution, you should run the Load Menu Option Table option one last time to make sure that the Menu Security table includes your latest menu changes.

You run the Load Menu Option Table option by selecting it on the Security Builder menu. 

When you click the Build push button, VPM Enterprise does the following:

·       Menu Security: VPM Enterprise enters information about all of the menu options on all of the menus in your application into the SVPMMenuOptions table.

The information about the menu options in your application is used on the Menu Permissions dialog to display the list of menu options. It is from this list that menu permissions are assigned.

LoadMenuOptionTable Method

Within VPM Enterprise, you can run the Load Menu Option Table routine with a simple method call of _SCREEN.oApp.LoadMenuOptionTable().

Benefit: This allows you to automate the execution of this functionality as desired.

Program Hooks: Two program hooks have been put in place to help you automate the Load Menu Option Table routine. Both hooks occur when an application is built, either through the Build Application button on the Object Builder or through the Build Application menu option.

·       S<Prefix>UPB1: The first program hook comes before an application is built and calls a program named S<Prefix>UPB1 (if it exists).

·       S<Prefix>UPB1: The second program hook comes after the application is built and calls a program named S<Prefix>UPB2 (if it exists).

To use either of these hooks, you create a program (in any VPME or project directory) with the name shown and add the method call to it.

Tip: These programs can also be used to perform any other functionality you want before and after an application build.



Turning on Security