# Merge Views (Export and Import)

> Source: https://manual.pvxplus.com/views-system/data-source-maintenance/merge-views-export-and-import

**Data Source Maintenance** includes access to *Export* and *Import* utilities, which are used to merge from one set of view definition files (*pvxview.\**) into another. This is particularly useful for merging "master" updates into different user-customized definitions.

Both utilities are required to merge views:

|  |  |  |
| --- | --- | --- |
|  | ***Export*** | Outputs a formatted text file representing a set of data source and view definitions. |
|  | ***Import*** | Merges the contents of the formatted text file into the currently loaded definitions. |

## Export

To invoke the **Export View and Data Source Definitions** utility, click the *Export* toolbar button in **[Data Source Maintenance](https://manual.pvxplus.com/views-system/data-source-maintenance/overview)**. This utility is used to ***export*** data source and view definitions to a formatted text file.

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

This window consists of the following:

|  |  |
| --- | --- |
| *(Show All Drop Box)* | Click the drop-down arrow for a list of selections for changing the contents of the current display: *Show All **(default)***, *Data Sources* and *Views*. |
| *(Tree View List)* | Displays a list of all data source and view definitions, organized by data group, in a tree view format.<br>Select the definitions to include in the export file by expanding the appropriate data group and clicking the check box beside the definition name. |
| *(Contents List)* | Displays the details of a selected data source or view definition. |
| *Export File* | Enter the pathname of a formatted text file to output to or click the Query button to specify a file name. |
| *Clear export file before update* | When selected ***(default)***, the output file will be cleared before the definitions are exported; otherwise, the selected definitions will be appended to the file. |
| *Export* | Outputs the selected definitions to the specified export file. |
| *Close* | Exits the **Export** utility and returns to the **Data Source Maintenance** main panel. |

## Import

To invoke the **Import View and Data Source Definitions** utility, click the *Import* toolbar button in **[Data Source Maintenance](https://manual.pvxplus.com/views-system/data-source-maintenance/overview)**. This utility is used to merge the exported data source and view definitions into a currently loaded view.

This utility will only accept a formatted text file that has been created previously using the **[Export View and Data Source Definitions](https://manual.pvxplus.com/views-system/data-source-maintenance/merge-views-export-and-import#Mark1)** utility.

![](https://manual.pvxplus.com/migration-assets/05d4f7f28fc6925d1570bdca4b42bc2e7fe4c45bfa2b68cd19f70cfb98460b86.png)

This window consists of the following:

|  |  |
| --- | --- |
| *File to be imported* | Enter the name of a valid text file to import or click the Query button. |
| *(Tree View List)* | Displays the data source and view definitions in the specified text file, organized by data group, in a tree view format.<br>Select the data source and view definitions to import by expanding a data group and clicking the check box beside the definition name. To deal with duplicate definitions, the list will cycle through a series of merge options, which are represented as symbols inside the check boxes. A legend explaining these symbols is available by clicking the **[Help](https://manual.pvxplus.com/views-system/data-source-maintenance/merge-views-export-and-import#Mark3)** button.<br>If a definition exists in more than one group, each occurrence will display the same merge option inside the check box. A different merge option can be selected by clicking the check box again until the desired merge option is displayed.<br>Clicking the check box beside a data group cascades the setting for the group to its subordinate entries. Clicking on the topmost level of the tree selects the definitions in the entire tree. |
| *(Contents List)* | Displays the details of a selected data source or view definition. |
| *Help* | Displays a legend that explains each of the merge options.<br>![](https://manual.pvxplus.com/migration-assets/576c1d44e9f9fd5904e12971ef97e7946fff23d2fd4aed1496c40bf51201f39f.jpg) |
| *Import* | Initiates the merge logic. |
| *Close* | Exits the **Import** utility and returns to the **Data Source Maintenance** main panel. |
