Displaying a Menu in Your Application

Previous Next

Once a menu page has been defined using the Menu Catalog, display of the menu is handled by the Menu Control.

At this point, you have two options:

You can have the menu as part of the page, independently of who browses the page. All users will see the same menu.

You can add authorization to menus. This way, you can present different menus to different users, depending on which usergroup the user is in. Usergroups and their top-level menus are specified in USoft Authorizer.

 

To display the menu without authorization rules:

1.Find the name of your application's start page class by viewing the StartPage property of the Publication Configuration that you are using. (By default, the start page class of an application is called "ApplicationPage").
2.In the Catalog, on the Pages tab, find the page class with this name, right-click on it, and choose Open.
The start page class opens in the preview pane in the center.
3.Find the MenuControl object in the object tree on the right-hand side, right-click on it, and choose Property Inspector.
The Property Inspector opens for the menu object.
4.Make sure the Menu File property is set to the value Menus.xml.
5.Make sure the Menu Name property is set to the name of the Menu Page that you want to display.
6.Save your work and re-publish the application (press F8).
7.You may need to stop and restart the Rules Service.
8.Browse the application. The new menu should now be displayed.

 

To display different menus for different users, see:

Adding Authorization to Menus

 

See Also

Web Menus

Web Menus Quick Start

Reverting to the Default Menu