The text of a manual · part 42 of 70
Model 200 Controller System Manual, pages 411 to 420
Pages 411 to 420 of 695
The original document is the PDF (3.9 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 0200
Page 411
Using Screen Mapping
11
Field
Description
Value
Default
Transaction field number
The number of the transaction field whose data is mapped to the host screen field.
Predefined
(new)
Static string
The string that is mapped to the host screen field.
1 to 119 characters
None
Keystroke to exit field
Determines the keystroke mnemonic that exits the input field after data is placed in it.
FLDEXIT, ENTER, RTAB, LTAB, (none)
FLDEXIT
To add a host screen field 1. From the Host Screen Field List dialog box, choose Add. The Host Screen Field Definition dialog box appears. 2. In the Field label field, click the down arrow on the right side of the field. A list of all the available host screen fields for the current host screen in other transactions appears. Select a field label. The row, column, and length information for the field is automatically entered. Or, enter a unique name for the host screen field. 3. If you started a temporary host session for this script, use the Get Field feature to automatically detect the location of the field. For help, see “Getting Host Screen Field Attributes From a Host Screen” later in this chapter. a. On the host window, position your cursor on the field. b. In the Host Screen Field Definition dialog box, choose Get Field. The Row, Column, and Length fields are filled with values. 4. If you did not start a temporary host session, enter the position of the first character of the field and enter the length of the field. a. In the Row and Column fields, enter the position of the first character of the field. b. In the Length field, enter the maximum number of characters the field accepts.
11-41
Page 412
Model 200 Controller User’s Manual
5. Determine how the host screen field will receive its data. • Choose Transaction field number, if the data for the host screen field is mapped from a transaction field sent by a terminal. Click the down arrow on the right side of the field. A drop-down list of all the existing transaction field numbers appears. Select the number of the transaction field that sends data to this host screen field. Or, select <new> to define a new transaction field number. Script Builder creates a new field with the host screen field label. You can edit this transaction field later. For help, see “Adding a Transaction Field” in Chapter 9. • Choose Static string if the data for the host screen field comes from a static string. Enter the string. 6. In the Keystrokes to exit field, click the down arrow on the right side of the field. A list of keystroke mnemonics appears. Choose the mnemonic that exits the field, or enter a new mnemonic. 7. Choose OK to return to the Host Screen Field List dialog box.
Getting Host Screen Field Attributes 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 host screen field attributes from a host screen field, you position the host cursor anywhere in an unprotected field and then choose Get Field. The Script Builder fills in the Location box with the beginning position of the field and its length. If the host cursor is in a protected field when you choose Get Field, an error message occurs. 3270 field-formatted host screens do not differentiate between protected and unprotected fields. To get host screen field attributes from a host screen field, you position the host cursor at the beginning position of a field and then choose Get Field. The Script Builder fills in the Location box with the beginning position of the field and its length. VT/ANSI host screens are not field-formatted host screens. To get host screen field attributes from a host screen field, you must highlight the entire host screen input field before you choose Get Field. If nothing is selected when you choose Get Field, an error message occurs.
11-42
Page 413
Using Screen Mapping
11
To get host screen field attributes 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 field that you need to define. 3. In the host window, place your cursor on the host screen field. Note: In VT or ANSI host screens, you need to select the entire host screen field. 4. In the Host Screen Field Definition dialog box, choose Get Field. The Location box is populated with the attributes of the field. 5. If necessary, edit the information in the fields. 6. Choose OK to save your changes and return to the Host Field List dialog box. 7. Repeat Steps 2 through 6 until you have defined all the host screen fields.
Selecting Regions for the Current Host Screen Regions are areas on the host screen. You can define a region that the script file examines to determine whether or not a certain condition has been met or you can define a region from which the script file reads data. Specifically, you usually define a region to • catch an error message that appears on the host screen after a transaction field is mapped to a host screen field. You define the location information of the region. You also define actions that the script file takes when the region appears and when the region does not appear. • read data from a certain host screen field. You define the location and the length of the region. To define the length, you choose the Match on Any String within x characters field. You may not need to define any actions. The script file sends any data that it finds in the location back to the application that is running on the terminal through a message.
11-43
Page 414
Model 200 Controller User’s Manual
To select a region 1. From the Script Builder Tools window, choose Screen. 2. Choose Region List. The Host Screen Region List dialog box appears. This list box displays the group the regions are in, the region labels, and their location in the host screen.
3. Add, edit, or remove regions for the current host screen. For help, see “Adding a Region” later in this chapter. Note: If you try to delete this region and other transactions use this region, it is only removed from use with the current transaction. 4. Choose Close to close the dialog box and return to the Script Builder Tools window.
Adding a Region There are three types of actions that you can define when a region appears: • Send a message to the source of the transaction. • Capture keystrokes to clear the region.
11-44
Page 415
Using Screen Mapping
11
• Determine what event happens when the region is done performing its actions. The default action is to continue processing screen events. You usually use this action when you read data from a host screen field. However, if you are defining a region to catch an error message that appears on the host screen, you should choose to go to a next screen and then select the main host screen. If you are at the main host screen, you should choose to cancel processing the screen event. When an error message occurs, you usually want to return to the main host screen and process the next transaction. If a region does not appear, you can send a message to the source of the transaction.
11-45
Page 416
Model 200 Controller User’s Manual
Field
Description
Value
Default
Region label
A name for the region that is unique within the current screen.
1 to 20 alphanumeric characters
None
Region group (Optional)
This check box determines if you want this region to be part of a group of regions that share the same action in the Actions for Region NOT appearing box. This action only occurs if none of the regions in the group appear.
1 to 8 alphanumeric characters
None
Row
The row position on the host screen of the first character of the region.
1 to 24
24
Column
The column position on the host screen of the first character of the region.
1 to 80
80
Match on
The method the controller uses to identify the region.
Specific string, Any string within
Any string within
Specific string
From the specified row and column positions, this option button defines a specific string the controller must identify before it recognizes the region.
1 to 80 alphanumeric characters
None
Any string within
From the specified row position, this option button and field specify the length of the region. The controller identifies the region if any string appears within this length.
1 to 999
50
Send message (Optional)
This check box indicates that if the region is recognized, a message is sent to the source.
Check, Clear
Clear
Keystrokes to clear (Optional)
This check box lets you define a keystroke sequence that clears the region.
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
11-46
Page 417
Using Screen Mapping
Field
Description
Value
Default
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.
Go to next screen
This option button indicates that the script file goes to another host screen.
Check, Clear
Clear
Send message
This check box determines if a message is sent to the source of the transaction if the region does not appear.
Check, Clear
Clear
11
To add a region 1. From the Host Screen Region List dialog box, choose Add. The Host Screen Region Definition dialog box appears. 2. In the Region label field, click the down arrow on the right side of the field. A list of all the available regions for the current host screen appears. Select a region. The row, column, and length information for the field is automatically entered. 3. (Optional) Enable the Region group check box and click the down arrow on the right side of the field. A list of existing groups appears. Select a group. Groups of regions share the same actions in the Action for Region NOT appearing box if none of the regions in the group appear. Or, enter a new group name in the field. 4. Choose the option button that tells the controller how to recognize the region. • Choose Specific string and enter the string if the region is only recognized if the string appears at the specified location. • Choose Any string within characters and enter a number of characters. A region is recognized if any string exists with the specified number of characters.
11-47
Page 418
Model 200 Controller User’s Manual
5. If you started a temporary host session for this script, use the Get Region feature to automatically select the location and contents of the region. For help, see “Getting a Region From a Host Screen” later in this chapter. a. On the host window, position your cursor on the first character of the region. b. In the Host Screen Region Definition dialog box, choose Get Region. The Row, Column, and Specific String fields are filled with values. 6. If you did not start a temporary host session, enter the location of the first character of the region in the Row and Column fields. 7. (Optional) Enable the Send message check box to send a message to the source of the transaction when the region appears. Click the down arrow on the right side of the field. Choose the message you want to send. Or, choose Define to create a new message. For help, see “Creating Screen and Region Messages” later in this chapter. 8. (Optional) Enable the Keystrokes to clear check box and then choose Capture to specify keystrokes to clear the region when it appears. For help defining the keystrokes, see “Capturing Keystrokes” later in this chapter. 9. Choose the event that occurs when the region is finished performing its actions. • Choose Continue processing screen events if you want the script file to remain on the host screen to continue processing any other defined screen events. • Choose Cancel processing screen events if you want the script file to remain on the host screen, but you do not want it to process any other defined screen events. • Choose Go to next screen if you want the script file goes to another host screen. 10. Enable the Send message check box if you want to send a message to the source of the transaction when the region does not appear. Click the down arrow on the right side of the field. Choose the message you want to send. Or, choose Define to create a new message. For help, see “Creating Screen and Region Messages” later in this chapter. 11. Choose OK to return to the Host Screen Region List dialog box.
11-48
Page 419
Using Screen Mapping
11
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-49
Page 420
Model 200 Controller User’s Manual
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, enable 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.
11-50