# NOMADS Environment Maintenance

> Source: https://manual.pvxplus.com/nomads-graphical-application/maintain-nomads-environment

The **NOMADS Environment Maintenance** utility is designed to provide ***one central location*** to display and maintain **[%NOMADS Properties](https://manual.pvxplus.com/nomads-graphical-application/appendix/nomads-variables/overview#properties_list)** used by the %NOMADS object (**\*obj/nomads.pvc**) to control the behavior of different aspects of the NOMADS environment. Previously, these settings might have been added to the **[START_UP Program](https://manual.pvxplus.com/pxplus-installation-and-configuration/customizing-pxplus/start-up-initialization-program)** or another program to tailor the NOMADS environment for your application.

This utility displays a maintenance panel with a grid that lists available %NOMADS properties. Property values are entered in the grid and saved to a user-defined *Settings File*. The **[Load Properties](https://manual.pvxplus.com/nomads-graphical-application/maintain-nomads-environment#loadprops)** button loads the property values in the grid with any non-null values currently set in the %NOMADS object.

*(The Load Properties button was added in PxPlus 2023 Update 1.)*

Clicking on a row displays a description of the selected property in the area below the grid. The description provides information on how to define the property's value. Depending on the property, the value may be set by a check box, a string or numeric entry, selected from a query containing data from another table, or selected from a predefined list of possible values.

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

*(The NOMADS Environment Maintenance utility was added in PxPlus 2020.)*

***Property Maintenance Utility***

The **NOMADS Environment Maintenance** utility uses the **[Property Maintenance Utility](https://manual.pvxplus.com/nomads-graphical-application/property-maintenance)** (**\*win/propset**) to display the properties in the grid and keep track of their values. The information used to load the %NOMADS properties in the grid is stored in a PxPlus system *Definition File* (**\*win/nomads_properties.txt**). The property values entered in the grid are saved to a user-defined *Settings File* (**nomads_prop_save.txt**) in the directory where the data for the current working directory is stored.

On instantiation, the %NOMADS object checks for the existence of the user-defined *Settings File* and applies the property values that have been set. See **[Applying %NOMADS Properties](https://manual.pvxplus.com/nomads-graphical-application/maintain-nomads-environment#applying_props)**.

The **Property Maintenance** utility is designed to provide the foundation for displaying and maintaining properties. This utility can be used for ***any*** PxPlus object within your application.

*(The Property Maintenance utility \*win/propset was added in PxPlus 2020.)*

## Invoking NOMADS Environment Maintenance

To invoke the **NOMADS Environment Maintenance** utility, use one of the following methods:

| **Location** | **Method** |
| --- | --- |
| From the **[PxPlus IDE Main Launcher](https://manual.pvxplus.com/pxplus-ide/ide-main-launcher)** | Expand the *Graphical Application Builder (NOMADS)* category. Select *Maintain NOMADS Environment*. |
| From the **[NOMADS Session Manager](https://manual.pvxplus.com/nomads-graphical-application/nomads-development/getting-started#sessionmgr)** | From the *Options* menu, select *Maintain NOMADS Environment*.<br>Note:  <br>When the NOMADS Environment Maintenance utility is accessed from the NOMADS Session Manager, some of the %NOMADS object properties (i.e. [Alt_Sfx$](https://manual.pvxplus.com/nomads-graphical-application/appendix/nomads-variables/overview#alt_sfx), [Def_Sfx$](https://manual.pvxplus.com/nomads-graphical-application/appendix/nomads-variables/overview#def_sfx) and [Last_View$](https://manual.pvxplus.com/nomads-graphical-application/appendix/nomads-variables/overview#lastview)) have been set for use by the NOMADS Designer programs. Therefore, the grid values that are loaded when selecting the [Load Properties](https://manual.pvxplus.com/nomads-graphical-application/maintain-nomads-environment#loadprops) button may be affected. |
| From the PxPlus Command line | Enter: **call "\*win/propset;maint","\*win/nomads_properties.txt","nomads_prop_save.txt"** |

The following window is displayed:

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

This window consists of the following:

|  |  |
| --- | --- |
| *Definition File* | Displays the pathname of the PxPlus system *Definition File* (**\*win/nomads_properties.txt**) used to load %NOMADS properties into the grid. |
| *Settings File* | Displays the pathname of the user-defined *Settings File* (**nomads_prop_save.txt**) used to save the values entered in the grid.<br>Note:  <br>The name and location of this file *must not be changed*. It is used exclusively for %NOMADS properties settings that are associated with a working directory.  <br>  <br>To copy the contents of this file to another location, use the Copy To button. |
| *Load Properties* | Button that is used to load the grid values with any non-null values currently set in the %NOMADS object. These values may have been set in the Start_up program or in subsequent programs that are run prior to accessing the **NOMADS Environment Maintenance** utility.<br>Selecting this button displays a message, which explains that grid values not currently set will be populated with the associated %NOMADS object property values. You are asked to choose whether you want to proceed, or you can click the *Cancel* button to abort. Responding *Yes* will change the grid values to the %NOMADS object property values. Responding *No* will leave the grid values unchanged in cases where the grid values and the %NOMADS object property values differ.<br>Be aware that if the **NOMADS Environment Maintenance** utility was accessed from the NOMADS Session Manager, some of the %NOMADS object properties (i.e. **[Alt_Sfx$](https://manual.pvxplus.com/nomads-graphical-application/appendix/nomads-variables/overview#alt_sfx)**, **[Def_Sfx$](https://manual.pvxplus.com/nomads-graphical-application/appendix/nomads-variables/overview#def_sfx)** and **[Last_View$](https://manual.pvxplus.com/nomads-graphical-application/appendix/nomads-variables/overview#lastview)**) have been set for use by the NOMADS designer programs. Therefore, the grid values that are loaded when selecting the *Load Properties* button may be affected.<br>Note:  <br>To ensure that any new values are saved and %NOMADS object property values are updated, click the Apply button.<br>*(The Load Properties button was added in PxPlus 2023 Update 1.)* |
| *Copy To* | Launches the **Copy Settings File** window for copying the user-defined *Settings File* (**nomads_prop_save.txt**) to another directory. If the "copy to" file already exists in the specified directory, a message will display.<br>![](https://manual.pvxplus.com/migration-assets/f7e609203ae85aa460191f3998e0a02c7cfeb2e1d7a694fab27210cb5a98788c.jpg)<br>Important Note:<br>The default "copy to" file is nomads_prop_save.txt. This is the user-defined Settings File that the %NOMADS object checks for when instantiated.  <br>  <br>A different "copy to" file may be entered; however, if the file will be used to apply %NOMADS property settings in another location, the user-defined Settings File *must* be named "nomads_prop_save.txt". |
| *(Properties Grid)* | The grid lists available %NOMADS properties and is also used to define the settings for desired properties. See **[%NOMADS Properties](https://manual.pvxplus.com/nomads-graphical-application/appendix/nomads-variables/overview#properties)**.<br>This grid consists of the following columns:<br>\|  \|  \|<br>\| --- \| --- \|<br>\| *Category* \| Each property is assigned to a category, which identifies the PxPlus feature or functionality affected by the property and makes it easier to find a particular property (i.e. *Get_File_Box*). Click the column heading to toggle between ascending or descending order. \|<br>\| *Property* \| By default, properties are initially sorted by *Category* and then by *Property* name for each *Category*. To sort the entire list by *Property* name, click the *Property* column heading to toggle between ascending or descending order. \|<br>\| *Set* \| Select this check box to set the value entered for the property to allow it to be applied. This check box is selected automatically when a value is entered in the *Value/Expression* column.<br>If a value is entered ***and*** the *Set* check box is ***not*** selected, the value will ***not*** be applied after it is saved in the user-defined *Settings File*.<br>To sort the entire list to see which properties have the *Set* check box selected, click the *Set* column heading. \|<br>\| *Exp* \| Select this check box if the value to be entered in the *Value/Expression* column will be an ***expression***. \|<br>\| *Value/Expression* \| Enter a value for the property.<br>Depending on the contents of the PxPlus system *Definition File*, the value may be set by a check box, a string or numeric entry, selected from a query containing data from another table, or selected from a predefined list of possible values. \| |
| **Property Description** | Describes the selected %NOMADS property and the method for setting its value when clicking on a row in the grid.<br>![](https://manual.pvxplus.com/migration-assets/8715c13ec851091dcae788a5064f972cd6206baa6e678e054f1d09e68a6bbe1e.png) |
| *Nomads Properties Help* | Hyperlink-style button that launches a concurrent panel displaying the **[%NOMADS Properties](https://manual.pvxplus.com/nomads-graphical-application/appendix/nomads-variables/overview#properties)** Help page. This panel can also be resized. |
| *Reset* | Clears the contents of the user-defined *Settings File* so that properties can be defined again from the beginning. Prior to clearing this file, a message will display. |
| *Display Settings* | Displays the ***last saved*** contents of the user-defined *Settings File* in a separate window (for viewing only). |
| *OK* | Saves the values in the *Value/Expression* column to the user-defined *Settings File* and exits the utility.<br>If a value was entered ***and*** the *Set* check box was ***not*** selected, the value will be saved as a ***remark line*** (i.e. begins with **!** *exclamation point*) and will ***not*** be applied. See **[Example](https://manual.pvxplus.com/nomads-graphical-application/maintain-nomads-environment#example)** below. Therefore, any property values set by another means (e.g. in the **[START_UP Program](https://manual.pvxplus.com/pxplus-installation-and-configuration/customizing-pxplus/start-up-initialization-program)**) will ***not*** be overwritten unless deliberately set in the *Properties Grid*.<br>***Null*** values that do ***not*** have the *Set* check box selected are ***not*** saved. |
| *Cancel* | Exits the utility without saving any values. |
| *Apply* | Similar to the *OK* button but does not exit the utility after saving. |

## Applying %NOMADS Properties

Each time that the %NOMADS object is instantiated, any values in the user-defined *Settings File* are automatically applied. Since different working directories may contain different versions of the user-defined *Settings File*, it is possible to define NOMADS environments that are tailored to each location.

The following syntax is used to apply the %NOMADS properties:

```
call "*win/propset;apply",%nomads,"nomads_prop_save.txt"
```

***Where:***

*"nomads_prop_save.txt"* is the user-defined *Settings File*.

***Example:***

Below is an example of a user-defined *Settings File* that contains the property values that were entered using this utility:

```
     Chart$="plus"
     Chart_Colors$=X$
! PublicAutoChart=1     (This line begins with ! (exclamation point), indicating it is a remark line. As a result, this value will not be applied.)
     FM_Clear_Option$="1"
     FM_Update_Option$="L"
     SuppressWindXMakeFolder=1
```

Note:  
When instantiated, the %NOMADS object looks for the nomads_prop_save.txt file and uses the first file found using the current file prefixes.

## See Also

**[How to Use the NOMADS Environment Maintenance Utility](https://manual.pvxplus.com/how-to/how-to-use-nomads-environment-maint)  
[%NOMADS Properties](https://manual.pvxplus.com/nomads-graphical-application/appendix/nomads-variables/overview#properties)**  
**[Property Maintenance Utility](https://manual.pvxplus.com/nomads-graphical-application/property-maintenance)**  
**[START_UP Initialization Program](https://manual.pvxplus.com/pxplus-installation-and-configuration/customizing-pxplus/start-up-initialization-program)**
