The text of a manual · part 17 of 25
Application Builder for DuraTrax/LaserLite/LaserLite Pro/LaserLite Mx, for Windows Computers, pages 161 to 170
Pages 161 to 170 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 161
Example 1: Error Message Detour Handler In the following example, we will attach a single Detour Handler to the existing Input Handlers to inform the user if an error is made while scanning. The following steps show you how to add a Detour Handler to an application: 1.
Open the Security application that you built in Chapter 3 (Figure 4-1).
Figure 4-1 Security.abd Application In this example, we want the error message Detour Handler to be accessible from each current Input Handler. The easiest way to do this is to select all of the Input Handlers before adding the new Input Handler. The new Input Handler will automatically be connected to each selected Input Handler.
Chapter 4 Advanced Application Building
153
Page 162
2.
Select all of the Input Handlers by dragging a rectangle around them (Figure 4-2), by choosing Select All Handlers from the Edit menu (Figure 4-3), or by Shift-clicking each Input Handler.
Figure 4-2 Drag Rectangle to Select Input Handlers
Figure 4-3 Edit Menu–Select All Handlers Command
154
Chapter 4 Advanced Application Building
Page 163
3.
The application window should look like Figure 4-4 when all of the Input Handlers are selected.
Figure 4-4 All Input Handlers Selected 4.
Add a new Input Handler to the application by clicking New Input Handler, by choosing New Input Handler from the Application menu, or by typing Ctrl+E.
5.
A new Input Handler is added to the application (Figure 4-5).
Figure 4-5 New Input Handler Added
Chapter 4 Advanced Application Building
155
Page 164
6.
To verify that the new Input Handler is attached to each of the other Input Handlers, click and drag the new Input Handler down the window (Figure 4-6). You should see connecting lines between the new Input Handler and each previous Input Handler.
Figure 4-6 Click and Drag New Input Handler 7.
Select the new Untitled Input Handler (Figure 4-7).
Figure 4-7 New Untitled Input Handler Selected 8.
156
Open the Properties window by clicking Properties Window or by choosing Properties Window from the View menu.
Chapter 4 Advanced Application Building
Page 165
9.
The Properties window opens (Figure 4-8).
Figure 4-8 Properties Window 10. Click Detour from the Category list to select the Detour category (Figure 4-9).
Figure 4-9 Properties Window - Detour Category 11. Click the Detour Handler selection box to make the selected Input Handler a Detour Handler (Figure 4-10).
Figure 4-10 Properties Window - Detour Handler Selected
Chapter 4 Advanced Application Building
157
Page 166
You can return to the application from a Detour Handler in one of three ways: 1) after actions: After the Detour Handler’s actions are performed. 2) after timeout: After three seconds or if a button on the data collector is pressed (default). 3) after ESC key: After the ESC key is pressed on a LaserLite Pro or LaserLite Mx. 12. We will use the Returns after timeout default in this example. 13. The selected Input Handler now appears with stripes to indicate that it is a Detour Handler (Figure 4-11).
Figure 4-11 Selected Input Handler is Detour Handler 14. Click Untitled to edit the name of the Detour Handler (Figure 412). Since we are using the Detour Handler to report a scanning error, we will name the handler Error.
Figure 4-12 Edit Detour Handler Name 158
Chapter 4 Advanced Application Building
Page 167
15. Type Error (Figure 4-13).
Figure 4-13 Edit Detour Handler Name 16. Press the computer’s <Enter> key to enter the new name (Figure 414).
Figure 4-14 Detour Handler Named Error
Chapter 4 Advanced Application Building
159
Page 168
17. At the Properties window click Action in the Category list (Figure 4-15).
Figure 4-15 Properties Window - Action Category By default the handler is given the actions of Beep and Add input. For the “Error” Handler we want to remove these default actions and add the Low beep action to signify that an error occurred. 18. Select Beep in the action list (Figure 4-16).
Figure 4-16 Beep Action Selected
160
Chapter 4 Advanced Application Building
Page 169
19. Click Remove to delete the action from the list (Figure 4-17).
Figure 4-17 Remove Beep Action 20. Select Add input in the action list (Figure 4-18).
Figure 4-18 Add Input Action Selected
Chapter 4 Advanced Application Building
161
Page 170
21. Click Remove to delete the action from the list (Figure 4-19).
Figure 4-19 Remove Add Input Action 22. Choose Low beep from the Action description pop-up menu (Figure 4-20).
Figure 4-20 Choose Low Beep Action from Menu
162
Chapter 4 Advanced Application Building