BMS-generated templates
A template generated from a BMS map contains
constants and input fields, buttons, hidden variables, a JavaScript function and a JavaScript exception handler.
Attention: This topic contains Product-sensitive
Programming Interface and Associated Guidance Information.
A template contains these items:
- Constants and input fields from the map.
- Buttons to represent the following:
- ENTER and CLEAR keys
- PA1, PA2, and PA3 keys
- Program function keys PF1 to PF24
- HTML reset
- Up to five hidden variables, DFH_NEXTTRANSID.1 to DFH_NEXTTRANSID.5, the values of which are the names of the first five fields in the map. CICS web support and 3270 display applications explains the use of these variables.
- A hidden variable DFH_CURSOR, the value of which is the name of the field in which the cursor is set in the map. If the cursor is located in an unnamed field, DFH_CURSOR is zero.
- A JavaScript function dfhsetcursor(). When DFH_CURSOR contains the name of a field, the function sets the cursor position to that field.
- A JavaScript exception handler for the onFocus exception. This function calls dfhsetcursor and tracks the movement of the cursor.