The text of a manual · part 8 of 25
Application Builder for DuraTrax/LaserLite/LaserLite Pro/LaserLite Mx, for Windows Computers, pages 71 to 80
Pages 71 to 80 of 245
The original document is the PDF (2.4 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 Videx DuraTrax, Videx LaserLite, Videx LaserLite Mx and Videx LaserLite Pro
Page 71
In this example, the matching criterion is simple enough that the BASIC code fits into a single plug-in. Often, the desired matching criterion is too complex to fit into a single line of BASIC code. In that situation, the text of the plug-in should be: gosub myroutine where myroutine is a subroutine containing the BASIC code which implements the matching criterion: myroutine: •= •= •= if (condition) then accepts% = true% return The subroutine myroutine can be run as a series of plug-ins executed by the “Begin” handler. Alternatively, myroutine can be incorporated into the application using the “Include” command, which is discussed on page 190. See Chapter 4 for more information on plug-ins. See the Videx BASIC Manual for more information on the BASIC commands.
Chapter 2 Application Builder, Menus & Windows
63
Page 72
Input Device
Figure 2-32 Input Device Property The Input Device property determines what methods of data entry are acceptable to the Input Handler. An Input Handler can only accept user input from devices with a checkmark in the adjacent box. The Input Device property has a default of Keyboard, Laser, Contact Scanner, and Touch Button (Figure 2-32). The Input Device property choices are described in the following sections. Keyboard The user input must be entered by the LaserLite Pro or LaserLite Mx keypad or by a bar code scanpad. A bar code scanpad (Figure 2-33) is a card that contains printed Code 3 of 9 bar codes assigned to numbers, letters, and symbols. A scanpad is included with your data collector. You can scan the individual scanpad characters to enter any bar code. This allows manual entry of data and is especially useful if you encounter a bar code that is torn, damaged, or otherwise unreadable.
64
Chapter 2 Application Builder, Menus & Windows
Page 73
Figure 2-33 Bar Code Scanpad Laser The user input must be entered by the LaserLite, LaserLite Pro, or LaserLite Mx laser. Contact Scanner The user input must be entered by the DuraTrax contact scanner. Touch Button The user input must be entered by the DuraTrax, LaserLite Pro, or LaserLite Mx Touch Memory button reader. Software This feature assumes the user has a fundamental knowledge of BASIC. In some cases the software simulates data entry, and when it does Software must be used as the input device. For example, the Audit application in the Samples folder uses Software as the Input Device when the “Loc & Part#” Handler steps through the cross-reference file of locations and part numbers. This feature must also be used when you use the Other Details command. See the Other Details command section on page 49 for more information. Chapter 2 Application Builder, Menus & Windows
65
Page 74
Symbology
Figure 2-34 Symbology Property If the user input is a bar code scan, the Symbology property (Figure 2-34) determines if the bar code symbology is acceptable to the Input Handler. A checkmark in the box indicates the Input Handler accepts the bar code symbology; no checkmark indicates the symbology is not acceptable. The default setting for the Symbology property is to accept all of the listed symbologies.
66
Chapter 2 Application Builder, Menus & Windows
Page 75
DuraTrax, LaserLite, LaserLite Pro, and LaserLite Mx can read Code 3 of 9, UPC, Interleaved 2 of 5, Codabar, EAN, and Code 128 bar code symbologies. Figure 2-35 describes the different symbologies.
Bar Code
Uses
Description
Code 3 of 9
Auto parts, labels for sorting, Dept. of Defense, purchasing, and supply control
The most popular industrial and government bar code symbology. Reliable. Variable length bar code with both numeric and uppercase letters.
Interleaved 2 of 5
Industry, cartons of food, labels for sorting, and supply control
A popular industrial bar code symbology. This is a numbers only code and requires an even number of digits to make a legal code.
Codabar
Medical sample control, photo processing, and libraries
Used for Red Cross blood banking. This is a variable length code.
EAN
European product code
European retail code symbology.
UPC
Universal Product Code; retail products, grocery, drug, and medical goods
A food and drug retail market symbology. This is a variable length code.
Code 128
Shipping/receiving, inventory
A popular high-density bar code symbology. Variable length with upper and lowercase letters, all ASCII control characters, and all numeric entries.
Figure 2-35 Bar Code Symbologies
Chapter 2 Application Builder, Menus & Windows
67
Page 76
Actions
Figure 2-36 Actions Property The Actions property (Figure 2-36) provides a list of actions that can be performed by the Input Handler when it accepts the user input and becomes the “current” Handler. The center section of the Properties window is the action list window. The action list window lists the actions to be performed by the Input Handler when it becomes the “current” Handler. The Actions property default is to Beep and Add input to record. At the right side of the window is the action description pop-up menu. Click the pop-up menu indicator to display the menu (Figure 2-37).
Figure 2-37 Action Description Pop-up Menu To add an action to the action list, select the action in the pop-up menu and click Add. To reorder the actions in the action list window, click and drag them around. To delete an action from the action list, select the action in the action list window and click Remove. 68
Chapter 2 Application Builder, Menus & Windows
Page 77
The actions are described in the following sections. Beep Beeps with a high pitch. This should normally be used as the first action an Input Handler performs to alert the user that the input was accepted. Low beep Beeps with a low pitch. Same beep used to signify “bad” input. (Bad input is input which is not accepted by any Input Handler.) This action can be used in a Detour Handler to signal an error, or you can alternate the Beep and Low Beep actions to make a siren-type sound. Add input to record Adds user input to the current record. Add date to record Adds current date to the current record. Add time to record Adds current time to the current record. Add CRF field to record Adds cross-reference (CRF) file description to the current record. If the user input matches a key in the CRF file, then any of the description fields associated with the key may be added to the current record. Add text to record Adds arbitrary text to the current record. Run plug-in Inserts BASIC source code in the application. This feature assumes the user has a fundamental knowledge of BASIC. See Chapter 4 for information on using plug-ins.
Chapter 2 Application Builder, Menus & Windows
69
Page 78
Detour The Detour property determines if the selected Input Handler is a standard Input Handler or a Detour Handler. A Detour Handler lets you pause an application, perform another task with the data collector, and then resume the application. The default for the Detour property is no detour, as shown in Figure 2-38. A Detour Handler is typically used to display a message (such as instruction, error, and so forth) to the user.
Figure 2-38 Detour Property - No Detour (Default) To make the selected Input Handler a Detour Handler, click the Detour Handler check box. A checkmark in the box indicates the Input Handler is a Detour Handler (Figure 2-39); no checkmark in the box indicates the Input Handler is not a Detour Handler. When an application returns from a Detour Handler, it always returns to the previous Input Handler, and resumes where it left off. The application may return from a Detour Handler in one of three ways: • After the Detour Handler’s actions are performed. • After three seconds or a button press (whichever is first). • After the ESC key is pressed on the LaserLite Pro or LaserLite Mx.
Figure 2-39 Detour Property 70
Chapter 2 Application Builder, Menus & Windows
Page 79
Display Window The Display window (Figure 2-40) is where the data collector’s display is designed for each Input Handler. To open the Display window, choose Display Window from the View menu or click the Display Window toolbar button. To close the Display window, click the close window box.
Figure 2-40 Display Window The “current” Input Handler is responsible for the display. You can specify what the display should look like when an Input Handler is the “current” Handler by selecting the Input Handler and designing the display with the Display window. The Display window contains the display area and the tool palette. The display area is a graphic representation of the data collector’s display (2 x 16 characters) and the tool palette contains tools for designing the display. The tool palette contains the following tools: Selection Tool
Selects an object.
Text Tool
Allows text entry.
Field Tool
Inserts a field object. A field object marks the area where data from the current or a previously visited Input Handler can be displayed; the displayed data may be either the user input, the date, the time, or a CRF file field description. (The Field tool can also be used to display the value of any variable in the application; this may be useful when using plug-ins (see pages 189–193).
Chapter 2 Application Builder, Menus & Windows
71
Page 80
Key Input Tool
Inserts a key input area; the key input area marks the area where keypad and scanpad entries are displayed.
The Display window is a small draw program. Like most draw programs: •= You can create objects by selecting the appropriate tool, and placing the object in the display area by dragging a rectangle with the mouse. •= You can move objects by selecting the Selection tool, and clicking and dragging the object to the new location. •= You can resize objects by selecting the Selection tool, clicking the object, and then clicking and dragging one of the object’s size handles. •= You can bring an object forward by selecting the Selection tool, holding the <Ctrl> key down and clicking the object. •= You can send an object back by selecting the Selection tool, holding the <Shift>+<Ctrl> keys down and clicking the object. •= You can delete an object by selecting the Selection tool, clicking the object and choosing Delete Objects from the Edit menu.
72
Chapter 2 Application Builder, Menus & Windows