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 7 of 12

EZBuilder Tutorial, pages 61 to 70

Pages 61 to 70 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 61

Creating Transactions

4

To adjust Transfer Direction for the JON_Tran transaction The default Transfer Direction sends your transactions to the network. You will now tell EZBuilder to send the transactions to a file. 1. Choose Trans: JON_Tran from the Object List. 2. In the Object Manager, click the Transfer Direction field. 3. Click the button that appears in the Transfer Direction field, and click the File radio button. 4. In the File field, enter the drive and filename to which you want to send the transactions (the Job On and Job Off data). An example filename, C:JOFILE, is shown below.

Note: The file named here will be located in the Output path that you specify in the Build Options dialog box in Chapter 5. The C drive is a Flash drive; the E drive is used if you plan to download to a RAM drive; the G drive is used as an extended storage drive. For file management and RAM drive details, see the EZBuilder Getting Started Guide.

4-7

Page 62

EZBuilder Tutorial

5. Click OK. The drive and filename you specified appears in the Transfer Direction field in the Object Manager.

Congratulations! You have completed Exercise 11. Save your file, and continue with Exercise 12.

Exercise 12: Creating the JOF_Tran (Job Off) Transaction When users run your application at the end of a job, data collected for the Job Off transaction includes a constant value (JOFTRAN), the worker’s Badge ID Number, the Part Number, the Order Number, the date, and the time. In this exercise, you will create a transaction called JOF_Tran. To create the JOF_Tran transaction Note: The next several steps are brief because they are similar to those you did for the JOTRAN transaction. Refer back to Exercise 11 for details. 1. Choose New Transaction from the File menu. The new transaction and its default values appear. 2. Rename the transaction “JOF_Tran.” 3. In the Object Manager, change the Transfer Direction field value to To Network.

4-8

Page 63

Creating Transactions

4

4. In the Transaction Editor dialog box, enter “JOFTRAN” as the Constant Value, and move the “JOFTRAN” value to the Transaction Fields list. As the first field in the data record, “JOFTRAN” will identify the record as a Job Off transaction.

5. Move JobOff.BadgeNo, JobOff.OrderNo, JobOff.PartNum, <DATE>, and <TIME> from the Available Fields list to the Transaction Fields list. Like the JON_Tran transaction that you completed earlier, the current properties remain as they are for all the Transaction Fields except the <DATE> and <TIME> fields in the JOF_Tran transaction. These two fields will be changed the same way you changed them for the JON_Tran transaction. To adjust Date properties for the JOF_Tran transaction 1. Change the <DATE> Override field to True. 2. Change the Delimiter property to one blank character. 3. Choose the MM-DD-YYYY Formatting option. To adjust Time properties for the JOF_Tran transaction 1. Change the <TIME> Override field to True. 2. Change Delineation to Length. 3. Choose the HH:MM:SS Formatting option. To adjust Transfer Direction for the JOF_Tran transaction 1. In the Object List, choose Trans: JOF_Tran. 2. Click the Transfer Direction field, and then click its button to bring up the Transaction Direction Editor.

4-9

Page 64

EZBuilder Tutorial

3. In this exercise, both JON_Tran and JOF_Tran transactions go to the same output file. Change the Destination from the Port option (showing “Network”) to the File option, and enter the same drive and filename that you used in the JON_Tran transaction. When you have finished, click OK to close the Transaction Direction Editor dialog box. Note: When the program is run, there will be one JOTRAN (Job On) transaction for a specific job, followed by that job’s JOFTRAN (Job Off) transaction. These transactions will be followed by other pairs of JOTRAN and JOFTRAN transaction records as further jobs are finished. (See Chapter 5 for example output.) Congratulations! You have completed Exercise 12. Save your file, and continue with Exercise 13.

Exercise 13: Finishing the Transactions As your program stands right now, users will enter or scan the Badge ID Number, the Part Number, and the Order Number, in that order. The program still needs to be told that upon exiting the scan (or entering the last keystroke) of the Order Number (the last data field), all the gathered information must be packaged by the transaction and sent to the file. In this exercise, you will finish the Job On and Job Off transactions. To finish the Job On Transaction 1. Choose Screen: JobOn from the Object List. 2. In the Viewport, select the Order field. 3. In the Object Manager, click the On Exit tab. 4. Click the Do Transaction field, and then click the resulting down arrow. A dropdown list box appears.

4-10

Page 65

Creating Transactions

4

5. Choose JON_Tran. Setting the Do Transaction to JON_Tran tells EZBuilder that you want the finished application to generate a Job On transaction when the user exits the Order data field. In other words, when users finish scanning or entering the Order data, an output record is sent to the file. The record starts with the JOTRAN identifier to indicate it is a Job On Transaction. The record also contains the Badge, Part, and Order data, as well as the Date and Time of the transaction. (See Chapter 1 for an illustration of this process; see Chapter 5 for example data.)

To finish the Job Off Transaction Note: These steps are similar to the ones you just followed. Refer back to the previous steps if you need more detail. 1. Choose Screen: JobOff from the Object list. 2. In the Viewport, select the Order field. 3. In the Object Manager, click the On Exit tab to open the Validation dialog box. 4. Choose JOF_Tran in the Do Transaction field. Setting the Do Transaction to JOF_Tran tells EZBuilder that you want the finished application to generate a Job Off transaction when users exit the Order data field. In other words, when users finish scanning or entering the Order data, an output record is sent to the file. This record will start with the JOFTRAN identifier to indicate it is a Job Off Transaction. The record will also contain the Badge, Part, and Order data as well as the Date and Time of the transaction. (See Chapter 1 for an illustration of this process; see Chapter 5 for example data.) Congratulations! You have completed Exercise 13. Save your file, and continue with Exercise 14.

4-11

Page 66

EZBuilder Tutorial

Exercise 14: Creating the CopyBadge Transaction Before continuing, we will review the tutorial application. Upon starting a new job, the user scans a bar code or enters the letters “SFCLBR” (Start Factory Labor). This input data tells the terminal that a JobOn transaction is started and automatically sends the JOTRAN constant value into the JON_Tran Transaction Fields list. The user then enters or scans the other Job On transaction data - the Badge ID Number, Part Number, and Order Number - in that order. Following that, the user performs the job. Upon ending the job, the user scans a bar code or enters the letters “EFCLBR” (End Factory Labor). This input data tells the terminal that a JobOff transaction is started and automatically sends the JOFTRAN constant value into the JOF_Tran Transaction Fields list. The user again enters or scans the same data - Badge ID Number, Part Number, and Order Number data - in that order. With the exception of the SFCLBR and EFCLBR codes, the same three data fields are entered or scanned twice - at the start of a job and at the end of a job. Suppose the same three data fields were automatically entered at the end of the job? The user saves time, having to only enter or scan the EFCLBR at the end of the job to generate the Job Off transaction. Not only does it save time, it ensures accuracy as well - especially if data is keyed in by the worker. This exercise is optional, but it presents a way for you to help your users save time when running this type of application. We recommend that you complete this exercise. In this exercise, you will set up your application to automatically copy data from one field (JobOn.BadgeNo) into another field (JobOff.BadgeNo). To save time in this exercise, we show you how to create only the CopyBadge transaction. You can then use the steps to help you create the CopyPart and CopyOrder transactions. To create the CopyBadge Transaction 1. Choose Screen: JobOn from the Object List. 2. In the Viewport, select the BadgeNo field. 3. Click the On Exit tab in the Object Manager. 4. Type “CopyBadge” in the Do Transaction field.

4-12

Page 67

Creating Transactions

4

5. Double-click CopyBadge. The CopyBadge transaction is created (and shown in the Object List), and the CopyBadge transaction values appear in the Object Manager and the Transaction Editor dialog box.

Note: JOFTRAN appears in the Constant Value area (as previously illustrated) if you have continued your tutorial exercise without exiting since entering that value. The Constant Value is a temporary value that is not saved when you exit EZBuilder; therefore, your screens may look slightly different unless you work straight through the exercise - as we did to create the screen pictures for this document. In addition, do not let the Constant Value “JOFTRAN” confuse you. The Constant Value is not part of the transaction you are now defining; only those objects you move into the Transaction Fields list become part of the current transaction you are defining. 6. Move JobOn.BadgeNo from the Available Fields list to the Transaction Fields list. 7. Click the Transfer Direction field, and then click the resulting button to open the Transaction Direction Editor. 8. In the Transaction Direction Editor, click the Field radio button, and then click the Field down arrow, and choose JobOff.BadgeNo from the drop-down list.

4-13

Page 68

EZBuilder Tutorial

9. Click OK to close the Transaction Direction Editor. Note: With the above method, when the user selects the Job On transaction from the Main Menu and enters the Badge ID Number into the JobOn.BadgeNo field, that data is automatically entered into the Job Off transaction’s JobOff.BadgeNo field as well. If desired, you could also code Part Number and Order Number data to automatically move from the JobOn data fields to their corresponding JobOff fields. The CopyBadge transaction you just completed sets your application to copy when the user enters data on the JobOn screen; however, the JobOff default is to clear all fields from a previous JobOff transaction (as typically desired). Because you want to save the JobOff.BadgeNo data, you must go back to the Job Off screen and set EZBuilder to stop clearing that data. The next few steps explain that process for the Badge ID Number data, but if you have also coded Part Number and Order Number to be automatically entered into the JobOff transaction, you will want to do these next few steps for those fields as well. To stop automatically clearing data 1. Choose Screen: JobOff from the Object List. 2. In the Viewport, select the Badge field. 3. In the Object Manager, scroll to the Clear on Screen Entry field. 4. Click the Clear on Screen Entry field, and then double-click to change the field value to False.

Repeat Steps 2 through 4 for the PartNum and OrderNo fields if you had coded EZBuilder to automatically move their JobOn transaction data into the JobOff transaction fields. Congratulations! You have finished Exercise 14. Save your file, and continue with Exercise 15.

4-14

Page 69

Creating Transactions

4

Exercise 15: Creating Toggle Capability Your application is currently coded so users view the Main Menu and press F2 to bring up the JobOn screen where data is captured at the start of a job. Users then press Esc to return to the Main Menu where F3 can be pressed to bring up the JobOff screen so data can be captured at the end of the job. In this exercise, which is optional, you will code your application so users can go back and forth, or “toggle,” between the JobOff and JobOn screens without having to first return to the Main Menu. To create toggle capability from JobOff to JobOn screen 1. Choose Screen: JobOff from the Object List. 2. In the Viewport, select the OrderNo field. 3. In the Object Manager, choose the On Exit tab, and then choose the On Val Succeed tab. 4. Click in the Navigation Choice field, and then click the resulting button to bring up the Navigation Selection dialog box. 5. In the Navigation Selection dialog box, click the Go to Field radio button. 6. Click the Go to Field down arrow button, and choose JobOn.BadgeNo from the resulting drop-down list. 7. Click OK to close the Navigation Selection dialog box. To create toggle capability from JobOn to JobOff screen 1. Choose Screen: JobOn from the Object List. 2. In the Viewport, select the OrderNo field. 3. In the Object Manager, choose the On Exit tab, and then choose the On Val Succeed tab. 4. Click the Navigation Choice field, and then click the resulting button to bring up the Navigation Selection dialog box. 5. In the Navigation Selection dialog box, click the Go to Field radio button. 6. Click the Go to Field down arrow button, and choose JobOff.BadgeNo from the resulting drop-down list. 7. Click OK to close the Navigation Selection dialog box. Congratulations! You have completed Exercise 15. Save your file before continuing.

4-15

Page 70

EZBuilder Tutorial

Chapter Summary In this chapter, you learned how to create a transaction by creating the Job On, Job Off, and CopyBadge transactions. You also learned how to format the system date and time for automatic date and time stamps, and how to transfer the collected data to a file. You learned how to transfer input data entered on one transaction (JobOn.BadgeNo) into another transaction’s field (JobOff.BadgeNo) to be saved for output. In addition, if you chose to do the optional Exercise 15, you learned how to create toggle capability. The EZBuilder components covered up to this point in the tutorial are shaded in the next illustration. You now have finished everything necessary for EZBuilder to generate your application program When you are ready to build and test your application program, continue with Chapter 5, which provides example data output and information about downloading your application program to the terminal.

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

4-16