The text of a manual · part 5 of 12
EZBuilder Tutorial, pages 41 to 50
Pages 41 to 50 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 41
Creating Screens
3
Congratulations! You have completed Exercise 4. Save your file before continuing with Exercise 5.
Exercise 5: Designing the JobOn Screen In this exercise, you will make a label for the top of the JobOn screen, and then you will define three data fields (input areas) for the screen.
Labeling the JobOn Screen Note: The steps below contain fewer illustrations than the similar steps you followed when you created labels for the Main Menu and MM_Help screens. Refer back to Exercise 1 in Chapter 2 if you need more detail or illustrations. To make a screen identification label for the JobOn screen 1. Choose Screen: JobOn from the Object List. 2. Add a label with the caption “Job On, ” a Row value of 1, and a Column value of 7. 3. Change the Display Attribute of the Job On label to BOLD. 4. Add a box around the Job On 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.
Congratulations! You have completed Exercise 5. Save your file before continuing with Exercise 6.
3-7
Page 42
EZBuilder Tutorial
Exercise 6: Defining and Labeling Data Fields In this exercise, you will define and label three data fields in your application: a Badge Identification Number field, a Part Number field, and an Order Number field. Note: This tutorial instructs you to define each data field before defining its label; however, you may prefer to define the label before defining the data field.
Defining the Badge Identification Number Field The first of three input data fields needed for the Job On transaction is the Badge Identification Number field. Your users will enter or scan Badge Identification Number data into this field. To define the Badge ID Number field 1. Choose Screen: JobOn from the Object List. 2. Choose Add Field from the File menu. 3. Type “BadgeNo” in the Name field. 4. Change the Row value to 4, the Column value to 9, and the Length value to 10. The Viewport reflects these changes. 5. Change the Display Attribute field to INVERSE. The field becomes gray in the Viewport. Note: Although creating a field with a Display Attribute value of NORMAL creates an outline of the field in the Viewport, this outline does not appear on your user’s terminal; therefore, ensure that all data fields you add to your applications are INVERSE.
3-8
Page 43
Creating Screens
3
Labeling the Badge Identification Number Field Next, you will create and define a label for the input data field you just created. To create the Badge ID Number label 1. Add a label to the JobOn screen with a Row value of 4 and a Column value of 1. 2. Type “Badge” in the Caption field. This label tells your users what kind of data should populate the corresponding field (the shaded area in the Viewport).
Defining the Part Number Field The second input data field needed for the Job On transaction is the Part Number field. Your users will enter or scan Part Number data into this field. To create the Part Number field 1. Add an inverse field to the JobOn screen with a Row value of 7, a Column value of 9, and a Length value of 25. 2. Type “PartNum” in the Name field.
Labeling the Part Number Data field Next, you will create and define a label for the field you just created. To create the Part Number label 1. Add a label to the JobOn screen with a Row value of 7 and a Column value of 1. 2. Type “Part” in the Caption field.
3-9
Page 44
EZBuilder Tutorial
Creating the Order Number Field The third input data field needed for the Job On transaction is the Order Number field. Your users will enter or scan Order Number data into this field. To create the Order Number field 1. Add an inverse field to the JobOn screen with a Row value of 10, a Column value of 9, and a Length value of 9. 2. Type “OrderNo” in the Name field. To create the Order Number label 1. Add a label to the JobOn screen with a Row value of 10 and a Column value of 1. 2. Type “Order” in the Caption field.
Wrapping Data The above illustration shows the 25-character PartNum field continuing off the right edge of the Viewport instead of wrapping around to another row. For users to see the entire contents of the field, you must set it to wrap; however, you cannot set an individual field to wrap. Instead, you must set all the fields on a screen to wrap. In this exercise, you will set all the fields on the JobOn screen to wrap. To set all JobOn data fields to wrap 1. Choose Screen: JobOn from the Object List. 2. Change the Wrap at Edge value to True. This change is not visible in the Viewport; however, it is visible when your application is run on the Simulator or a terminal.
3-10
Page 45
Creating Screens
3
Note: Up to 240 characters can be wrapped. Congratulations! You have completed Exercise 6. Save your file before continuing with Exercise 7.
Exercise 7: Programming the Function Keys Function keys can be a great asset to your users. By programming a few function keys, you can provide your users quick access to information about your program's components or help them navigate through your application. You can program a function key to • return to the previous data field (a process you began in Exercise 4).
• return to the beginning of the same data field.
• bring up a help screen that describes the characteristics of a data field (the first task in this exercise).
To associate a help screen with a function key 1. If the JobOn screen is not showing in the Viewport, choose Screen: JobOn from the Object List. 2. In the Viewport, select the Badge field. Remember: To select an item, double-click it in the Viewport. 3. Click the KP/Events tab in the Object Manager. The settings for this tab appear in the Object Manager.
4. Click the F1 field. The field button appears.
3-11
Page 46
EZBuilder Tutorial
5. Click the field button in the F1 field. The Key Action Selection Editor appears.
6. Click the Call Screen radio button, and then click the Call Screen down arrow. A drop-down list appears showing the screens associated with your application. The screen in the Call Screen field is the screen that will be called when users press the associated key (in this case, the F1 key). 7. Click the Call Screen field, and type “Data_Help.” This is now the screen that will be called when users press the F1 key in the Badge field.
8. Click OK. Because the Data_Help screen has not been created, the Information dialog box appears asking if you want to create the screen.
3-12
Page 47
Creating Screens
3
9. Click Yes to create the Data_Help screen. This screen is now the screen that will be called when users press the F1 key. You will complete the Data_Help screen in Exercise 10 later in this chapter. The Object Manager appears, and the F1 field is <SET>. 10. Check the Object List to verify that the Data_Help screen is listed. If it is not, repeat steps 3 through 7 to create it. 11. In the Viewport, select the PartNum field. Repeat Steps 3 through 7 to call the Data_Help screen when F1 is pressed in the PartNum field. 12. In the Viewport, select the OrderNo field. Repeat Steps 3 through 7 to call the Data_Help screen when F1 is pressed in the OrderNo field. To return to a previous field 1. If the JobOn screen is not showing in the Viewport, choose Screen: JobOn from the Object List. 2. Select the BadgeNo data field in the Viewport. 3. Click the KP/Events tab in the Object Manager. The settings for this tab appear in the Object Manager. 4. Click the F4 field. The field button appears. 5. Click the button in the F4 field. The Key Action Selection Editor appears. 6. Click the Go to Field radio button, and then click the Go to Field down arrow. A drop-down list appears showing the fields and labels associated with your application. 7. Choose JobOn.PartNum. The Part field is now the field the cursor will be set to when users press F4 in the Badge field. 8. Click OK. The Object Manager appears, and the F4 field is <SET>. 9. Repeat steps 2 through 6 to set the F4 key to return to the OrderNo field from the PartNum field and to return to the BadgeNo data field from the OrderNo field. Note: This “hot key” approach bypasses all exit validation and field exit action. If a field exit action is desired, you must associate an Exit Field choice from the Do Standard Action drop-down list available from the Key Action Selection Editor. Congratulations! You have completed Exercise 7. Save your file before continuing with Exercise 8.
3-13
Page 48
EZBuilder Tutorial
Exercise 8: Programming the Beep Sound You can add a beep sound to your application to alert users to certain actions; for example, you may want a beep to sound when a field is exited or an error occurs. You can set the beep on or off, and you can set it to sound whenever a function key is pressed. In this exercise, you will set the Tab key beep to Success, meaning that the beep will sound when that key is pressed. You will then set the Tab key beep to None, meaning that the beep will not sound when the key is pressed. To set the Tab key beep sound 1. If the JobOn screen is not showing in the Viewport, choose Screen: JobOn from the Object List. 2. In the Viewport, select the BadgeNo field. 3. In the Object Manager, click KP/Events. 4. Click the Tab field. The field button appears. 5. Click the field button in the Tab field. The Key Action Selection Editor appears.
6. Click the Do Standard Action down arrow, and choose Exit Field from the dropdown list that appears. 7. Click OK to exit the Key Action Selection Editor. The Tab key field is <SET>. 8. Click the On Exit tab, and then click the On Val Succeed tab. 9. Click the Beep field. A down arrow appears. 10. Click the Beep field down arrow and choose <Success> from the drop-down list that appears. The beep is now set to sound when the Tab key is pressed.
3-14
Page 49
Creating Screens
3
To turn off the Tab key beep 1. Follow steps 1 through 8 above. 2. At step 9, instead of choosing <Success> from the Beep field drop-down list, choose <None>. The beep will not sound when the Tab key is pressed. Congratulations! You have completed Exercise 8. Save your file and continue with Exercise 9.
Exercise 9: Creating the JobOff Screen In this task, you will create a new screen for Job Off transactions. The JobOff screen will resemble the JobOn screen you created and designed earlier in the tutorial. Both screens will • show the same data fields (BadgeNo, PartNum, and OrderNo) and labels.
• have fields set to wrap.
• be programmed to bring up the Data_Help screen when users press the F1 key.
Apart from their unique names (JobOn and JobOff), the two screens are identical except that the F4 key will be set to bring up different results in each screen. In this exercise, you will first copy the JobOn screen; then you will revise the copy to create the JobOff screen.
Copying the JobOn Screen Because of their similarity, you can create the JobOff screen by copying the JobOn screen and revising the screen’s label and the function keys. To copy the JobOn screen 1. Choose Screen: JobOn from the Object List. 2. Click anywhere in the blank part of the Viewport (not on a label or field). 3. Choose Copy Object from the Edit menu. The JobOn screen and its fields and labels are saved to the clipboard.
3-15
Page 50
EZBuilder Tutorial
4. Choose Paste Object from the Edit menu. The duplicate JobOn screen is pasted to the Viewport and the new name, JobOn0, appears in the Object Manager.
Changing the Duplicate Screen Except for their screen names, the two screens (JobOn and JobOn0) are currently exact duplicates. You will now change the JobOn0 screen to become the JobOff screen. To rename the JobOn0 screen 1. If the JobOn0 screen is not showing in the Viewport, choose Screen: JobOn0 from the Object List. 2. In the Object Manager, change the Job On caption to “Job Off.” 3. In the Object Manager, rename the screen “JobOff.”
4. In the Object List, verify that both the JobOn and JobOff screens are listed.
3-16