# How to Use the Library Bulk Edit and Search Utility

> Source: https://manual.pvxplus.com/how-to/how-to-use-lib-bulk-edit

The **[Library Bulk Edit and Search](https://manual.pvxplus.com/nomads-graphical-application/nomads-development/maintaining-library-objects/library-bulk-edit)** utility is used to bulk edit panels that are in a single library or in multiple libraries within the same directory. You can use it to find controls with particular characteristics and then bulk edit those controls with the changes you specify. This utility is similar to the **[Panel Bulk Edit](https://manual.pvxplus.com/nomads-graphical-application/panel-designer/options-and-utilities/bulk-edit-utility)** utility, which is used in the NOMADS Panel Designer to bulk edit controls on the current panel only.

There are many reasons for using the Library Bulk Edit and Search utility:

- Speeds up development time
- Easy to search for and select the panels or types of controls to change
- Applies changes consistently across selected panels
- Allows changes to **[Panel Headers](https://manual.pvxplus.com/nomads-graphical-application/panel-designer/panel-header/overview)** and **[Library Defaults](https://manual.pvxplus.com/nomads-graphical-application/nomads-development/maintaining-library-objects/library-defaults)**
- Can search or view data in NOMADS library files

These steps show you how to:

a. Search a single screen library to find all buttons with bitmaps.  
 b. Bulk edit the bitmap buttons by applying a pre-defined Visual Class that controls the appearance of bitmap buttons.  
 c. Use the **Search Library** functionality to view the library file records that were edited.

## How to Use Library Bulk Edit and Search

|  |  |
| --- | --- |
| 1\. | Invoke the **Library Bulk Edit and Search** utility. This can be done by using one of the following methods:<br>***Method 1:***<br>From the IDE Main Launcher, expand the *Graphical Application Builder (NOMADS)* category. Then, expand the *Utilities* category and select *Library Bulk Edit*.<br>***OR***<br>***Method 2:***<br>From NOMADS **Library Object Selection**, select *Utilities > Library Bulk Edit* from the menu bar.<br>***OR***<br>***Method 3:***<br>Invoke the **NOMADS Session Manager** from the PxPlus Command line by entering **nom**. Then, select *Utilities > Library Bulk Edit* from the menu bar. |
| 2\. | The **Library Bulk Edit and Search** window displays and presents a warning message about making a backup. Click *OK* to acknowledge the message.<br>![](https://manual.pvxplus.com/migration-assets/472122fd647ff841c0eba3ce6b81a35ad98645186665e8529eeb97581d426772.png) |
| 3\. | In the top section, specify the criteria (i.e. *Type*, *Control Type*, *Filter* options) for locating the controls to be edited.<br>Start by selecting the *Type* of search:<br>Select ***Library*** if you want to search a particular library file.<br>Select ***Directory*** if you want to search more than one library file in the same directory. If the search should include library files found in the sub-directories of the specified directory, also select the *Include Sub-Directories* check box.<br>By default, *Library* is selected. For this example, leave this setting as is.<br>![](https://manual.pvxplus.com/migration-assets/f1f73b0dbb700b8020fbaf7438a1907f89c1922331a4701df5618cba3b90dbf0.png) |
| 4\. | In the adjacent input control, enter the pathname of the library file or click the Query (*folder*) button to select it (e.g. C:\\PVX Plus Technologies\\PxPlus\\Lib\\\_demo\\2021\\data\\scrnlib.en).<br>Note:  <br>If this utility was initially invoked from NOMADS Library Object Selection, the pathname of the current library file will be displayed and set to view only. The Type drop box will be set to Library and also be view only. |
| 5\. | Select the *Control Type*.<br>By default, *All Controls* is selected. Click the drop down arrow and select *Button*. |
| 6\. | The **[Filter](https://manual.pvxplus.com/nomads-graphical-application/nomads-development/maintaining-library-objects/library-bulk-edit#filter)** options are used to define search criteria to further specify the controls you want to find.<br>By default, the *Expression*, *Case-Sensitive* and *Is Not* check boxes are not selected. Leave these as is.<br>Enter the criteria to search for buttons with bitmaps. In the input control beside the *Is Not* check box, enter **{!** (open curly bracket followed by an exclamation point). This will cause data containing **{!** in any fields to be returned by the search. Since the bitmap is stored in the init_text$ library field surrounded by **{ }** (*curly brackets*), all bitmap buttons should be located. |
| 7\. | Click the *Find Controls* button.<br>Button controls that are from the selected library file and also match the filter criteria are loaded into the **Selected Controls** tree view.<br>![](https://manual.pvxplus.com/migration-assets/8931d49e01b823afb860d496d3a6b623d24ada26c1476c53fca79b493e93d7ca.png)<br>The top node shows the pathname of the selected library. This is followed by another level of nodes for each of the panels. Below each panel node is an indented list of Button controls.<br>Right clicking in the tree view displays a popup menu with selections for accessing **[Library Object Selection](https://manual.pvxplus.com/nomads-graphical-application/nomads-development/library-object-selection/console-and-object-list)** or the **[NOMADS Designer](https://manual.pvxplus.com/nomads-graphical-application/panel-designer/introduction)**. |
| 8\. | Select the controls to be bulk edited. This can be done by using one of the following methods:<br>***Method 1:***<br>To select only certain controls, select the check box beside the individual controls.<br>***OR***<br>***Method 2:***<br>To select all controls on a panel, select the check box beside the individual panels.<br>***OR***<br>***Method 3:***<br>To select all controls in the selected library, click the *Select All* button or select the check box beside the library node at the top of the tree view.<br>For this example, click the *Select All* button. The check boxes beside all controls are selected, and the *Select All* button text changes to *Deselect All*.<br>![](https://manual.pvxplus.com/migration-assets/fed1078703a68a5bd1d13fd669061b0355f0a83f1cd17c02be312b2f239ac8ec.png) |
| 9\. | In the **[Properties to Edit](https://manual.pvxplus.com/nomads-graphical-application/nomads-development/maintaining-library-objects/library-bulk-edit#properties)** grid, enter the property changes to be applied to the selected controls.<br>The property to edit is the *Visual Class* property, which is listed near the bottom of the **Properties to Edit** grid. Use the vertical scroll bar to access this property.<br>![](https://manual.pvxplus.com/migration-assets/613b3b06837a010e10b215399d6dbe22f5b54fc1a13290ecf6b049ed14c0bb08.png) |
| 10\. | Click the dotted button beside the *Visual Class* property. The **Visual Class** dialog displays:<br>![](https://manual.pvxplus.com/migration-assets/6fcdd060a1910cf7cb48e1a8a03d88633b3f1e8f1a3584f401e2f7c757c35e49.png) |
| 11\. | For this example, an existing Visual Class defined for button controls will be selected.<br>If needed, a new Visual Class can be defined by clicking the Visual Class Maintenance button (beside the drop box on the right) to invoke the **[Visual Classes Maintenance](https://manual.pvxplus.com/nomads-graphical-application/system-maintenance-tools/system-options/visual-classes#vcutility)** utility.<br>For the drop box on the left, change the *As is* value by clicking the drop down arrow and selecting *Fixed*. Then, for the drop box on the right, click the drop down arrow and select a Visual Class defined for the Button control type.<br>![](https://manual.pvxplus.com/migration-assets/484582501d638a0038b407c79c060704b47c60ec34fd567500897f1a79b313a2.png)<br>If a Visual Class is selected which was not defined for a Button control type, a message will display:<br>![](https://manual.pvxplus.com/migration-assets/79ca58fda708ded3ac8b824710210e82d7c859b4cb35eac410c150c4a55bd98b.png) |
| 12\. | In the **Visual Class** dialog, click *OK* to accept the entry and return to the main **Library Bulk Edit and Search** window.<br>![](https://manual.pvxplus.com/migration-assets/111b3a1e5df660d47c967be07c585f8a6954aeb18cd2555a5fb4614f6424e6ca.png) |
| 13\. | In the **Properties to Edit** grid, the *Visual Class* property displays the new selection.<br>![](https://manual.pvxplus.com/migration-assets/6aaa79666ca4715aef0aeeb9c8d51824b99adbea1b44d6c0dab61cb8cefce705.png) |
| 14\. | For this example, this is the only property being edited. Click the *OK* button below the **Properties to Edit** grid to process this change. |
| 15\. | The **Complete** message displays, showing the number of libraries, panels and controls that were edited. This message may take a little extra time to display, depending on the number of controls that were previously selected in the **Selected Controls** tree view.<br>Click *OK* to acknowledge this message. The **Library Bulk Edit and Search** utility closes.<br>![](https://manual.pvxplus.com/migration-assets/8f3b306ce1fb39cee5a534a57405392f2d57665349f3ce55703507c3e65f6953.png) |

## How to Use the Search Library Functionality

Now that a bulk edit has been applied to all bitmap buttons in the selected library, these next steps show you how to use the **Search Library** functionality to view the library file records that were edited.

|  |  |
| --- | --- |
| 1\. | Invoke the **Library Bulk Edit and Search** utility. This can be done by using one of the following methods:<br>***Method 1:***<br>From the IDE Main Launcher, expand the *Graphical Application Builder (NOMADS)* category. Then, expand the *Utilities* category and select *Library Bulk Edit*.<br>***OR***<br>***Method 2:***<br>From NOMADS **Library Object Selection**, select *Utilities > Library Bulk Edit* from the menu bar.<br>***OR***<br>***Method 3:***<br>Invoke the **NOMADS Session Manager** from the PxPlus Command line by entering **nom**. Then, select *Utilities > Library Bulk Edit* from the menu bar. |
| 2\. | The **Library Bulk Edit and Search** window displays. Click *OK* to acknowledge the warning message about making a backup. |
| 3\. | The *Type* drop box defaults to *Library*. Leave this setting as is. |
| 4\. | In the adjacent input control, enter the same pathname of the library file used in the steps above or click the Query (*folder*) button to select it (e.g. C:\\PVX Plus Technologies\\PxPlus\\Lib\\\_demo\\2021\\data\\scrnlib.en). |
| 5\. | Click the *Search Library* button.<br>![](https://manual.pvxplus.com/migration-assets/33b957d08684c2375056773b7bfccb42d490700deceea08655451646b3be2b2d.png) |
| 6\. | The **Library Bulk Edit and Search – Search** window displays.<br>![](https://manual.pvxplus.com/migration-assets/40c2e5275685d1af243639a90082a6b6db3a1369b9f934b40392a8b72f203eb3.jpg) |
| 7\. | Without entering any Filter criteria, click the *Search* button. All records in the library file are loaded into the list box.<br>![](https://manual.pvxplus.com/migration-assets/c538bc28cfca1779cf1e03e2c0eec785304e0a2778d50409ecb35e10dce1ad4b.png)<br>Initially, this list displays the following information:<br>***Column 1:*** Key to each record  <br> ***Column 2:*** Name of the control (\_obj_nme$)  <br> ***Column 3:*** Character representing the type of control (\_obj_type$)  <br> ***Column 4:*** Initial value (init_val$)<br>The total number of records displays below the grid. |
| 8\. | Click the *Customize* button.<br>![](https://manual.pvxplus.com/migration-assets/3610f0f390491b68d9347304c88d836ee9f26a3cab841433cb366f94ff626f2b.png) |
| 9\. | The **Library Bulk Edit and Search – Customize Search** window displays. It is used to select the columns you want to display in the Search list box, which also determines the data that will display.<br>![](https://manual.pvxplus.com/migration-assets/d08d2c92cfc43218436ec1781c175f38caa95dad69b3baab4c39543ee1f33e73.png)<br>The Key value always displays in Column 1 of the Search list box and is not customizable.<br>The library values that display in the Search list box by default (i.e. \_obj_nme$, \_obj_type$ and init_val$) are indicated by check marks in the *Select* column.<br>If desired, other columns can be selected for display. To select certain IOList variables one at a time, choose the appropriate check box in the *Select* column. To select all of the IOList variables, choose the *Select / Deselect All* check box above the grid.<br>Note:  <br>This window is also useful for viewing the IOList variables. These are often necessary when trying to determine expressions to use for Filter values. |
| 10\. | For this example, choose the *Select / Deselect All* check box. All check boxes in the *Select* column are selected.<br>![](https://manual.pvxplus.com/migration-assets/d9916bc2b2251f2c575ab88261b17285c953bf02fec309ed38eda90e317cb694.png) |
| 11\. | Click *OK* to accept the selections and close this window. |
| 12\. | You are returned to the **Library Bulk Edit and Search – Search** window. The Search list box is reloaded with all of the IOList variables populated for all of the records. In most cases, a Search would be done to find certain records in a file rather than view the contents of an entire file.<br>![](https://manual.pvxplus.com/migration-assets/8054a2ab0912c13ba395d88071abd5a81571cc3c0e0da96c5214012eba5e5f5c.png)<br>To view the columns to the right, use the horizontal scrollbar or manually resize the window. In this example, the window was resized.<br>Notice that the **[Filter](https://manual.pvxplus.com/nomads-graphical-application/nomads-development/maintaining-library-objects/library-bulk-edit#searchlib)** options above the list box are similar to the ones on the **Library Bulk Edit and Search** main panel except for the addition of the *Regular Expression* check box. |
| 13\. | Select the *Expression* check box. Then, enter the following in the **Filter** input control:<br>\_obj_visual_class$="\*BUTTONBITMAP" |
| 14\. | Click the *Search* button. |
| 15\. | The matching records, which were previously edited with the Visual Class \*BUTTONBITMAP, are displayed. Use the horizontal scroll bar to see the \_obj_visual_class$ values of \*BUTTONBITMAP.<br>![](https://manual.pvxplus.com/migration-assets/6060620e15d6577ce46127ce4f02dd94d1f6e42564dd2088ab34a8454d1b9c2a.png) |
| 16\. | Click on any row of the Search list box to select it. Then, click the *Details* button.<br>![](https://manual.pvxplus.com/migration-assets/5de6e5c18cf89b8c942aaf5853b4d7604c8519ad15122db169429fcf6be609f4.png) |
| 17\. | The **Record Details** window displays, showing all of the values in the selected record. Use the vertical scroll bar to see all the values.<br>![](https://manual.pvxplus.com/migration-assets/5fd44305acb21f4de67b357b879c4b591c17e3d82961393978d2ab0d4809ceeb.png) |
| 18\. | Click the *Exit* button to close this window. You are returned to the **Library Bulk Edit and Search - Search** window. |
| 19\. | Right click on any line in the Search list box. A popup menu displays with two options: *Details* and *List_Options*.<br>![](https://manual.pvxplus.com/migration-assets/fe4688403f2eeb6dc5f770ed855cab6216b5f1f054f0c51f63bb5e97ca931ce9.png) |
| 20\. | The ***Details*** option displays the same window as clicking the *Details* button.<br>Select **List Options**. A popup menu displays with options to copy records, export records, search, print, etc.<br>![](https://manual.pvxplus.com/migration-assets/2f0cc81864131617f39882cf3b641d6e8c41ebd247c29e7745c6148b4a72b6a1.png) |
| 21\. | Click the *Exit* button under the Search list box. You are returned to the main **Library Bulk Edit and Search** window. |
| 22\. | Click the *Exit* button to exit the utility. |

## See Also

**[Library Bulk Edit and Search Utility](https://manual.pvxplus.com/nomads-graphical-application/nomads-development/maintaining-library-objects/library-bulk-edit)**  
**[Panel Bulk Edit Utility](https://manual.pvxplus.com/nomads-graphical-application/panel-designer/options-and-utilities/bulk-edit-utility)**  
**[NOMADS Library Variables](https://manual.pvxplus.com/appendix/nomads-library-variables)**  
**[Visual Classes](https://manual.pvxplus.com/nomads-graphical-application/system-maintenance-tools/system-options/visual-classes)**
