The exit program can update the data in a text area every time a panel is displayed and returns control to the UIM through a normal return. The UIM will then finish formatting the panel and display it. The area formatted by the application is displayed as defined by the contents of the dialog variable or by the data pointed to by the dialog variable.
A text area exit program can be specified on the USREXIT attribute of the text area (TEXT) tag. This attribute specifies the name of a dialog variable identifying the program to call. The UIM calls the program when:
If the dialog variable identifying the program to call is null for a pointer variable or blanks for a character variable, escape message CPF6A14 is sent to the calling program. If the exit program returns control normally, any messages sent to the UIM by the exit program are displayed on the message line.
The UIM does not reevaluate conditions after the text area exit program is called; therefore, changing dialog variables that affect conditions has no effect during this display of the panel.
The exit and cancel flags for the job are not reset before the exit program is called and the flag are not checked after the exit program returns control to the UIM. Therefore, the exit and cancel flags should not be turned on by the exit program.
QSYSINC Member Name: EUITAEX
The interface level supported by this structure, indicating which fields and values are available for the current interface level.
Set to the following value:
11 | The exit program is called to update the text area data. |
The application handle of the application currently being processed by the UIM.
The name of the panel currently being processed by the UIM.
The function key that is pressed:
0 | A key other than F1-F24. |
1-24 | A function key (F1-F24) is pressed. |
Provides information about why the user exit program is being called.
0 | The exit program is called for the initial display or redisplay of the panel. |
-1 | A key assigned to the PAGEUP dialog command is pressed. |
-2 | A key assigned to the PAGEDOWN dialog command is pressed. |
-3 | A key assigned to the MOVEtop dialog command is pressed. |
-4 | A key assigned to the ENTER dialog command is pressed. |
The width of the text area within this panel to be formatted.
The depth of the text area within this panel to be formatted.
Identifies the attribute orientation of the panel group. Set one of the following values:
N | BIDI=NONE is specified or the default on the panel group (PNLGRP) tag. |
L | BIDI=LTR is specified or the default on the PNLGRP tag. |
R | BIDI=RTL is specified or the default on the PNLGRP tag. |
The number for the code page of the requester's display device.
The description of parameters listed in the following table is the same as the corresponding field in the structure for a single parameter interface. The positions listed for each field in the structure do not apply to the multiple parameter interface.
1 | Type of call | Input | Binary(4) |
2 | Application handle | Input | Char(8) |
3 | Panel name | Input | Char(10) |
4 | Function key pressed | Input | Binary(4) |
5 | Function key qualifier | Input | Binary(4) |
6 | Text area width | Input | Binary(4) |
7 | Text area depth | Input | Binary(4) |
8 | Panel bidirectional orientation | Input | Char(1) |
9 | Device code page | Input | Binary(4) |
Top | User Interface Manager (UIM) APIs | APIs by category |