The text of a manual · part 30 of 33
502X Data Collection PC System Manual: Appendix C: Extending the Unit Manager Main Menu
Pages 265 to 276 of 310, from 502X Data Collection PC System Manual
The original document is the PDF (2.7 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 Intermec 5020
Page 265
C Extending the Unit Manager Main Menu Blank pge
Page 266
blank
Page 267
Ng C9
Extending the Unit Manager Main Menu
C
This appendix explains how to extend and customize the Unit Manager main menu. It includes 502X registry definitions and examples.
Getting Started Unit Manager (Unit Management on 5023) is a Web-based, data-driven presentation engine. When you access a 502X through your Web browser, the 502X sends the Web pages to the browser. For example, the main menu is displayed next.
The Unit Manager Web page consists of two frames: “content” and “main.” The menu on the left side of the frame is the “content” and reflects the data in the data store. The content frame is data-driven and references links that display the file or URL in the “main” or right frame when each menu option is clicked. The menu options or links in the content frame are properties in the 502X registry. This appendix explains the 502X registry and how you modify the properties to extend and customize the Unit Manager main menu.
Required Tools To extend Unit Manager, you need a Windows CE registry editor or you can construct a registry file that you import on the 502X. For example, you can use the Remote Registry Editor in the Microsoft Windows CE 2.1 Toolkit for Visual C++ 6.0. The instructions in this appendix assume that you are experienced in Windows programming.
Understanding the 502X Registry The 502X registry is a Windows CE registry. The registry is a system-defined database that applications and system components use to store and retrieve configuration data. The configuration data that is stored in the 502X registry drives the Unit Manager menu in the left or “content” frame. The next illustration shows the Unit Manager section of the 502X registry.
C-3
Page 268
502X Data Collection PC System Manual
Nugg Code39
502X Registry
The registry subkeys under RUM_MENU define the Unit Manager menu options. For example, Configuration and Process Manager are two of the menu options or properties. The next sections explain how to • extend the Unit Manager main menu.
• import a registry file.
Use the last section in this appendix to look up the definitions for the “Registry Property Values.”
C-4
Page 269
Ng C9
Extending the Unit Manager Main Menu
C
Extending the Main Menu You can use Unit Manager and a Web browser on your PC to configure and manage the 502X. You can modify the properties in the RUM_MENU section of the 502X registry to add, change, or delete menu options in the contents frame. For help using Unit Manager, see Chapter 4. Note: If you cold boot the 502X, you lose all registry changes and extensions. Make sure you export the registry file and save a backup copy. To extend the Unit Manager main menu
1. Connect the 502X to your development PC and establish communications. 2. Edit the 502X registry. For help, see “Registry Property Values” later in this appendix. The Unit Manager menu section begins at this branch: HKEY_LOCAL_MACHINE\SOFTWARE\Intermec\RUM_MENU
For example, open a Windows CE registry editor like the Remote Registry Editor in Microsoft Windows CE 2.1 Toolkit for Visual C++ 6.0. 3. Save the changes. 4. Choose only the Unit Manager section at this branch: HKEY_LOCAL_MACHINE\SOFTWARE\Intermec\RUM_MENU
Export your registry changes and save the registry file as a backup file. You can import the registry file to recover your changes after a cold boot. For help, see “Importing a Registry File” later in this appendix. 5. Exit the registry editor. 6. To see the changes, restart Unit Manager in your Web browser.
C-5
Page 270
502X Data Collection PC System Manual
Nugg Code39
Example 1 In this example, rename the Event Viewer application in the Unit Manager main menu. Unit Manager Main Menu
To rename Event Viewer
1. Connect the 502X to your development PC and establish communications. 2. Edit the 502X registry. 3. Open the RUM_MENU branch of the registry and choose EventLogger as shown below.
C-6
Page 271
Ng C9
Extending the Unit Manager Main Menu
C
4. Edit the DisplayName field and change the name from “Event Viewer” to “View Events on 502X.” The registry appears as shown next.
5. Save the changes and exit the registry editor. 6. To see the changes, restart Unit Manager. View Events on 502X appears in the main menu instead of Event Viewer.
C-7
Page 272
502X Data Collection PC System Manual
Nugg Code39
Example 2 In this example, add a link to your company’s home page. Unit Manager Main Menu
To add a link to your company’s home page
1. Connect the 502X to your development PC and establish communications. 2. Edit the 502X registry. 3. Open the RUM_MENU branch of the registry as shown below.
C-8
Page 273
Ng C9
Extending the Unit Manager Main Menu
C
4. Add a subkey under RUM_MENU. Next, define the DisplayName, Value, and Ordinal for the link to your company’s home page. [HKEY_LOCAL_MACHINE\SOFTWARE\Intermec\RUM_MENU\MyCompany] "DisplayName"="My Company" "Value"="http://www.mycompany.com/homepage.htm" "Ordinal"="9"
In this example, you add a link to “My Company” as the last menu item after the link to 5020 Home Page. The registry appears as shown next.
5. Save the changes and exit the registry editor. 6. To see the changes, restart Unit Manager. My Company is now a menu option.
C-9
Page 274
502X Data Collection PC System Manual
Nugg Code39
Importing a Registry File Once you have extended Unit Manager on a 502X, you can import the customized registry file into another 502X. You may also need to import the registry file if you cold boot the 502X. Note: If you cold boot the 502X, you will lose all registry changes and extensions. Make sure you export the registry file and save a backup copy. To import a registry file
1. Copy the registry file from your development PC to the 502X. For help, see Chapter 4, “Using Unit Manager.” 2. On the 502X, choose Run from the Start menu. 3. Type this command and choose OK: itcconfig.exe filename.reg where filename.reg is the name of your customized registry file for the Unit Manager main menu. 4. Repeat Steps 1 through 3 for each 502X. Note: ITCCONFIG.EXE is only designed to import 502X properties. It is not a full-featured registry import application.
Registry Property Values These are the possible values that can go in the registry for the Unit Manager main menu. Each property (menu option) must have a DisplayName, Ordinal, and Value.
Break Purpose:
Reserved for future use.
Syntax:
Reserved.
Required Field:
Reserved.
C-10
Page 275
Ng C9
Extending the Unit Manager Main Menu
C
DisplayName Purpose:
Text that displays on the user interface for the menu item.
Syntax:
"string" where "string" is a text string in quotes.
Required Field: Example:
Yes Here is the DisplayName for the File Manager menu option. [HKEY_LOCAL_MACHINE\SOFTWARE\Intermec\RUM_MENU\FileManager] "DisplayName"="File Manager" "Value"="/bgi/bgifilemanager.dll" "Ordinal"="2" "password"="1"
Ordinal Purpose:
Specifies the order of the item relative to its siblings or properties at the same level. The ordinal also indicates the order in each sublevel.
Syntax:
"n" where "n" is an integer.
Required Field: Example:
Yes Event Viewer is the fifth menu item, so it has an ordinal value of “5.” [HKEY_LOCAL_MACHINE\SOFTWARE\Intermec\RUM_MENU\EventLogger] "DisplayName"="Event Viewer" "Value"="/bgi/bgieventviewer.dll" "Ordinal"="5" "password"="1"
Password Purpose:
Reserved for future use.
Syntax:
Reserved
Required Field:
Reserved
C-11
Page 276
502X Data Collection PC System Manual
Nugg Code39
Value Purpose:
Defines the URL or link including the path if necessary. When the user clicks on the link, the “Value” displays in the right side of the Unit Manager frame.
Syntax:
"URL" or "/path/filename" where the URL is a valid Internet or Intranet Web address and /path/filename is a valid path and filename on the 502X. If you place HTML files in the HTML directory on the 502X, you only need to define the filename. If you place BGI script files in the Windows directory on the 502X, you only need to define the filename. For all other files or directories, identify the path and filename.
Required Field: Example:
Yes The Password menu option links to a BGI script file named bgiPassWord.dll in the BGI directory on the 502X. The Who To Call menu option links to a specific URL on the Intermec Web site. [HKEY_LOCAL_MACHINE\SOFTWARE\Intermec\RUM_MENU\Password] "DisplayName"="Password" "Value"="/bgi/bgiPassWord.dll" "Ordinal"="6" "password"="1" "Break"="Yes" [HKEY_LOCAL_MACHINE\SOFTWARE\Intermec\RUM_MENU\WhoToCall] "DisplayName"="Intermec Support" "Value"="http://www.intermec.com/support.htm" "Ordinal"="7" "Break"="Yes"
C-12