The text of a manual · part 34 of 46
DCS 300 User's Manual, pages 331 to 340
Pages 331 to 340 of 460
The original document is the PDF (2.2 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Intermec DCS-300
Page 331
Using Screen Mapping
Field
Description
Value
Default
Name
A meaningful name that identifies this screen mapping session.
1 to 8 alphanumeric characters
None
Visible when data collection started?
This check box determines if the screen mapping application automatically opens the host terminal session when you start data collection.
Check, Clear
Clear
Start session at data collection start
This check box determines if the screen mapping application automatically starts when you start data collection.
Check, Clear
Check
Hot Standby timeout
The number of seconds the DCS 300 waits for a response from the data collection device before it places the device in Hot Standby mode.
1 to 9999
20
Script File
The name of the script file that this screen mapping session uses.
Predefined
None
Host Terminal Session
The long session ID of the terminal session that this screen mapping session uses.
Predefined
None
Selected
This list box contains the transactions that send data to the selected host terminal session using the selected script file.
None
None
Predefined
None
11
For help, see “Adding a Transaction” in Chapter 9. Available
This list box contains all the available transactions that you can use.
11-73
Page 332
DCS 300 User’s Manual
Mapping Transaction Fields If your script does not contain explicit transaction mapping information, you need to map the transaction fields to the host screen fields. You only need to map the transaction fields if you are using the PUT_MAPPED_TRANS command in your script file. For VT screen mapping, when using the PUT_TRANS_FIELD command, the script executes an implied WAIT_FOR_LABEL_POS command for the field specified in the PUT_TRANS_FIELD. The WAIT_FOR_LABEL_POS command waits for the cursor to be at the field before the PUT_TRANS_FIELD command maps the field. Generally, the WAIT_FOR_LABEL_POS timeout period is the same as the VT_WAIT timeout period. Note: If you insert the WAIT_FOR_LABEL_POS command as a user block, you must specify the wait period. The Script Builder uses the PUT_TRANS_FIELD command, which explicitly maps a transaction field to a host screen field. If you use the Script Builder to generate your script files, you usually do not need to map transaction fields. Intermec highly recommends that you use the Script Builder Tool to generate your script files. To map transaction fields to screen fields 1. From the Screen Mapping Session Definition dialog box, select the transaction whose fields you want to map to screen fields. 2. Choose Map. The Screen Mapping Field List dialog box appears.
3. Add, edit, or delete screen mapping fields from the list box. For help, see “Adding a Screen Mapping Field Placement Entry” later in this chapter. 4. Choose Close to close the dialog box and return to the Screen Mapping Session Definition dialog box.
11-74
Page 333
Using Screen Mapping
11
Adding a Screen Mapping Field Placement Entry
1. From the Screen Mapping Field List dialog box, choose Add. The Screen Mapping Field Placement dialog box appears. 2. In the Transaction field box Name field, click the down arrow on the right side of the field. A list of the transaction fields for the transaction you selected appears. Select the transaction field you want to map. 3. In the Screen box Name field, click the down arrow on the right side of the field. A list of the screens that are defined in your script file appears. Select the screen that contains the field that you want to map to the transaction field. 4. In the Screen box Field name field, click the down arrow on the right side of the field. A list of the fields that are defined for that screen in your script file appears. Select the field name that you want to map to the transaction field. 5. Choose OK to save your changes and return to the Screen Mapping Field list dialog box.
11-75
Page 334
DCS 300 User’s Manual
Saving and Activating Your Run-Time Configuration When you finish configuring screen mapping, you should save your changes. If you have finished configuring your server, activate your run-time configuration. When the activate is complete, a message box appears if you need to reboot the server. To save and activate your run-time configuration 1. From the main menu sidebar buttons, choose Save and Activate. The Activate Configuration message box appears. 2. Choose Activate. The server saves your run-time configuration to disk and it becomes your active configuration. If you are ready to start data collection, from the main menu sidebar buttons, choose Start Data Collection.
11-76
Page 335
Using Screen Mapping
11
Script Builder Tool Limitations Validation can be performed by the data collection device or the host application. The script cannot perform any validation. The Script Builder Tool cannot generate these commands: ACK_MESSAGE
IF_BATCH
SEARCH_SCREEN
AUDIT
IF_SEARCH
USER_INPUT
CAPTURE_POS
LOG_ERROR
WAIT_FOR_POS
FILL_FIELD
PAUSE
WAIT_FOR
IF_
PUT_MAPPED_TRANS
WAIT_FOR_LABEL_POS
If you need to use these commands, you can define a user block to insert these commands into the script. For help, see “Defining User Blocks” earlier in this chapter. PUT_TRANS_FIELD is:
The format of this command that the Script Builder Tool generates
PUT_TRANS_FIELD transactionfieldnumber fieldlabel where: transaction field number is the position of the field in the transaction. field label is the name of the host screen field you want to map to the transaction field.
In the DCS 300 Technical Reference Manual, there are two optional parameters following the field label that let you map partial data to a host field. The Script Builder Tool does not support partial data mapping. These parameters are: SEND_MESSAGE There are two types of messages: status and transaction. For status messages, the format of this command that the Script Builder Tool generates is: SEND_MESSAGE "TERM_MESSAGE," + userdefinedtext + [regionlabel | CUR_POS | CUR_ROW] SRC
Status messages always starts with “TERM_MESSAGE,” which is automatically generated. The destination is always fixed to SRC, the source of the transaction, which is assumed to be an Intermec terminal. The SRC can only receive the message if the Wait for response check box is checked in the Terminal Screen and Fields dialog box.
11-77
Page 336
DCS 300 User’s Manual
For transaction messages, the format of this command that is generated by Script Builder Tool is: SEND_MESSAGE userdefinedtext + [regionlabel | CUR_POS | CUR_ROW] SRC
The user-defined text contains data in the format of a transaction and again the destination is fixed to SRC. This type of message is delivered to the source of the transaction and the transaction data is mapped to the terminal screen according to the terminal template definition. In the DCS 300 Technical Reference Manual, the SEND_MESSAGE command lets you specify a destination other than SRC. You can also have as many concatenations as you want, as long as the string does not exceed the maximum line length. If the Script Builder Tool generates the SEND_MESSAGE command, you are restricted to these formats. CURRENT_SCREEN The Script Builder Tool generates this command and places it as the first line of every set of events for each transaction. The screen label for this command is the main screen, since every set of events for each transaction starts from processing the main screen events. You cannot control where this command appears in the script.
11-78
Page 337
Using Screen Mapping
11
VT/ANSI Screen Mapping Limitations VT/ANSI terminals have some limitations that affect how you can use screen mapping. However, if you are having problems because of a limitation, you can use the WAIT_FOR scripting command. For help, see the DCS 300 Technical Reference Manual. •
You cannot automatically position the host cursor to the host screen field in VT/ANSI screen mapping. However, you can program the script to wait until the cursor is at the field using the WAIT_FOR command. To move the host cursor to the desired host screen field, you add keystrokes, such as NEWLN, to the script. When you define a host screen field in Script Builder, you can define an exit keystroke that will be applied after field mapping. If the exit field keystroke will not move the host cursor to the next host screen field, you can define keystrokes using the user block feature. Make sure that you add these keystrokes before the PUT_TRANS_FIELD command for the next field.
•
When the host VT/ANSI screen is in Scroll mode and the host is using pseudo fieldformatted screens, the server does not know where to put the data on the host screen. You must use the script WAIT_FOR commands so the server knows when the host is done sending data.
•
VT terminal sessions and the VT windows that are displayed on the DCS 300 screen cannot show blinking text. If the host application sends blinking text to a VT terminal session, the DCS 300 shows the text as white text on a dark red background. If it sends blinking text to a VT window, the DCS 300 shows the text as green text on a black background.
11-79
Page 338
DCS 300 User’s Manual
VT Keyboard Mapping and Script Keystroke Names This table shows how VT keyboard keys map to the DCS 300 keyboard and to the script keystroke names. For a diagram of how the VT keyboard maps to the server keyboard, see Chapter 8, “Using Terminal Emulation.”
11-80
VT Keyboard
Server Keyboard
Script Name
Enter (keypad)
Enter (keypad)
ENTER
, (keypad comma)
+ (keypad plus)
CLEAR
Not used
Not used
LTAB
Tab
Tab
RTAB
Delete
Backspace
DEL
Ctrl-H
Shift-Backspace
BACKSP
Insert
Insert
INS
- (keypad minus)
Shift-+ (keypad plus)
ERS_EOF
Cursor left
Cursor left
CUR_LFT
Return
Enter (keyboard)
NEWLN
Spacebar
Spacebar
SPACE
Not used
Not used
RESET
Cursor up
Cursor up
CUR_UP
Cursor down
Cursor down
CUR_DN
Cursor right
Cursor right
CUR_RT
Find
Home
HOME
PF1
Num Lock
PF1
PF2
/ (keypad forward slash)
PF2
PF3
* (keypad asterisk)
PF3
PF4
- (keypad minus)
PF4
Not used
Not used
PF5
Page 339
Using Screen Mapping
11
VT Keyboard Map (continued) VT Keyboard
Server Keyboard
Script Name
F6
F6
PF6
F7
F7
PF7
F8
F8
PF8
F9
F9
PF9
F10
Alt-F10
PF10
F11
Shift-F1
PF11
F12
Shift-F2
PF12
F13
Shift-F3
PF13
F14
Shift-F4
PF14
F15/Help
Shift-F5
PF15
F16/Do
Shift-F6
PF16
F17
Shift-F7
PF17
F18
Shift-F8
PF18
F19
Shift-F9
PF19
F20
Shift-F10
PF20
0 (keypad 0)
0 (keypad 0)
PF21
1 (keypad 1)
1 (keypad 1)
PF22
2 (keypad 2)
2 (keypad 2)
PF23
3 (keypad 3)
3 (keypad 3)
PF24
4 (keypad 4)
4 (keypad 4)
END
Prev Scrn
Page up
PAGEUP
Next Scrn
Page down
PAGEDN
Select
End
PA1
Remove
Delete
PA2
Ctrl-[
Esc
PA3
5 (keypad 5)
5 (keypad 5)
TEST
6 (keypad 6)
6 (keypad 6)
SYSREQ
7 (keypad 7)
7 (keypad 7)
ATTN
8 (keypad 8)
8 (keypad 8)
FLDPLUS
9 (keypad 9)
9 (keypad 9)
FLDMINUS
. (keypad decimal point)
. (keypad decimal point)
FLDEXIT
11-81
Page 340
DCS 300 User’s Manual
Keystrokes A keystroke can be a mnemonic or a string. The table below lists the 3270 and 5250 keystroke mnemonics supported by the server.
11-82
Key
Mnemonic
Key
Mnemonic
Attention
ATTN
Home
HOME
Backspace
BACKSP
Insert
INS
Clear
CLEAR
Left Tab
LTAB
Cursor Down
CUR_DN
New Line
NEWLN
Cursor Left
CUR_LFT
No Keystroke
NONE
Cursor Right
CUR_RT
PA1, PA2, PA3
PA1, PA2, PA3
Cursor Up
CUR_UP
Page Down
PAGEDN
Delete
DEL
Page Up
PAGEUP
End
END
Reset
RESET
Enter
ENTER
Right Tab
RTAB
Erase EOF
ERS_EOF
Space
SPACE
Field Exit
FLDEXIT
System Request
SYSREQ
Function Keys F1 - F24
PF1 - PF24
Test
TEST