Previous Topic: ENPTUI for NPT Implementations

Next Topic: Assigning Sequence Numbers for Actions

Creating Menu Bars

You can generate DDS menu bars instead of CA 2E Action Bars with ENPTUI. To indicate whether to generate the run-time action bars or DDS menu bars for NPT, use the model value:

YABRNPT

This model value is used for NPT generation only and can be overridden at the function level with function options. The Panel Design Values panel from the Display Model Values panel (YDSPMDLVAL) displays this model value.

Valid values are:

*ACTBAR = Create CA 2E Action Bars, default for models created prior to COOL:2E Release 5.0.

*DDSMNU = Create DDS Menu Bars, the default for models created after COOL:2E Release 5.0.

You are advised to migrate to DDS Menu Bars if you have upgraded a model from a release of COOL:2E earlier than 5.0. This is because DDS Menu Bars make use of the new i OS ENPTUI features that allow the menu bars to be coded in the DDS for the display file. The CA 2E Action Bars require an external program to be called to process the action bar. As a result, the DDS Menu Bars are faster, have more functionality, and create more efficient CA 2E functions.

Note: If you use DDS menu bars, you need to use the User Interface Manager (UIM) to define help for your actions and choices.

The Edit Function Option panel has the following function option:

If action bar, what type?: (M-MDLVAL, A-Action bar, D-DDS menu bar)

The default value is M, representing MDLVAL.

For DDS Menu Bar:

Unlike CA 2E Action Bars, menu bar selections may not have the same sequence number. CA 2E currently allows NEW and OPEN to each have a sequence number of 1. It is not required that this be changed. However, if you do not change it, the generators reassign the sequence number to 2 for NEW.