SeeView Manual

SeeView Language Elements
HP NonStop SeeView Manual526355-004
5-9
Menus
Productions can invoke other SeeView programs or scripts contained in EDIT files or
caches by using the INVOKE statement. This provides a way for menus to invoke
external menus and sections, as well as declare external procedures. This permits
extensible development and maintenance of external menus and procedures. The
External menu item under SeeView Extras provides an example. (See Example 5-15
and Figure 5-13.)
Example 5-5 provides an example of a SeeView program that uses menus to provide
device type options and system utility functions. When you select a menu item
referencing the PullDown procedure, a menu is pulled down below the calling menu.
See Figure 5-2.
Prompt Productions
When a left arrow symbol is followed by a question mark (<==?), the production is
called a prompt production. A prompt production associates user input text with a
menu item when the item is invoked. See Example 5-6 and Figure 5-3.
Menus can be declared empty and dynamically generated with the output from other
programs or through programmatically generated strings internal to the SeeView
program.
Example 5-6 uses pop-up prompts to prompt for Backup or Restore options. When you
select a Backup or Restore menu item option, a pop-up prompt appears below the
calling menu. When you respond to the prompt, the appropriate procedure (?PROC
Backup or ?PROC Restore) executes.
Figure 5-2. SeeView Output From the Program in Example 5-5