The text of a manual · part 31 of 46
DCS 300 User's Manual, pages 301 to 310
Pages 301 to 310 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 301
Using Screen Mapping
Field
Description
Value
Default
Specific string
Lets you define a specific string the server must identify at the specified row and column positions before it recognizes the region.
1 to 80 alphanumeric characters
None
Any string within
Specifies the length of a region from the specified row position. The server identifies the region if any string appears within this length.
1 to 999
50
Send message (Optional)
This check box determines if a message is sent to the source of the transaction when the region is recognized.
Check, Clear
Clear
11
Or, choose Define to create a new message. For help, see “Creating Screen and Region Messages” later in this chapter. Keystrokes to clear (Optional)
This check box lets you define a keystroke sequence that clears the region. Choose Capture to specify keystrokes to clear the region when it appears. For help defining the keystrokes, see “Capturing Keystrokes” later in this chapter.
Check, Clear
Clear
Screen sequence
Determines what event happens when the region is finished performing its actions.
Continue processing screen events, Cancel processing screen events, Go to next screen
Continue processing screen events
Continue processing screen events
This option button indicates that the script file remains on the host screen to continue processing any other defined screen events.
Check, Clear
Check
Cancel processing screen events
This option button indicates that the script file remains on the host screen, but does not process any other defined screen events.
Check, Clear
Clear
Go to next screen
This option button indicates that the script file goes to another host screen.
Check, Clear
Clear
Send message (Optional)
This check box determines if a message is sent to the source of the transaction if the region does not appear.
Check, Clear
Clear
Or, choose Define to create a new message. For help, see “Creating Screen and Region Messages” later in this chapter.
11-43
Page 302
DCS 300 User’s Manual
Getting a Region From a Host Screen In 5250 field-formatted host screens, there are two types of fields: protected and unprotected. Protected fields are fields that you cannot write over and are usually text on the host screen. Unprotected fields are usually input fields. To get region attributes from a host screen field, you position the host cursor anywhere in an unprotected field and then choose Get Region. The Script Builder fills in the Location box with the beginning position of the field, its contents, and its length. If the host cursor is in a protected field when you choose Get Region, the Script Builder fills in the Location box with the host cursor position, and it fills in the contents and length of the field from the host cursor position to the end of the field. 3270 field-formatted host screens do not differentiate between protected and unprotected fields. All fields are treated like protected fields. When you choose Get Region, the Script Builder fills in the Location box with the host cursor position, and it fills in the contents and length of the field from the host cursor position to the end of the field. VT/ANSI host screens are not field-formatted host screens. To get region attributes, you must highlight the entire region before you choose Get Region. If nothing is selected when you choose Get Region, an error message occurs. To get a region from a host screen 1. Start a temporary host session. For help, see “Starting a Host Session” in Chapter 10. 2. In the host window, open the host screen that contains the region that you need to define. 3. In the host window, place your cursor on the region. Note: In VT or ANSI host screens, you need to select the entire region. 4. In the Host Screen Region Definition dialog box, choose Get Region. The Location & Identification box is populated with the attributes of the region. 5. If necessary, edit the information in the fields. 6. Choose OK to save your changes and return to the Host Region List dialog box. 7. Repeat Steps 2 through 6 until you have defined all the host regions.
11-44
Page 303
Using Screen Mapping
11
Capturing Keystrokes Before you can use the capture keystrokes feature, you must start a temporary host session. For help, see “Starting a Host Session” in Chapter 10. To capture keystrokes 1. From the Host Screen Region Definition dialog box, check the Keystrokes to clear check box. 2. Choose Capture. The Capture Keystrokes dialog box appears.
Note: If you do not want to capture the keystrokes, you can type them into the Selected Keystrokes field. Go to Step 6. 3. Choose Start. 4. In the host window, enter the keystrokes to clear the region. The Script Builder Tool captures all the keystrokes that you type. 5. When you finish entering the keystrokes, choose Stop. The keystrokes you typed appear in the Captured Keystrokes box. 6. If necessary, edit the keystrokes. For help, see “Editing the Captured Keystrokes” earlier in this chapter. 7. Choose OK to return to the Script Builder Tools window.
11-45
Page 304
DCS 300 User’s Manual
Defining Next Host Screen Sequences for Regions You may want the script file to go to a different host screen when it is finished performing all the actions for the region. If you are defining a host screen for the region to go to when it catches an error message, you usually want the script file to return to the main host screen. Note: Before you can use the capture keystrokes feature, you must start a temporary host session. For help, see “Starting a Host Session” in Chapter 10. To define the next screen sequence for a region appearing 1. From the Host Screen Region Definition dialog box, choose the Go to next screen option button. 2. Choose Screen. The Next Host Screen dialog box appears. Note: If you do not want to capture the keystrokes, you can type them into the Selected Keystrokes field. Go to Step 6.
11-46
Page 305
Using Screen Mapping
11
3. Choose Start. 4. In the host window, enter the keystrokes to go to the next screen. The Script Builder Tool captures all the keystrokes that you type and enters them into the Captured Keystrokes box. 5. When you finish entering the keystrokes, choose Stop. The keystrokes you typed appear in the Captured Keystrokes box. 6. If necessary, edit the keystrokes. For help, see “Editing the Captured Keystrokes” earlier in this chapter. 7. In the Next Screen box, check the Yes check box and then click the down arrow on the right side of the Name field. A list of host screens appears. Select the host screen that you want to follow the Current screen. Or, to define a new host screen, choose New. For help, see “Adding a Host Screen” later in this chapter. 8. Choose OK to return to the Script Builder Tools window.
11-47
Page 306
DCS 300 User’s Manual
Creating Screen and Region Messages There are two types of messages that you can send: screen messages and region messages. Messages are always sent to the source of the transaction. When you choose Screen and then Message List from the Script Builder Tools, the Screen Message List dialog box displays all the messages that are defined for the current host screen. Sending screen messages is a screen event; sending region messages is not an event. If you define a screen message, it is sent to the source of the transaction while the script file is processing screen events. In the Screen Event Ordering dialog box, you can adjust the order of screen events. However, if you define a region message, it can be sent to the source of the transaction when a region appears or it can be sent when a region does not appear. Region messages do not appear in the Screen Event Ordering dialog box. Both screen and region messages are text messages that may also include information from the current host screen. Send message as current screen event check box If you check this check box, the message will be sent as a screen message. If you do clear this check box, the message will be defined as a region message. That is, it will only be sent if you select it when you are defining a region. By using this check box, you are only defining the characteristic of a message with the current transaction. Other transactions may use the same message differently. To create messages 1. From the Script Builder Tools window, choose Screen. 2. Choose Message List. The Screen Message List dialog box appears.
11-48
Page 307
Using Screen Mapping
11
3. Add, edit, or remove messages for the current host screen. For help, see “Adding a Message” later in this chapter. 4. To use a message as a screen message, select the message and check the Send message as current screen event check box. To use a message as a region message, do not check the Send message as current screen event check box. When you define the region where you want to use this message, select this message from the Send message drop-down list box. 5. Choose Close to return to the Script Builder Tools window.
11-49
Page 308
DCS 300 User’s Manual
Adding a Message Use messages to carry information from the host application to the application that is running on the terminal. You can only define one message per transaction per script file to be sent back to the terminal. You can define two types of messages: Status message This message appears in the status line of your terminal. Transaction message This message contains its data in the format of a transaction. The transaction fields are mapped to the terminal screen fields according to the template. Note: To receive either type of message, you must check the Wait for response check box when you are defining your terminal screen. If you do not check this option, the terminal will not read the incoming message. To add a message •
11-50
From the Screen Message List dialog box, choose Add. The Define Message dialog box appears.
Page 309
Using Screen Mapping
11
Field
Description
Value
Default
Name
A unique name for the message.
1 to 16 alphanumeric characters
None
Type
The type of message you want to send to the source of the transaction.
Status message, Transaction
Status message
Status message
Use this message type to define a text message in the Text field. This message will appear in the status line at the bottom of the terminal screen that originated the transaction.
Check, Clear
Check
Transaction
Use this message type to define a transaction in the Text field that will be mapped back to the terminal screen fields that originated the transaction.
Check, Clear
Clear
Text
For a status message, enter the string.
1 to 120 characters
None
For a transaction, enter the transaction data. You need to separate the transaction fields using the delimiter you set earlier when you defined your transactions. This delimiter is usually a comma (,). None
This option button indicates that nothing from the host screen is included in the message.
Check, Clear
Check
Region
This option button indicates that a region is included in the message. Choose the region to include with the message.
Check, Clear
Clear
Current region
This check box lets you choose the current region since it is not listed in the region list.
Check, Clear
Clear
Current cursor position
This option button indicates that the entire host screen field where the cursor is positioned at run-time is included in the message.
Check, Clear
Clear
Current row
This option button indicates that the entire row where the cursor is positioned at runtime is included in the message.
Check, Clear
Clear
11-51
Page 310
DCS 300 User’s Manual
About Message Types (Status vs. Transaction) Screen and region messages can be sent to the source of the transaction as a status message or as a transaction. A status message is text that appears in the status line at the bottom of the terminal screen. However, some applications may expect to receive a transaction back. For example, when you define a terminal screen field as an output field, you need to map a transaction field to it. This transaction field can come from a transaction message.
Transaction Message Example You want to know how many parts you have in stock for a part number. Your Part Query terminal screen has two fields: part number (an input field that maps to transaction field number 1) and quantity (an output field that maps to transaction field number 2). You also need to define a region (QTY_RESULT) on the Part Number Quantity host screen at the Quantity field. Define a message, Quantity, and choose Transaction. In the Text field, enter: 1+”,”+QTY_RESULT where: 1 means that transaction field number 1 contains the same value as the original transaction field 1. “,” is the transaction field delimiter. QTY_RESULT is the region that you defined. The contents of this region are sent back to the terminal screen as transaction field number 2. At the terminal screen, enter the part number (01234) in the Part number field and send the transaction. When the script file receives the transaction, it performs actions to get to the host screen titled, Query by Part Number. The part number 01234 is entered and the Part Number Quantity screen appears and displays the value (30) you want in the Quantity field. Part number 01234 maps back to the Part number field in the terminal screen. The value of the quantity, 30, maps back to the Quantity field.
11-52