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 43 of 70

Model 200 Controller System Manual, pages 421 to 430

Pages 421 to 430 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 421

Using Screen Mapping

11

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.

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

11-51

Page 422

Model 200 Controller User’s Manual

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

Page 423

Using Screen Mapping

11

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 enable this check box, the message will be sent as a screen message. If you do not enable 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-53

Page 424

Model 200 Controller User’s Manual

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

Page 425

Using Screen Mapping

11

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

11-55

Page 426

Model 200 Controller User’s Manual

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

Text

The text of the message.

1 to 119 characters

None

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.

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 run-time is included in the message.

Check, Clear

Clear

To add a message 1. From the Screen Message List dialog box, choose Add. The Define Message dialog box appears. 2. In the Name field, enter a unique name for the message.

11-56

Page 427

Using Screen Mapping

11

3. Choose the type of message you are defining. • Choose Status message if you are defining 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. • Choose Transaction if you are defining a transaction in the Text field that will be mapped back to the terminal screen fields that originated the transaction. 4. In the Text field, enter the message. • For a status message, enter the string. • 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 (,). 5. In the Additional Text From Host Screen box, choose an option button. • Choose None if no text from the host screen is in the message. • Choose Region if a region is in the message. Click the down arrow on the right side of the field. A list of regions appears. Choose the region to include with the message. If you are defining a region message while you are defining a region, it is not listed in the region list. If you want to include the current region in the message, check the Current region check box. • Choose Current cursor position if the entire host screen field where the cursor is positioned at runtime is included in the message. • Choose Current row if the entire row where the cursor is positioned at runtime is included in the message. 6. Choose OK to return to the Screen Message List dialog box.

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.

11-57

Page 428

Model 200 Controller User’s Manual

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.

Transaction Message Example Terminal

Host

Trx containing 01234

0200.100

11-58

Page 429

Using Screen Mapping

11

Transaction Message Example (continued)

Terminal

Host

Trx containing 01234,30

0200.101

Changing the Order of Screen Events You can change the order of screen events and you can change the order of the regions within a region group. As each host screen appears, certain screen events can occur. These events include • mapping terminal (transaction) fields to host screen fields. • handling regions in the host screen. • sending screen messages. The events listed below are not screen events and you cannot change the order in which they occur. They are: • going to a next screen. Next screen allows the script to go to another host screen after finishing all the screen events. • sending region messages. Region messages are sent to the source of the transaction when a region appears or does not appear in a host screen. The send message action is completed when processing a region event. To change the order of screen events 1. From the Script Builder Tools window, choose Screen. 2. Choose Event Order. The Screen Event Ordering dialog box appears.

11-59

Page 430

Model 200 Controller User’s Manual

3. In the Screen Events list box, select the event you want to move. Events occur in order starting from the top. 4. Choose Up or Down to move the event to the appropriate place. 5. Choose OK to return to the Script Builder Tools window. To change the order of regions within a region group 1. From the Script Builder Tools window, choose Screen. 2. Choose Event Order. The Screen Event Ordering dialog box appears. 3. In the Screen Events list box, select the region that you want to move. 4. Choose Up or Down to move the region to the appropriate place. 5. Choose OK to return to the Script Builder Tools window. Note: Regions that match on a specific string are checked before regions that match on any string. You may need to be aware of this feature if you have regions that overlap. Note: Region actions (events) that occur within region groups are mutually exclusive. That is, when the script identifies a region and that region is in a region group, the script performs the actions that are defined for the region. It ignores all other actions that occur for other regions in the group.

11-60