Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 30 of 46

DCS 300 User's Manual, pages 291 to 300

Pages 291 to 300 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 291

Using Screen Mapping

11

Selecting Host Screens for the Current Transaction You need to identify the host screens that receive transaction data from the current transaction. The current host screen is the host screen for which you are currently defining fields, regions, messages, and events. When you define the main host screen, it automatically becomes the current host screen. If you add more host screens, the main screen remains the current host screen until you go to the Maintain Screen List dialog box, select a screen and then choose Current.

11-33

Page 292

DCS 300 User’s Manual

Defining Next Screen Sequences for Host Screens You need to define the sequence of host screens that the current transaction uses for mapping its fields. In the Next Screen box, check the Yes check box if your transaction fields map to host screen fields on more than one host screen. After the Script Builder has performed all the screen events for the current host screen, it retrieves the next host screen. The main host screen should always be the last screen in the sequence of host screens. Then, your host is always ready to receive data from the next transaction. If you do not define a next screen, the default next screen is 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 1. From the Script Builder Tools window, choose Screen. 2. Choose Next Screen. The Next Host Screen dialog box appears. This dialog box is shown on the next page. 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 bring up the next host 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.

11-34

Page 293

Using Screen Mapping

11

Next Host Screen Dialog Box

7. Check Yes in the Next Screen? box if you want to assign the next screen. To select an existing host screen for the next screen, click the down arrow on the right side of the 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 for the next screen, choose New. For help, see “Adding a Host Screen” later in this chapter. 8. (Optional) Choose Next if you want to make the next screen the current host screen. The Script Builder displays the next screen information. 9. Repeat Steps 3 through 8 to define the entire next host screen sequence for the current transaction. 10. Choose OK to return to the Script Builder Tools window.

11-35

Page 294

DCS 300 User’s Manual

Selecting Host Screen Fields for the Current Host Screen You must identify all the fields on the current host screen that receive transaction data. To select host screen fields 1. From the Script Builder Tools window, choose Screen. 2. Choose Fields. The Host Screen Field List dialog box appears. This list box displays all of the fields that are defined for the current host screen, their location in the host screen, and whether they receive their data from a transaction field or a static string.

3. Add, edit, or remove fields for the current host screen. For help, see “Adding a Host Screen Field” later in this chapter. Note: If you try to delete this host screen field and other transactions map fields to it, 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.

11-36

Page 295

Using Screen Mapping

11

Adding a Host Screen Field Different transactions may contain fields that map to the same host screen field. If you click the down arrow on the right side of the Field label field, you can choose from a list of defined host screen fields. If you choose one of these fields, the Location box is filled with row, column, and length attributes. You can keep the location information, but you must add the mapping type and keystroke to exit field. Get Field button If you started a temporary host session for this script, you can use the Get Field feature to automatically detect the location of the field. On the host window, position your cursor on the first character of the field. Choose Get Field. The Row, Column, and Length fields are filled with values. For help, see “Getting Host Screen Field Attributes From a Host Screen” later in this chapter. To add a host screen field •

From the Host Screen Field List dialog box, choose Add. The Host Screen Field Definition dialog box appears.

11-37

Page 296

DCS 300 User’s Manual

Field

Description

Value

Default

Field label

A unique name for the field.

1 to 20 alphanumeric characters

None

Row

The row position on the host screen of the first character of the field.

1 to 24

None

Column

The column position on the host screen of the first character of the field.

1 to 80

None

Length

The maximum number of characters this field accepts.

1 to 999

None

Transaction field number

The number of the transaction field whose data is mapped to the host screen field. Use this option if the data for the host screen field is mapped from a transaction field sent by a terminal.

Predefined

(new)

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. Static string

The string that is mapped to the host screen field. Use this option if the data for the host screen field comes from a static string.

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

11-38

Page 297

Using Screen Mapping

11

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 selsected when you choose Get Field, an error message occurs. 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.

11-39

Page 298

DCS 300 User’s Manual

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. 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.

To select a region 1. From the Script Builder Tools window, choose Screen. 2. Choose Regions. 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.

11-40

Page 299

Using Screen Mapping

11

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.

•

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. Get Region button 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. On the host window, position your cursor on the first character of the region. Choose Get Region. The Row, Column, and Specific String fields are filled with values. For help, see “Getting a Region From a Host Screen” later in this chapter. To add a region •

From the Host Screen Region List dialog box, choose Add. The Host Screen Region Definition dialog box appears.

11-41

Page 300

DCS 300 User’s Manual

Host Screen Region Definition Dialog Box

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 server uses to identify the region.

Specific string, Any string within

Any string within

11-42