HP 3000 Manuals

Generating Items [ HP ALLBASE/4GL Developer Self-Paced Training Guide ] MPE/iX 5.0 Documentation


HP ALLBASE/4GL Developer Self-Paced Training Guide

Generating Items 

Sometimes your application may not proceed correctly even though you have
correctly defined all the items.  The most probable cause is that you
haven't generated an item that requires generation.

To generate a single item: 

   1.  Go to the screen where you defined the item.

   2.  Call up the item.

   3.  Press the  Generate  function key.

The Generate menu allows you to generate groups of items in your
application.  Select the Generate option on the main menu to access this
menu.

[]
Generate Menu
NOTE There is no need for you to actually do anything here, although you won't cause any damage if you do test the system.
The generate menu allows you to generate all the defined items within a particular group, or all the items within your application. If you press Return or the Activate Item function key, all the items of the selected type will be generated. When the generation process commences, a number of messages are displayed. If necessary, the generate program is called. A message then advises you which type of items will be generated, and the generation for each item commences. If each item generates without error, HP ALLBASE/4GL displays a confirmation message. However, if an error is encountered, a message appears detailing the errors. This display remains on the screen for about 30 seconds. Generation of the next item then commences. Generate will report up to 20 errors. If more than 20 errors are detected, the generation continues, but no more errors are reported.
NOTE When you call generate, HP ALLBASE/4GL creates a file to log all generate errors. The file defaults to a temporary file called HPTGNERR in your login group and account. Each time an error is encountered by generate, the name of the item and the errors are listed to this file. This means that you can set a generate all going and then leave your terminal. When you return you can look at the file for any errors.
The usual reason for generating a group of items is to update the items to reflect a change in the definition of an item which is resolved during a generate. For example, if you modify the length of a field specification, the change would only be reflected in the screens referring to this specification after you generate the screens again.


MPE/iX 5.0 Documentation