Previous Topic: CAS Programming Interface

Next Topic: Lists


Menus

A menu is a panel that presents the user with a number of options. Each option performs a specified action.

A menu is built from a menu definition that defines the format of the menu, the menu options and their associated actions, and any input fields required to support an option.

CAS supports panel-skipping between menus. For example, entering D.C.O.L goes directly to the last option specified, skipping the display of the three intervening menus.

You can control the behavior of a menu at various processing points, by specifying a menu exit procedure.

When a menu is invoked using the CAS API, CAS builds and displays the menu, and processes the user’s selection. When a user selects an option from the menu, and at other defined processing points, CAS calls the menu exit procedure, if it is defined, to perform installation specific processing.

The action that is associated with a menu option can be a further call to the API. For instance, a menu option on a primary menu often leads to a submenu—you can display this menu by specifying a call to the CAS API as the action associated with the menu option. You can invoke other application components (a list, for example) from a menu definition in this way.