In this section, the assumption is that you have not done anything about web menus yet. You have a default application with a default menu.
The next 2 tips apply if you want to do any serious development at all - anything more than just play around with a quick, throw-away-and-start-again prototype application.
The default application only gives access to default info pages - the standard pages offered by USoft.
It is good practice to AVOID customizing default pages, even if Web Designer lets you do that. This is because you never know beforehand if you will need the default again.
So, USoft recommends that you:
•Create your own ("non-default") pages before you start "painting" pages. |
If you create your own pages (Tip 1), the default menu will not allow you to navigate to them. It navigates to the default pages only.
So, USoft recommends that you:
•Define your own ("non-default") menu that offers navigation to these non-default pages. •Replace the default menu by this user-defined menu. These two steps are explained in this help topic.
|
To define your own menu:
1. | In the Catalog, on the Menus tab, right-click on the MenuPage node, and choose New. |
A child node called "Menu Page - New" appears.
2. | Right-click the new "Menu Page - New" node and Rename to "MyMenuPage". |
3. | Right-click the "MyMenuPage" node and choose Open. |
| The MyMenuPage object opens in the preview pane. An INSERT option appears in the main menu. |
4. | Using the Insert, Menu Line option from the main menu, insert as many menu options as you like in the menu. |
5. | For each of these Menu Lines, right-click on the Menu Line option in the preview pane and choose "Property Inspector" to open the Property Inspector for that menu line. |
6. | In each case, set the ID, Name, Prompt and URI properties to the name of the non-default info page that you want that menu option to lead to. |
| For example, to go to a page called "MyReservations", set ID, Name, Prompt and URI to "MyReservations". |
7. | Set the Seqno property of each menu line to a sequence number, in such a way that the menu lines have the (vertical) order in which you want them to appear in the menu. |
8. | Save your user-defined menu. |
|
To replace the default menu by your new menu:
1. | Choose Publish, Publication Configurations and find out what is the start page of your application. This is the value of the StartPage property of the Publication Configuration that you use to publish your application. |
| By default, the start page is "ApplicationPage". |
2. | In the Catalog, on the Pages tab, find this page class, right-click on it and choose Open. |
3. | In the Object Tree on the right-hand side, find the "ApplicationMenu" MenuControl object, right-click on it and choose "Property Inspector". |
| The Property Inspector opens for this MenuControl object. |
4. | For the Menu File property, replace DefaultMenu.xml by Menus.xml. |
5. | For the Menu Name property, replace PageListMenu by the name of your menu page (we used "MyMenuPage"). |
7. | Re-publish the application (press F8). |
8. | You may have to stop and re-start the Rules Service. |
9. | Browse the application. You should now see your own menu instead of the default menu. |
|
See Also
Reverting to the Default Menu
Defining a Menu
Displaying a Menu in Your Application
Adding Authorization to Menus
|