Application Parameter Configuration |
The NOMADS Application Parameter Configuration utility is used by developers to define custom parameters specific to their applications and set their values. Parameters can consist of string, numeric and Boolean variables, as well as System Parameters. The descriptions and defined values are stored in the parameter file, providex.prm, which must be accessible. Values may also be accessed through a series of CALLs that allow you to retrieve, edit and save the values as a string composed of assignment pairs that can be executed to load the values.
This utility is accessed from the NOMADS Session Manager by selecting Utilities > Application Parameter Configuration from the menu bar. You will be prompted to open the appropriate providex.prm file. If the system detects that the providex.prm file does not exist in the location specified, you will be asked if you want to create it. Responding Yes creates the file automatically and displays the Application Parameter Configuration window below.
This window consists of the following:
Application |
Name used to identify the application. |
Prompt |
Description of the parameter. If Variable is left blank, then this description will be used as the caption for the dialogue box in the Edit_SettingsCALLed routine. |
Variable |
Name of the variable to be used as a parameter or the system parameter to set. |
Type |
Data type of the parameter. Available selections are String, Numeric or Boolean. |
Min |
For Strings, this sets the minimum and maximum lengths. |
Value |
Sets the current value of the parameter. |
Default |
Default parameter settings. |
Four entry points into the *PARAM program are provided to allow access to the parameter values: Get_Settings, Get_Defaults, Edit_Settings and Save_Settings. All of them have the same relative syntax:
CALL "*param;entry_point", appname$, parameterstring$, param_file$
Where:
|
entry_point |
See Entry Points below. |
|
appname$ |
Name used to identify the application. |
|
parameterstring$ |
Return string consisting of assignment pairs and SET_PARAM directives. |
|
param_file$ |
Path to the providex.prm file. (Optional) |
These four entry points are explained below.
Used to return the current settings for the parameters. gimme$="Everything",gotcha$="Nothing",amount=0;SET_PARAM 'xi'=1 This string can then be executed to load the currently set values into the variables or to set the system parameters. | |
Used to return the default settings for the parameters. gimme$="Lotsa money",gotcha$="Lotsagrief",amount=99;SET_PARAM 'xi'=1 This string can then be executed to load the default values into the variables or set the default system parameters. | |
Used to edit the current settings.
The settings may be updated or the default values restored. When the OK button is selected, a parameter string containing the new assignment pairs and system parameter settings is returned in the second argument. The new settings are not written to the providex.prm file. To do that, you must use the Save_Settings CALL (below). | |
Used to write parameter values to the providex.prm file. |