Adding key-value pairs to a lexicon module

This procedure shows how to edit an existing lexicon to add key-value pairs. In this example, you edit the control module in the English (en) lexicon to add two key-value pairs in order to change the default right-click descriptors for the actions, “active” and “inactive”. By default, there are no existing keys shown for the actions, active and inactive, so they must be added.
  1. In the Lexicon Report view, select the “en” lexicon in the left pane, which populates the right pane with the different modules in which you can change or add lexicon keys.
     NOTE: If the English (en) lexicon is not listed, you can add it by following the procedure for “Editing the default English (en) lexicon” on page 1-8. 
  2. Double-click the control module, to load a list of existing key-value pairs in the Lexicon Editor.
  3. Select the “Add New Key” check box at the bottom, far right in the view, which enables the Key field.
  4. Enter the new key-value pair (as shown here) and then click the Update Value button.
    • Key: active
    • Value: ON manual
  5. Repeat the previous step to add the other key-value pair (as shown here) and click the Update Value button.
    • Key: inactive
    • Value: OFF manual
    Image
  6. Deselect the Add New Key check box after adding this second key-value pair.
  7. Click the Save Image button on the toolbar.
    This creates (or updates) the control.lexicon file located in your !lexicon/en folder
  8. Restart Workbench, open a station and right-click a writable point to issue actions.

The new default values (ON manual and OFF manual) replace the old defaults (Active and Inactive).

 NOTE: If working on a Supervisor (hosting a station), note that following a station restart, such lexicon changes become effective defaults to web browser clients connecting to the station.Note also that any “display name” changes for slots on a component override any lexicon values, including any modified in this manner. For example, if a BooleanWritable has the Display Name of its “active” action slot edited to “Start Pump”, that command text will always appear when issuing this action, whether from client browser access or from Workbench access.