Example Function Controls

LANSA for i

Example - Function Controls

Assuming that a process has four functions:

HEADER

Input order header details.

LINES

Input line items.

SUBMIT

Submit order for processing.

HOLD

Hold order for processing later.

 

The function control table can be used to allow the input of order header details and then allow a choice of submitting or holding the order. The entries in the function control table might look like this:

 

Function   Display on    Default

Name       Process menu  Next Func  Allowable next funcs

HEADER       YES         LINES      LINES

LINES        NO          SELECT     SELECT SUBMIT HOLD

SUBMIT       YES         MENU       MENU

HOLD         NO          MENU       MENU

 

Note the following points about this table:

  • Only HEADER and SUBMIT actually appear on the process's main menu. HEADER allows the user to "start" on the path required to create an order. The path must eventually terminate with functions HOLD or SUBMIT. SUBMIT is accessible from the process's main menu to allow the submission of orders that were previously held.
  • When the user completes using function LINES, the default next function is the "reserved" function SELECT which will display a "mini menu" of functions SUBMIT and HOLD. This is allowing the user to choose which of the 2 functions he/she wishes to use.