# Bulk Edit Data Elements

> Source: https://manual.pvxplus.com/data-dictionary/data-dictionary-maintenance/bulk-edit-elements

The **Bulk Edit Data Elements** utility allows bulk changes to be made to data elements in the PxPlus data dictionary and applied simultaneously to multiple selected tables. This utility provides a way to quickly update data elements values, which are common or similar in multiple tables, or easily correct any inconsistencies in the data dictionary.

The utility loads the **Element Definitions** grid based on the tables selected in the **Select Tables** tree view. The grid columns are based only on certain fields in the data element definition, not all the fields. The utility uses the data elements values in the grid columns to determine how to display the data elements and tables. It does not check all the fields in the data dictionary record.

A data element with the same values across multiple (\*All\*) tables will be listed once in the grid. If an element value in the grid columns is slightly different in two (or more) tables, the data element will be listed with the same name more than once. An example of this is shown in the screen shot below where *ContactName* is listed twice because of the different *Description* in the two tables.

A log showing the applied data element changes is also available.

*(The Bulk Edit Data Elements utility was added in PxPlus 2023.)*

To invoke this utility, use one of the following methods:

| **Location** | **Method** |
| --- | --- |
| From **[Data Dictionary Maintenance](https://manual.pvxplus.com/data-dictionary/data-dictionary-maintenance/overview)** | Click the *Bulk Edit* tool bar button. |
| From **[Data Dictionary Maintenance](https://manual.pvxplus.com/data-dictionary/data-dictionary-maintenance/overview)** | Enter or select the name of an existing data dictionary table. From the menu bar, select *Edit* > *Bulk Edit Elements*. |

The **Bulk Edit Data Elements** window is displayed below with a sample entry:

![](https://manual.pvxplus.com/migration-assets/3b78737abf71c3b44e4364e7280e448b7c05eb9542aee83cd9eb088882f48ffc.jpg)

This window consists of the following:

|  |  |
| --- | --- |
| **Select Tables** | Tree view list of tables in the data dictionary, sorted by group, in alphabetical order.<br>To select/deselect all the tables, click the *All tables* check box at the top of the tree view.<br>To select/deselect a single table, click the check box beside the table name.<br>To select/deselect all the tables within a group, click the check box beside the group name. Tables that are not assigned to a group are listed under "No group assigned" at the top of the tree view. |
| **Element Definitions** | Grid that lists all the data elements in alphabetical order for all the tables selected in the **Select Tables** tree view. Once tables are selected, the **[Load Table Elements](https://manual.pvxplus.com/data-dictionary/data-dictionary-maintenance/bulk-edit-elements#load_elements)** button is used to load the grid.<br>When a value in a cell changes, the cell shows a blue background. To put back the previous value, right click on the cell and select *Reset Value*. The value can only be reset if the change has not been applied.<br>This grid consists of the following:<br>\|  \|  \|<br>\| --- \| --- \|<br>\| *Element* \| ***(Display Only)*** Name of the data element. \|<br>\| *Type* \| ***(Display Only)*** Type of data element (*N**umeric* or *S**tring*). \|<br>\| *Size* \| ***(Display Only)*** Maximum length of the data element. \|<br>\| *Class* \| Name of the **[Data Class](https://manual.pvxplus.com/data-dictionary/data-dictionary-maintenance/overview#data_class)** currently assigned to the data element, if applicable.<br>A predefined data class can be entered or selected using the Query button. Only data classes defined with correct values for *Type* and *Size* based on the data element are allowed.<br>When a data class is entered, a message will display about updating the element. Responding *Yes* will automatically apply the changes to the selected table(s).<br>A data class can also be created on the fly, using the element's *Type* and *Size* values. Enter a new *Class* name and respond *Yes* to the displayed message, which launches **[Data Class Definitions](https://manual.pvxplus.com/data-dictionary/data-classes/overview#Mark1)** maintenance. When the new data class is added, a message will display about updating the element. Responding *Yes* will automatically update the element. Responding *No* or *Cancel* will not update the element. \|<br>\| *Description* \| Current description assigned to the data element. \|<br>\| *Format* \| Current **[Format](https://manual.pvxplus.com/data-dictionary/data-dictionary-maintenance/overview#format)** assigned to the data element. \|<br>\| *U/C* \| Check box that indicates the current uppercase property for the data element. \|<br>\| *Update Tables* \| If a single table is being updated, the table name will be shown (e.g. ClientMaster).<br>If multiple tables are being updated with the same data elements values, the word **\*All\*** will be shown. Click the drop down arrow to see all the tables that will be updated. \|<br>\| *Dtl* \| Button that invokes the **Element Description** window (similar to the **[Element Description](https://manual.pvxplus.com/data-dictionary/data-dictionary-maintenance/element-description)** window in **Data Dictionary Maintenance**).<br>Data element details are displayed based on the *Update Tables* cell. If this cell shows the word \*All\*, the element details from the first table in the drop down list will display.<br>Clicking this button automatically applies any pending changes in the grid row (cells will have a blue background). The changes are applied either to a single table or to multiple (\*All\*) tables, based on the *Update Tables* cell.<br>***Example:***<br>This example shows a change to the *Description* value for the *City* element. Clicking the *Dtl* button invokes the **Element Description** window for the *ClientContacts* table with this change automatically applied to all tables containing this element:<br>![](https://manual.pvxplus.com/migration-assets/f851d860b3c21aca4141617c952aeb27846eb3a89dd0d87fbc1781bf7ae29230.png)![](https://manual.pvxplus.com/migration-assets/ece54e0d2adb3c2ab81b68b8804170a22c7d901be14b6342ede8b82a20519373.png)<br>When the *Update Tables* field shows the word \*All\*, hovering over this field displays a list of all the files that were updated or will be updated if changes are made. \| |
| *Collapse/Expand* | Toggle button used to collapse/expand the list of tables in the **Select Tables** tree view. |
| *Load Table Elements* | Button that loads the grid with data elements based on the tables selected in the **Select Tables** tree view.<br>If the grid is already loaded and has pending changes (cells will have a blue background), a message will display about applying the changes. |
| *Update Physical Files* | Button that invokes the **[Update Physical Files](https://manual.pvxplus.com/data-dictionary/data-dictionary-maintenance/update-physical-files)** utility. If there are data element changes that have not been applied, a message will display. |
| *View Log* | ***(Available when data element changes are applied)***<br>Button that displays a log of the changes applied. The log can also be printed and saved, if desired. The log accumulates the changes until you exit the utility. |
| *Apply* | ***(Available when changes are entered in the Element Definitions grid)***<br>Button that is used to update tables with the changes made to the element values in the grid columns.<br>If the *Update Tables* column for an element shows the word \*All\*, changes will be applied to all tables in the drop down list. |
| *Exit* | Button that closes the **Bulk Edit Data Elements** utility. If there are data element changes that have not been applied, a message will display. |
