The text of a manual · part 6 of 12
EZBuilder Tutorial, pages 51 to 60
Pages 51 to 60 of 114
The original document is the PDF (3.0 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.
Filed in the catalog under the Intermec 2420, Intermec 2425 and Intermec 2481
Page 51
Creating Screens
3
5. Choose Resource from the View menu. The View Resource dialog box appears.
6. Scroll down the View Resource dialog box, and select MenuItem2 from MainMenu. 7. Click Edit. The Viewport reappears showing the Main Menu. MenuItem2 (F3 - Job Off), which you highlighted in the View Resource dialog box, is selected.
8. Click the View Resource dialog box to bring it forward, and then click Close to close it. 9. Click in the Call Screen field. A down arrow appears. 10. Click the Call Screen down arrow, and choose JobOff from the resulting list. The JobOff screen is the screen that will be called when users press F3 in the Main Menu. 11. Choose Screen: JobOff from the Object List. The JobOff screen appears in the Viewport. Note: The following steps are given in a brief form because you have already done similar steps in Exercise 7. If you need details or illustrations, see Exercise 7.
3-17
Page 52
EZBuilder Tutorial
12. In the Viewport, select the BadgeNo field. Click the KP/Events tab in the Object Manager. Click the F4 key field, and then click its button to bring up the Key Action Selection Editor.
13. From the Go To Field’s drop-down list, choose JobOff.PartNum. Click OK. 14. In the Viewport, select the PartNum data field. Click the KP/Events tab in the Object Manager. Click the F4 key field, and then click its button to bring up the Key Action Selection Editor. 15. From the Go To Field’s drop-down list, choose JobOff.OrderNo. Click OK. 16. In the Viewport, select the OrderNo data field. Click the KP/Events tab in the Object Manager. Click the F4 key field, and then click its button to bring up the Key Action Selection Editor. 17. From the Go To Field’s drop-down list, choose JobOff.BadgeNo. Click OK. Congratulations! You have completed Exercise 9. Save your file, and continue with Exercise 10.
Exercise 10: Completing the Data_Help Screen In this exercise, you will add one boxed screen identification label and one scrolling field with help text to the blank Data_Help screen you created in Exercise 7. Note: The following steps are brief because you have already done similar steps in earlier exercises. Refer back to earlier exercises if you need more details.
3-18
Page 53
Creating Screens
3
To complete the Data_Help screen 1. Choose Data_Help from the Object List. 2. Add a label to the screen with the caption “Data Help.” 3. Change the Row value to 1 and the Column value to 6. 4. Change the Display Attribute to BOLD. 5. Add a box around the label with a Row value of 0, a Column value of 0, a Height in Rows value of 3, and a Width in Columns value of 20. 6. Add a scrolling section with a Row value of 4 and a Lines to Display value of 11. 7. Click in the Viewport window to be sure the scrolling section is not selected, then click once inside the scrolling section to position the cursor in it. 8. Enter the following text in the scrolling section: Each data field is alphanumeric data. Badge is employee's ID number and is 10 characters. Part Number is 25 characters maximum. Order Number is 9 characters maximum. To re-enter data, press F4, Tab, or Shift-Tab keys. Press F10 to return to the Job On or Job Off screen. 9. Change the Display Attribute to NORMAL. 10. Change the Highlight Attribute to NORMAL. 11. In the Object Manager, scroll to the Selection Key field, and type “F10” as the Exit Key. 12. In the Object Manager, scroll to the Navigation Choice property and click its button to bring up the Navigation Selection dialog box. 13. Select the Return from Call option. 14. Click OK to close the Navigation Selection dialog box. Return appears in the Navigation Choice field. 15. Choose Resource from the View menu and see that the Data_Help screen now has three components (one label, one multi-line scrolling field, one box). Close the View Resource dialog box. Congratulations! You have completed Exercise 10. Save your application before continuing on to Chapter 4.
3-19
Page 54
EZBuilder Tutorial
Chapter Summary In this chapter, you learned how to • create screens, data entry fields, and their respective labels.
• wrap data and program function keys for various navigation needs.
• add and remove beep sounds.
• duplicate and adjust a screen as a quick way of creating a new screen that is similar to an existing screen.
The EZBuilder components covered up to this point in the tutorial are shaded in the next illustration.
Tutorial Exercise Summary
Application: EZBTUTRL Menu
Screens
Transactions
(Chapter 2)
(Chapter 3)
(Chapter 4)
Task 4
MM_Help Tasks 1, 2 and 3
MainMenu
Task 5
Task 8 and 10
JON_Tran
JobOn
Task 9 and 10
Task 6
JOF_Tran
JobOff Task 7
Data_Help
Task 11
CopyBadge EZB.004
3-20
Page 55
4 Creating Transactions
Page 56
ds
Page 57
Creating Transactions
4
This chapter describes how to create transactions which are packaged as output data records containing Job On and Job Off data and sent to a disk file.
Overview In Chapter 3, you designed the screens you created earlier, and you copied a screen to create a new screen. You also programmed function keys and the beep sound. In Chapter 4, you will create transactions. A transaction is an object that contains and moves data. You can send a transaction to a host, into a file on the terminal, or into a field in the application. You can also receive a transaction from a host, file, or field. When you create a transaction, you must specify the data it will contain, the format of the data, and the destination/source/direction of the transaction. When users run your application at the start of a job, data collected for the Job On transaction includes a constant value (“JOTRAN”), the worker’s Badge ID Number, the Part Number, the Order Number, the date, and the time.
Exercise 11: Creating a Transaction In this exercise, you will create a transaction called JON_Tran. To create the JON_Tran transaction 1. Choose Screen: JobOn from the Object List. 2. Choose New Transaction from the File menu. The Transaction Editor dialog box appears.
4-3
Page 58
EZBuilder Tutorial
The Transaction Editor dialog box consists of the following: •
An area where you can enter a Constant Value
•
A list of the Available Fields you have created
•
An area where you can create a list of Transaction Fields
The Transaction Editor also contains five arrow buttons. •
The first arrow button (>) moves the Constant Value into the Transaction Fields list.
•
The second arrow button (>) moves selected fields from the Available Fields list into the Transaction Fields list.
•
The third button (>>) moves ALL fields in the Available Fields list into the Transaction Fields list.
•
The fourth button (<) moves selected fields from the Transaction Fields list back to the Available Fields list.
•
The fifth button (<<) moves ALL fields from the Transaction Fields list back to the Available Fields list.
3. In the Object Manager, name the transaction “JON_Tran.” 4. In the Object Manager, click the Transfer Direction field. 5. Click the Transfer Direction button. The Transaction Direction Editor dialog box appears.
6. Click the Transaction To radio button. Click OK to return to the Object Manager. 7. In the Transaction Editor dialog box, type “JOTRAN” in the Constant Value field. Click the Constant Value arrow button to move the JOTRAN value into the Transaction Fields list. Note: JOTRAN as the first output data item in a transaction record identifies the data record as a Job On transaction.
4-4
Page 59
Creating Transactions
4
8. In the Available Fields list, select JobOn.BadgeNo, JobOn.OrderNo, JobOn.PartNum, <DATE>, and <TIME>. (Hold down the Ctrl key on your keyboard to select multiple fields.) 9. Click the Available Fields > button to move the highlighted fields into the list of Transaction Fields. Note: You can also drag Available Fields selections into the Transaction Field list, or you can double-click the items in the Available Fields list. You should now have six items in the Transaction Fields list: JOTRAN, three data input fields (JobOn.BadgeNo, JobOn.OrderNo, and JobOn.PartNum), <DATE>, and <TIME>. To adjust Date properties for the JON_Tran transaction 1. In the Transaction Fields list, click <DATE>. The <DATE> default values appear in the Object Manager.
2. In the Override field, double-click False to change it to True. The Length field value changes to 10. Remember: You must move to another field in the Object Manager to cause field changes to take effect. Note: The Override field has two settings: True and False. Set Override to True to override the current property settings; set Override to False to ensure that the current property settings cannot be changed. 3. Set the Delimiter to one space character by clicking the Delimiter field and pressing the space bar on your keyboard once. This setting inserts a space after the Date field, separating it from the Time field in the output record. 4. Click the Formatting field. A down arrow appears.
4-5
Page 60
EZBuilder Tutorial
5. Click the Formatting down arrow, and choose MM-DD-YYYY.
To adjust Time properties for the JON_Tran transaction 1. In the Transaction Fields list, click <TIME>. The <TIME> default values appear in the Object Manager. 2. In the Override field, double-click False to change it to True. The Length field changes to 8. 3. Click the Delineation field. A down arrow appears. 4. Click the Delineation down arrow, and choose Length from the drop-down list that appears. Every record ends with a carriage return. Because <TIME> is the last field specified for the output record (see the Transaction Fields list), setting the Delineation to Length places that carriage return at the end of the Time field. 5. Click the Formatting field. A down arrow appears. 6. Click the Formatting down arrow, and choose HH:MM:SS from the resulting list.
4-6