NOMADS Variables |
|
Your program can gain access to NOMADS reserved variables for NOMADS objects when you include Call, Perform or Execute processing in the NOMADS Panel Designer (i.e. the Logic tab if using NOMADS Folder Style or the Events group if using NOMADS Property Sheets). When you select Call as in the Events Logic, only non-global variables specified in the Call's parameter list are available to your called program.
NOMADS makes the variables that are listed below available to your program. (This list also includes Query Variables.)
The NOMADS Environment Maintenance utility provides one central location to display and set the %NOMADS Properties used by the %NOMADS object (*obj/nomads.pvc) to control the behavior of different aspects of the NOMADS environment.
(The NOMADS Environment Maintenance utility was added in PxPlus 2020.)
This table lists the control-related variables that are available in the NOMADS environment:
Control Variables |
Description |
For these variables, xxxxxx represents the control name: | |
xxxxxx{.VAL}$ |
Control value (.VAL can be suppressed). |
xxxxxx.CTL |
CTL value for the control. |
xxxxxx.DATASET |
(Chart Controls Only) Contains current dataset for a chart. |
xxxxxx.NOCHANGE |
NOMADS will decrement the CHANGE_FLG variable using the value in xxxxxx.NOCHANGE. |
xxxxxx.ROW |
(Grid Controls Only) Contains the current row and column being processed in a grid. |
xxxxxx.TAG$ |
User defined tag value as per the control definition. |
The NOMADS engine (*winproc) creates and monitors many special reserved variables that make information available to your routines or can be used to alter NOMADS behavior.
This table lists the reserved NOMADS variables that are available to your programs:
NOMADS Reserved Variables |
Description | ||||||
_EOM$ |
Contains the Hex code of the key that triggered the last control; e.g. $02$ = double click, $09$ = Tab key. | ||||||
ALTERNATE_PANEL$ |
Contains the panel name to be used for Alternate Panel Layouts. | ||||||
ALTERNATE_PANEL_TYPE$ |
If one alternate panel is used, then this variable should be set to a value of "M" if the panel is not part of a folder control or "F" if the panel is in a folder control. See Alternate Panel Layouts. | ||||||
ARG_1$ … ARG_20$ |
You can pass a maximum of 20 arguments when you select the Link command or use the PROCESS and CALL directives to call another panel. NOMADS places the values in the corresponding reserved variables, ARG_1$, ARG_2$ ... to ARG_20$ and makes these values available to your panel. | ||||||
CHANGE_FLG |
Non-zero value whenever a control changes on a panel. NOMADS increments this variable automatically whenever the value in a control changes, allowing you to detect change. NOMADS does not reinitialize this variable; therefore, you should reset it to 0 (zero) in your program(s) when required. If you do not want the CHANGE_FLG variable to be updated when a control value is changed, select the Ignore Change Flag check box property for the control in the NOMADS Panel Designer. (The Ignore Change Flag check box property was added in PxPlus 2017.) | ||||||
CMD_STR$ |
Logic to be executed next. Set using the following values: • "END" or "E" to terminate the current panel. • "ENDPANEL,panelname,library" or "ENDPANEL panelname library" to terminate a concurrent panel. (Library is optional.) • "Jpanelname[ ,library]" to JumpTo another panel. • "Upanelname [ ,library]" to launch a concurrent window. (Library is optional.) • "ENDALL" or "A" to close all active windows (used with concurrent windows). Note: | ||||||
CORRECT_WHO$ |
(NOMADS Only) Current User ID. When running in WindX, returns the User ID on the client machine. | ||||||
DEFAULT_PROG$ |
Default program for panel. | ||||||
DISP_CMD$ |
Command after display of panel. | ||||||
A list of file names dropped on an input control from an external source, such as Windows Explorer, using the *FILE source option in a defined Drag and Drop event. The list consists of full pathnames of the dragged files, separated by a SEP character. See Drag and Drop Utility. (The DROPFILES$ variable was added in PxPlus 2021 Update 1.) | |||||||
Query variable. Contains the contents of the entire main file record. Can be used in Selection Logic or in Return Value expressions. (The Query Subsystem uses the REC( ) function to obtain this value.) You can use this variable alone or in conjunction with PRIME_KEY$. Example: PRIME_KEY$+ENTIRE_RECORD$ (The ability to use the ENTIRE_RECORD$ variable in Selection Logic also was added in PxPlus 2024 Update 1.) | |||||||
EXIT_CMD$ |
Command prior to EXIT. | ||||||
FLD#1$....FLD#xxx$ |
Query variable. Access fields by number in *winqry. | ||||||
FLDR |
Object identifier for Folder Controls. | ||||||
FLDR.xxxxxx.CTL |
Contains the CTL value used to reference the tabs within Folder Controls. | ||||||
FLDR_DEFAULT_PROG$ |
Default program for Folder Controls. | ||||||
FOLDER_ID$ |
Contains the current sub-panel object name (if any) for Folder Controls. | ||||||
ggggg.GRP$ |
Contains a string defining the controls and display elements that belong to the group ggggg. See Manipulating and Controlling Groups. | ||||||
ID |
Contains the current control's CTL identifier. | ||||||
ID$ |
Name of the current control. | ||||||
ID.COLUMN |
Column number of the cell. | ||||||
ID.DATASET |
Dataset number selected on a chart. | ||||||
ID.ROW |
Row number of the cell. | ||||||
ID_VARNAME$ |
Variable name associated with the current control. | ||||||
IGNORE_EXIT |
If set to a non-zero value, the window close/F4 key is ignored. If set during panel On Exit logic, the panel will not be closed. NOMADS resets this variable to 0 (zero) after On Exit logic. | ||||||
IGNORE_EXIT$ |
If set to a "Y" value, the window close/F4 key is ignored. If set during panel On Exit logic, the panel will not be closed. NOMADS resets this variable to null after On Exit logic. | ||||||
Set to 1 to suppress the next popup menu. Usually set conditionally in the Prior Popup logic of the Assign Popup Menu dialogue. Automatically reset to 0 after the popup has been skipped. (The IGNORE_POPUP variable was added in PxPlus 2020.) | |||||||
INIT_TEXT$ |
Contains initial list for loading a control. (This will only be processed once before the control is drawn.) | ||||||
Contains the default value of a control. | |||||||
INITIALIZE_FLG |
If set to: 1 - Resets the screen. | ||||||
MAIN_SCRN_K$ |
Screen key. | ||||||
MNU_LN$ |
Menu definition. | ||||||
NEXT_FOLDER |
Set to FLDR.xxxx.CTL to change folders. See Folder Controls. | ||||||
NEXT_ID |
If changed by the program, this will represent the CTL identifier of the next control to receive focus. By default, when you set NEXT_ID, the system will clear the input queue unless the NOMADS variable NO_FLUSH is set. | ||||||
NEXT_ID$ |
If NEXT_ID is loaded with a value other than -1, then the variable named in NEXT_ID$ will be evaluated and its value used as NEXT_ID. This is used in conjunction with NEXT_FOLDER to set focus to a control on a Folder that is about to become active. By default, when you set NEXT_ID, the system will clear the input queue unless the NOMADS variable NO_FLUSH is set. Example: NEXT_FOLDER=FLDR.FOLDER3.CTL,NEXT_ID=0, | ||||||
NO_FLUSH |
Do not clear input when NEXT_ID is set. | ||||||
Query variable. Returns the primary key in *winqry. | |||||||
PRIOR_VAL |
Prior value of the current control that has just been changed. | ||||||
PRIOR_VAL$ |
Prior value of the current control that has just been changed. | ||||||
Query variable. Returns the number of query records successfully selected at the point it is accessed. See Query Selection Criteria. (The QRY_REC_COUNT variable was added in PxPlus 2023.) | |||||||
QRY_VAL$ |
This variable is used in two ways: • To contain the value of the control whose attached query is invoked. This value is passed into the query and will be used as the Start From value in the query. • To contain the value that was returned from the query. | ||||||
Contains the contents of a row in the query. Can be used in Selection Logic or in Return Value expressions. Example: In the Query Selection Logic, you could use the following test to display all records that contain the value of the associated multi-line (ARG_1$): ARG_1$="" OR POS(UCS(ARG_1$)=UCS(QUERY_ROW$))>0 (The QUERY_ROW$ variable was added in PxPlus 2024 Update 1.) | |||||||
REFRESH_FLG |
If set to a non-zero value, all controls will be updated on the screen. | ||||||
REPLACEMENT_FOLDER$ |
Name of the folder to replace current. (Available in Pre-Display logic) | ||||||
REPLACEMENT_LIB$ |
Name of the library to replace current library. (Available in Pre-Display logic) | ||||||
REPLACEMENT_SCRN$ |
Name of the screen to replace current. (Available in Pre-Display logic) | ||||||
REPLACEMENT_TAB_TITLE$ |
(NOMADS Only) Tab title for the replacement folder. | ||||||
SCRN_ID$ |
Contains the panel object name. | ||||||
SCRN_K$ |
Key prefix for screen. Uppercase, padded with spaces up to 12 characters. | ||||||
SCRN_LIB$ |
Contains the object library pathname. | ||||||
TAB_TABLE$ |
Contains a list of all controls using the Tab Stop attribute, broken down into three components:
|
This table lists the global variables that are available to your programs:
NOMADS Global Variables |
Description |
%FLMAINT_LIB$ |
Path and file name of an alternate panel library to override File Maintenance panels and use customized buttons. See Custom Buttons and Bitmaps. |
%FLMAINT_MSG$ |
Name of Message Library to override the Message Library used to display a File Maintenance panel. See Custom Buttons and Bitmaps. |
%SCR_3D |
Library Defaults Visual Mode setting (0-2D, 1-3D, 2-4D). The variable %NOMAD_Visual_Override (if > 0) overrides this setting. |
%SCR_DEF_ATTR$ |
Default attributes (font, color). |
%SCR_DEF_H_FL$ |
Default Help file. |
%SCR_DEF_H_ID$ |
Default Help ID. |
%SCR_LIB |
Screen library file number. |
%SCR_LIB$ |
Screen library path. |
This table lists the methods that are used by the %NOMADS object:
%NOMADS Methods |
Description | ||||||||
%NOMADS'AddCTL |
Provides the ability to dynamically add CTL logic to panels. Formats:
Example: The following example could be used to set the OnTipCtl for dynamically created controls such as Buttons: Btn_id = %NOMADS'AddCtl("Do_Button", _obj) (The %NOMADS'AddCTL method was added in PxPlus 2019.) |
The *obj/nomads class was created to hold NOMADS and iNomads-based parameters and settings. Its purpose was to use property settings to replace the global variables prefixed with %NOMAD_ or %NOMADS_ that had generally been used to control the behavior of different aspects of the NOMADS environment.
(The *obj/nomads class was added in PxPlus v11.00.)
The *obj/nomads class is automatically instantiated when the NOMADS environment is invoked. The reference to this object is loaded into the %NOMADS global variable when it is created. Its properties and methods can then be accessed using the %NOMADS variable as the object identifier.
When the class is instantiated, the values' existing variables prefixed with %NOMAD_ or %NOMADS_ are automatically loaded into the corresponding properties and can be accessed either as a property or using the original global variable name. This means that NOMADS variables that you have set in a legacy START_UP program, for example, do not have to be changed to property references. If, however, you choose to use property references in a START_UP program, you would have to instantiate the *obj/nomads class first, as it would not yet exist at this time.
Example:
Below are some sample lines from a START_UP program using the %obj/nomads class:
X=NEW("*obj/nomads") !Instantiate the %NOMADS object
%NOMADS'VISUAL_OVERRIDE=4
%NOMADS'CHART$="google"
%NOMADS'QRY_BTN$="{!16X16/Buttons/Help}"
%NOMADS'QRY_WIDE=3
This is the same as:
%NOMAD_VISUAL_OVERRIDE=4
%NOMAD_CHART$="google"
%NOMAD_QRY_ BTN$="{!16X16/Buttons/Help}"
%NOMAD_QRY_WIDE=3
NOMADS Environment Maintenance Utility
The NOMADS Environment Maintenance utility is used to set and maintain %NOMADS Properties used by the %NOMADS object (*obj/nomads.pvc) to control the behavior of different aspects of the NOMADS environment.
On instantiation, the %NOMADS object checks the property values that were set with this utility.
(The NOMADS Environment Maintenance utility was added in PxPlus 2020.)
%NOMADS Properties
Many NOMADS global variables affect the entire application, such as %NOMAD_Enter_Tab that regulates the behavior of the Enter key or %NOMAD_Object_Resize that turns on object resizing at the application level. These variables are generally set during the initialization phase of the application itself (such as in the START_UP program) rather than as part of an event-handler routine.
Some NOMADS global variables affect event logic, such as %NOMADS_Pre_Display$ and %NOMADS_OnExit$ that specify optional panel pre-display and exit routines or %NOMADS_Post_Display that allows you to override the sequence of the Post Display logic when there are Folders on a panel.
This table lists the available properties and their possible values, which can also be viewed by loading and listing the class program "*obj/nomads.pvc":
Description | ||||||||||||||||
%NOMADS'Activation_Ok |
(Not Used in PxPlus) *winproc checks if the activation corresponds to the NOMADS version and displays a message if it is incorrect. The value in this variable determines whether the message box is displayed or not. If the value is 0 (zero), the message will appear and the global variable will be set to 1. | |||||||||||||||
%NOMADS'Actv_Folder_Colors$ |
Sets the default color(s) of the active folder tab button. Format: fill pattern,fill color1,fill color2 (Optional) Example: The following example fills the tab from left to right using Light Green as the first color and ending with Light Yellow: %NOMAD_Actv_Folder_Colors$="3,Light Green,Light Yellow" This setting is ignored if a Theme or Visual Class is in effect. (Support for this property to set the active folder tab default color(s) was added in PxPlus 2022.) | |||||||||||||||
%NOMADS'Actv_Folder_TextClr$ |
Color of the text displayed in the tab of the active folder. This setting is ignored if a Theme or Visual Class is in effect. | |||||||||||||||
%NOMADS'Alt_Sfx$ |
Comma-separated list of alternate language suffixes to apply when opening panel libraries when the specified or default libraries are not available (e.g. fr,de,es,). Overrides the alternate suffixes defined in NOMADS System Defaults. | |||||||||||||||
%NOMADS'Auto_Close |
Set to 1 to turn on the auto close feature for all panels rather than setting the internal auto close property on each panel in the header properties. Default is 0 (zero). | |||||||||||||||
%NOMADS'AutoLogon |
This property controls if the security system will automatically log on a Windows user based on his/her Windows User ID. Setting this to non-zero enables the auto logon. When the auto logon is enabled, the system will attempt to automatically and silently log the user on using his/her Windows User ID. See Security Sign On. (Added in PxPlus 2023) | |||||||||||||||
%NOMADS'Automation_Enabled |
Set to 1 to turn on the QA Automation support feature at the application level. If activated, NOMADS sets the value for the graphical user interface controls using an OWN= clause when the controls are created. | |||||||||||||||
%NOMADS'Auto_Qry |
If set to non-zero, NOMADS will automatically initiate the query window if a value fails the Input Validation routine. | |||||||||||||||
%NOMADS'Caption$ |
Returns the current panel title, if specified for the panel definition. Note: | |||||||||||||||
%NOMADS'Captionbar_Height |
(Read Only) Height (in pixels) of the window caption bar. | |||||||||||||||
%NOMADS'Capture_Directory$ |
Directory to capture screen image when using the Direct NOMADS Editor interface (CTRL-SHIFT-MouseClick). | |||||||||||||||
%NOMADS'Center_Wdw |
If set to non-zero, center next panel. | |||||||||||||||
%NOMADS'Chart$ |
The chart brand to use in a NOMADS environment. Valid values are "plus", "rgraph" and "google". See Charting. When not set, the default is "plus" charts. See Plus Charts. (Plus Charts were added in PxPlus 2019.) | |||||||||||||||
%NOMADS'Chart_Colors$ |
Colors used to display individual data sets within a chart (e.g. "Light Red/Light Blue/Dark Green/Yellow/RGB:192 255 192/"). | |||||||||||||||
%NOMADS'Class' |
Used in conjunction with Dynamic Data Classes and Dynamic Control Properties in NOMADS. Corresponds to a data class field (i.e. %NOMADS'Class'Length), which is evaluated at run time. (Added in PxPlus 2018) | |||||||||||||||
%NOMADS'CompanyColor$ |
Standard color used for grid headers, etc. in PxPlus utilities. | |||||||||||||||
%NOMADS'Concurrent_Wdw |
Set to 1 to launch Concurrent Panels. | |||||||||||||||
%NOMADS'Ctl_Reset$ |
List of control types to be reset when a folder panel is deactivated. Default value is "#BRC3LDVXM|_G". | |||||||||||||||
%NOMADS'Custom_Define |
This CTL value is used rather than 9999 to access a customized panel definition. See Defining Custom Information. | |||||||||||||||
%NOMADS'Custom_Dir$ |
Directory for user files. See Custom User Files. | |||||||||||||||
%NOMADS'Custom_Exclude_Program$ |
Program to call to determine if the user should be allowed to access the custom definition for the current panel. See Restricting Access to the Run-Time Definition. (Added in PxPlus 2018) | |||||||||||||||
%NOMADS'Custom_Genmtc |
This CTL value is used rather than 9996 for Customizer General Maintenance. See Defining Custom Information. | |||||||||||||||
%NOMADS'Custom_GenWdw |
Set to a CTL value to be used internally by NOMADS to generate custom concurrent windows. (Default CTL is 9995.) See Displaying Custom Information. (Added in PxPlus 2018) | |||||||||||||||
%NOMADS'Custom_Skip_Definition |
If the CTL values for panel definition and Customizer General Maintenance have not been set to values other than 9999 and 9996, and you wish to use these CTL values for your own User CTL values, set this to 1 to skip the definitions. See Defining Custom Information. | |||||||||||||||
%NOMADS'Custom_Wdw |
Set to 1 to use a concurrent window to display custom information for a panel. If not set (i.e. zero), then the default display at the bottom of the panel is used. See Displaying Custom Information. (Added in PxPlus 2018) | |||||||||||||||
%NOMADS'Def_Sfx$ |
The two-character language suffix to append to panel library files (e.g. en). Overrides the language suffix defined in NOMADS System Defaults. | |||||||||||||||
%NOMADS'DeveloperCharts |
Set to 1 to save new AutoChart definitions in the developer file (chart.dev). See Defining an AutoChart. (Added in PxPlus 2020) | |||||||||||||||
%NOMADS'Disable_Debug |
Set to 1 to disable the use of the Debug window (accessible by pressing CTRL-F11). | |||||||||||||||
%NOMADS'Disable_Folder_Colors$ |
(NOMADS Only - Not Applicable to Left Rotated or Right Rotated Tabs) Sets the default color(s) of a disabled folder tab. Format: fill pattern,fill color1,fill color2 (Optional) Example: The following example fills the tab from left to right using Light Green as the first color and ending with Light Yellow: %NOMAD_Disable_Folder_Colors$="3,Light Green,Light Yellow" This setting is ignored if a Theme or Visual Class is in effect. (Added in PxPlus 2022) | |||||||||||||||
%NOMADS'Disable_Folder_TextClr$ |
(NOMADS Only) Color of the text displayed in the tab of a disabled folder. This setting is ignored if a Theme or Visual Class is in effect. (Added in PxPlus 2022) | |||||||||||||||
%NOMADS'Disable_Trace |
Set to 1 to disable the use of the Trace window (accessible by pressing CTRL-F12). | |||||||||||||||
%NOMADS'DisplayHeight |
In the NOMADS environment, this is the monitor display height (in rows). In the iNomads environment, this is the height of the browser window (in rows) at the time a panel is invoked. (This value will not change dynamically if the browser is resized.) | |||||||||||||||
%NOMADS'DisplayWidth |
In the NOMADS environment, this is the monitor width (in columns). In the iNomads environment, this is the width of the browser window (in columns) at the time a panel is invoked. (This value will not change dynamically if the browser is resized.) | |||||||||||||||
%NOMADS'Drop_Qry_All |
Set to 1 to default the query display to Drop Query. This setting has been superseded by the %NOMADS'Query_View$ setting, which has more options. If set to a non-zero value, %NOMADS'Query_View will override the setting in %NOMADS'Drop_Qry_All. | |||||||||||||||
%NOMADS'Drop_Qry_Color$ |
Set to default background color for Drop Query. (Default is RGB:240,255,240.) See Query Colors for information on applying color settings and Themes to a query display. (Added in PxPlus 2017) | |||||||||||||||
%NOMADS'Dup_Okay |
Set to a non-zero value to allow duplicate control names at run time. | |||||||||||||||
%NOMADS'Enable_Customizer_Popup |
Enable the Customize Panel option on the panel popup system wide. Overrides %NOMADS'No_Customize. (Added in PxPlus 2017) | |||||||||||||||
%NOMADS'Enter_Tab |
Options are:
| |||||||||||||||
%NOMADS'Esc_Sel |
If set to non-zero, processes the current control with focus when Esc is pressed or the Close button on the panel is clicked. CHANGE_FLG is incremented. | |||||||||||||||
%NOMADS'Fkey_Handler$ |
Name of program to handle function keys. See User-Defined CTLS. | |||||||||||||||
%NOMADS'Fkey_Help |
Set the function key (1 - 15) used to invoke the Help system. | |||||||||||||||
%NOMADS'Fkey_Qry |
Set the function key (1 - 15) used to invoke the Query system. See Query Subsystem. | |||||||||||||||
%NOMADS'Fkey_Tbl$ |
When focus is on a control and the user exits using a keystroke, *winproc loads the Hex value of the terminating keystroke into the variable _EOM$. To bypass the On Change logic for the particular keystroke(s), load the Hex value(s) into %NOMADS_Fkey_Tbl$. *winproc bypasses the OnChange logic for a user's _EOM$ value if found in the %NOMADS_Fkey_Tbl$. (The Validator and Formatter are also bypassed.) Example: %NOMADS_Fkey_Tbl$=$8409$ loads the F4 key and Tab key Hex values. If a user exits a control using either of these keys, the bypass will occur. | |||||||||||||||
%NOMADS'FM_Acknowledge_Writes$ |
Set to 1 to display a message to acknowledge a record was written. Default is no message. | |||||||||||||||
%NOMADS'FM_Auto_Save_Option$ |
Screen behavior for saving changes. Options are: 0 - Standard Save (Default) | |||||||||||||||
%NOMADS'FM_Clear_Option$ |
Screen behavior after writing or deleting a record. Options are: 0 - Do Not Clear Fields (Default) | |||||||||||||||
%NOMADS'FM_Confirm_New_Rec$ |
Set to 1 to display a message to confirm that a new record should be created. Default is no message. | |||||||||||||||
%NOMADS'FM_New_Option$ |
Screen behavior on a new record. Options are: 0 - Do Not Clear Fields (Default) | |||||||||||||||
%NOMADS'FM_Skip_Acknowledge_Deletes$ |
Set to 1 to suppress the message to acknowledge that a record was deleted. Default is to display message. | |||||||||||||||
%NOMADS'FM_Skip_Confirm_Deletes$ |
Set to 1 to suppress the message to confirm that a record is to be deleted. Default is to display message. | |||||||||||||||
%NOMADS'FM_Update_Option$ |
Record locking behavior when a record is updated. Options are: R - Review Before Write (Default) | |||||||||||||||
%NOMADS'FolderAdvance |
Auto advance to the next folder when tabbing. Options are:
Note:
| |||||||||||||||
%NOMADS'Folder_Redraw |
Set to 1 to force a folder panel to be redrawn. | |||||||||||||||
%NOMADS'Frame_Width |
Number of pixels wide to draw a frame in NOMADS. | |||||||||||||||
%NOMADS'Full_Screen_Drag |
Set to 1 to turn on Full Screen Drag at the application level. The Full Screen Drag feature allows a panel to be moved by clicking anywhere on the panel outside of the controls (as well as on the title bar) and dragging the panel to the desired location. This setting can be overridden by the Full Screen Drag setting at the library level in Library Defaults or at the panel level in the Panel Header. If Full Screen Drag is turned On, it will override the %NOMADS'Object_Resize setting. (Added in PxPlus 2017) | |||||||||||||||
%NOMADS'Gfb_Dir_Tbl$ |
Used in conjunction with the GET_FILE_BOX directive. If present, this can contain a semi-colon delimited list of directories to which the user can have access. The system will not allow the user to select any other directories. (Added in PxPlus 2019) | |||||||||||||||
%NOMADS'Help_Preprocess$ |
Name of a program to call prior to the invocation of the Help logic. Arguments passed to the program are the HelpFileName$, the HelpID$ (keyword or reference number), the ID$ (the control name) and ID (the control CTl value). If the HelpFileName$ is null upon exit, the Help logic is skipped. | |||||||||||||||
%NOMADS'Hover_Folder_Colors$ |
(NOMADS Only - Not Applicable to Left Rotated or Right Rotated Tabs) Sets the default color(s) of a folder tab when the mouse is over it. Format: fill pattern,fill color1,fill color2 (Optional) Example: This example fills the tab from left to right using Light Green as the first color and ending with Light Yellow: %NOMAD_Hover_Folder_Colors$="3,Light Green,Light Yellow" This setting is ignored if a Theme or Visual Class is in effect. (Added in PxPlus 2022) | |||||||||||||||
%NOMADS'Hover_Folder_TextClr$ |
(NOMADS Only - Not Applicable to Left Rotated or Right Rotated Tabs) Color of the text displayed in a folder when the mouse is over it. This setting is ignored if a Theme or Visual Class is in effect. (Added in PxPlus 2022) | |||||||||||||||
%NOMADS'IsJavx |
Will contain a 0 (zero) value if not running JavX. | |||||||||||||||
%NOMADS'IsWindx |
WindX version number or 0 (zero) if not running under a WindX session. | |||||||||||||||
%NOMADS'IsWindx$ |
If running a WindX session, this variable will be loaded with "[WDX]". | |||||||||||||||
%NOMADS'Last_View$ |
Set to control the View associated with the Library Object Selection interface. Set to "objselect" for the Button view, "objselvt" for the Toolbar view, or "objselvm" for the Menubar view. | |||||||||||||||
%NOMADS'List_Popup |
Set this property to add system popup menus to all List Boxes and Grids. See List Box and Grid System Popup Menu. (Added in PxPlus 2020) | |||||||||||||||
%NOMADS'List_Popup$ |
Set this property to replace the default text associated with the system popup menu (List Options ...). See List Box and Grid System Popup Menu. Since the text will become a popup menu item, an & (ampersand) character may be used to indicate the hot key associated with the item. Example: S&ystem Items ... If no & (ampersand) is included in the text, the first character of the text entered will be used as the hot key. (Added in PxPlus 2020) | |||||||||||||||
%NOMADS'List_Popup_Suppress_Options$ |
Set this property to suppress any combination of system popup menu options. See List Box and Grid System Popup Menu. Any combination of "C", "E", "F", "G", and/or "P" will cause the Copy, Export, Find, Chart and/or Print items respectively to be suppressed. Example: CE or P (Added in PxPlus 2020) | |||||||||||||||
%NOMADS'Load_Text$ |
Text to show in the title bar of a dialogue box that displays while a panel is loading. | |||||||||||||||
%NOMADS'LogFile$ |
(Read Only) Contains the path of the current NOMADS log file derived from the Windows PxP_LogFile environment variable. See NOMADS Run-Time Events Logging. (Added in PxPlus 2017) | |||||||||||||||
%NOMADS'Menu$ |
Contains the menu group or item to be pasted to a menu bar definition in a different panel. | |||||||||||||||
%NOMADS'Menu_LeftEdge_Clr$ |
(NOMADS Only) Default left edge color for menu items. Example: %NOMAD_Menu_LeftEdge_Clr$="Light Green" See Menu Colors. (Added in PxPlus 2017) | |||||||||||||||
%NOMADS'Menu_Text_Clr$ |
(NOMADS Only) Default text color for menu items. Example: %NOMAD_Menu_Text_Clr$="#FFD700" See Menu Colors. (Added in PxPlus 2024) | |||||||||||||||
%NOMADS'Menu_TextBackground_Clr$ |
(NOMADS Only) Default background color for menu items. Example: %NOMAD_Menu_TextBackground_Clr$="RGB:255 182 225" See Menu Colors. (Added in PxPlus 2017) | |||||||||||||||
%NOMADS'Menu_Top_Option$ |
(NOMADS Only) Set to Y to apply the Text and Background menu colors to the top level of the menu bar as the default. (Added in PxPlus 2024) | |||||||||||||||
%NOMADS'MenuBar_Height |
(Read Only) Height (in pixels) of the window menu bar. | |||||||||||||||
%NOMADS'Min_Windx_Ver (Read Only) |
*Note:
| |||||||||||||||
%NOMADS'Mln_Sep$ |
Overrides the default separator ($8A$) on any multi-line control. | |||||||||||||||
%NOMADS'Msgmnt$ |
Contains name of message library being updated in the Message Library Maintenance. | |||||||||||||||
%NOMADS'No_Customize |
Set to non-zero to suppress the Customizer popup menu. Overridden by %NOMADS'Enable_Customizer_Popup. | |||||||||||||||
%NOMADS'No_Qry_Msg |
Set to 1 to suppress the warning message at run time when the user invokes the query on a field that has no query defined. | |||||||||||||||
%NOMADS'NoPlusW |
If 0 (zero), NOMADS will issue a PRINT '+W' to enable creation of Windows-style windows. | |||||||||||||||
%NOMADS'NoTest |
Disable use of Test screen. | |||||||||||||||
%NOMADS'Object_Persistence |
Set this to 1 to turn on Object Persistence at the application level. | |||||||||||||||
%NOMADS'Object_Resize |
Set to 1 to turn on object resizing at the application level rather than setting the internal Size Adjustment attribute on each panel in the Header properties. Default is 0 (zero). See Resizing Input Controls. | |||||||||||||||
%NOMADS'OnExit$ |
Program run on exit of any panel. | |||||||||||||||
%NOMADS'Opanel |
Provides the object handle to the current (topmost) NOMADS panel. This is only valid when using the OOP-based NOMADS interface. | |||||||||||||||
%NOMADS'Open_Load |
When set to 0 (zero), a standard OPEN directive is used to open the library file. When set to a non-zero value, an OPEN LOAD directive is used. OPEN LOAD can be used to improve panel display performance. | |||||||||||||||
%NOMADS'Override_Font$ |
Override system defaults font. Same format used by %NOMAD_Pnl_Def_Font$. | |||||||||||||||
%NOMADS'Palette_Loaded |
If set to 0 (zero), NOMADS will open the user defined color file providex.clr and load the color palette. This variable is set after the palette is loaded to 1. | |||||||||||||||
%NOMADS'Panel_Info_Force |
Used with Panel Persistence. If set to a non-zero value and panel/object persistence is turned on, then panel/control coordinates are saved automatically on the termination of a panel whether or not their values have changed. Default is 0 (zero). | |||||||||||||||
%NOMADS'Panel_Info_Prog$ |
Used with Panel Persistence. Load this variable with the name of the program that will read and write the panel information to a disk file. Use the generic program *winpnl or create your own. | |||||||||||||||
%NOMADS'Paste_Lib$ |
Default panel library used by the NOMADS Designer Block Paste utility. If a different library is selected in the utility, %NOMAD_Paste_Lib$ will be set to the new value. | |||||||||||||||
%NOMADS'Pnl_Def_Colour$ |
(Internal Use Only) Default foreground and background colors. Panel Header colors override settings in Library Defaults. User-defined colours consist of "Colournnn". | |||||||||||||||
%NOMADS'Pnl_Def_Font$ |
(Internal Use Only) Default font for controls. Font settings in the Panel Header override font settings in Library Defaults. (Format: "font name,font size,fontattr") | |||||||||||||||
%NOMADS'Post_Display |
Override sequence of the Post Display logic. The default sequence executes Post Display logic prior to displaying any folders on the panel. By setting this to 1, Post Display logic will be executed after any folders are displayed. | |||||||||||||||
%NOMADS'Pre_Display$ |
Optional program that will be performed before the panel and controls are drawn. | |||||||||||||||
%NOMADS'Prg_Cache |
Program cache count. | |||||||||||||||
%NOMADS'Process$ |
Pre-processing for panel name and library. Program is called using the SCRN_ID$ and SCRN_LIB$ as arguments. | |||||||||||||||
%NOMADS'Program_Editor |
Default program editor that NOMADS will launch when opening and editing PxPlus programs (e.g. the Logic tab in the Properties window for applicable panel controls). 0 - *IT - Integrated Toolkit (Default) See *IT - Integrated Toolkit and Ed+ Program Editor. (Added in PxPlus 2023) | |||||||||||||||
%NOMADS'PublicAutoChart |
Set to non-zero to allow the user to create public AutoCharts. See Defining an AutoChart. Default is 0. | |||||||||||||||
%NOMADS'Qry_Attr$ |
(Multi-Lines Only) Sets query button attributes. Options are: B - Bitmap Example: To set a flat bitmap button: %NOMAD_Qry_Attr$="FB" To view a video presentation on how to use the embedded query feature, which includes the %NOMAD_Qry_Attr$ property, see How to Use Embedded Query. This setting is ignored if a Theme or Visual Class is in effect that has a Query Button Attributes setting defined for a multi-line control. | |||||||||||||||
%NOMADS'Qry_Btn$ |
(Multi-Lines Only) Load this with a bitmap reference to display a different default bitmap for the query button. Example: {!Help} This setting is ignored if a Theme or Visual Class is in effect that has a Query Button Bitmap setting defined for a multi-line control. | |||||||||||||||
%NOMADS'Qry_Clear_Start |
(Classic Query Only) If 0 (zero), position at Start At value in the query. (Default) A non-zero value overrides Start At value and starts display at the beginning of the file. The variable QRY_VAL$ will be cleared before the query panel is displayed. | |||||||||||||||
%NOMADS'Qry_Print$ |
Name of a user program to call when the Print button is selected in a query. Arguments passed to the program are the 12-character space-padded uppercase screen key and the path to the screen library. The program logic totally replaces the query's default print logic. | |||||||||||||||
%NOMADS'Qry_Tip$ |
(Multi-Lines Only) Tip Value text to be displayed when the mouse is on the query button. | |||||||||||||||
%NOMADS'Qry_Wide |
(Multi-Lines Only) Set this to change the default width (in number of columns) of the query button. This setting is ignored if a Theme or Visual Class is in effect that has a Query Button Width setting defined for a multi-line control. | |||||||||||||||
%NOMADS'Query_AutoColSize |
Set to 1 to automatically adjust the sizes of the columns to fit the width of a query. (Added in PxPlus 2019) | |||||||||||||||
%NOMADS'Query_Clear_Status |
(Classic Query Only) If non-zero, the query window status bar is cleared. | |||||||||||||||
%NOMADS'Query_ColumnDisplay$ |
Set the query column display class. Default is "*obj/qrycoldsp". | |||||||||||||||
%NOMADS'Query_Fave_Color$ |
Highlight records designated as favorites in the normal query display by specifying a highlight color. Example: %NOMADS'Query_Fave_Color$="Dark Green" or %NOMADS'Query_Fave_Color$="RGB:192 64 0" | |||||||||||||||
%NOMADS'Query_GridLines |
Displays grid lines in the query. Options are: 0 - No grid lines To define the grid lines display for a query assigned to a control, see Query Header. (Added in PxPlus 2017) | |||||||||||||||
%NOMADS'Query_Hide_On_Maint |
Set to 1 to hide the query panel when the query maintenance button is selected and redisplay the query when the maintenance process is finished. | |||||||||||||||
%NOMADS'Query_Kno |
If non-zero, overrides value in the Query Definition. The run-time query logic uses this value to override the key number used to sort the query. | |||||||||||||||
%NOMADS'Query_NoDropHeader |
Set to 1 to suppress the display of the column headings in Drop Queries. (Added in PxPlus 2019) | |||||||||||||||
%NOMADS'Query_No_Gray |
Set this to non-zero to override the Gray/White Display setting and display a White Only background. | |||||||||||||||
%NOMADS'Query_Odb_Ignore |
(Classic Query Only) A non-zero value ignores the ODBC table flag and processes as a native file. See Query Subsystem. | |||||||||||||||
%NOMADS'Query_ProfileClean |
Number of days of disuse after which query profile records are removed from query.inf. (Default is 90.) | |||||||||||||||
%NOMADS'QueryProgram$ |
Set the NOMADS query program (*winqry or *winqry2). Default is "*winqry2" (Query+) if Smart Control is activated; otherwise, "*winqry" (Classic Query). | |||||||||||||||
%NOMADS'Query_RetKno |
Contains the value of the last key number used to sort the query. | |||||||||||||||
%NOMADS'Query_Sbar_Max |
Number of records in a large file used to determine if alternate scrollbar logic is to be used. See Performance Considerations. | |||||||||||||||
%NOMADS'Query_Suppress_Export |
Set to 1 to suppress the Export and Copy features in the run-time query. | |||||||||||||||
%NOMADS'Query_Suppress_Favorites |
Set to 1 to suppress the Favorites feature in the run-time query. | |||||||||||||||
%NOMADS'Query_Suppress_Persistence |
(Query+ and Classic Query Only) Suppress persistence on the query. Options are: 0 - Do not suppress persistence (if set). If %NOMADS'Query_Suppress_Persistence>0, then maximized panels are overridden. Note:
| |||||||||||||||
%NOMADS'Query_Suppress_Popup$ |
Exclude certain types of menu options from the query popup menu. Suppress menu items by setting the variable with any combination of the following options: E - Export Example: A setting of "EC" suppresses the Export and Copy options. Note: | |||||||||||||||
%NOMADS'Query_View |
Default Query+ view to use. Options are: 0 - Default (Toolbar View) For information on the Drop Query and Drop Tree Query, see Drop Queries. Note:
| |||||||||||||||
%NOMADS'Quiet_Load_Error |
Set to 1 to suppress the display of an error message when the panel or panel library cannot be found when the NOMADS run-time engine (*winproc) attempts to load a panel. | |||||||||||||||
%NOMADS'RefreshAllWdws |
Set to non-zero to have Refresh Screen do all concurrent windows. (Default) | |||||||||||||||
%NOMADS'Relative_Wdw |
If set to non-zero, the next window will be relative to current window. | |||||||||||||||
%NOMADS'RelPnl_Suppress_Persistence |
Panel Persistence must be turned On for this property to have any effect. Suppresses panel persistence for all dialogue panels with Relative positioning. Options are: 0 - Panel persistence is not suppressed. (Default) Note:
| |||||||||||||||
%NOMADS'Save_Qry_Path |
If set to a value of 1, then the full library path is saved when assigning a query object to a control. | |||||||||||||||
%NOMADS'Script_File$ |
Path of the NOMADS script playback file to process. | |||||||||||||||
%NOMADS'Script_Fn |
Script playback file number. | |||||||||||||||
%NOMADS'Script_Log |
Script log file channel number. | |||||||||||||||
%NOMADS'ScriptSuppress |
Set to non-zero to suppress NOMADS scripting capabilities. | |||||||||||||||
%NOMADS'Script_Wdw |
Window number for the script 'Dialogue'. | |||||||||||||||
%NOMADS'Sec_Msg |
Set to 1 to display an error message at run time when the user does not have access to a panel. | |||||||||||||||
%NOMADS'Security_Lib$ |
Path to the panel library that contains the security "Logon" panel. Default is *win/scrnlib.en. | |||||||||||||||
%NOMADS'Shifted_Query |
Set to 1 to restrict query invocation to the shifted function key. (Added in PxPlus 2016) | |||||||||||||||
%NOMADS'SidebarFolderTabHeight |
System-wide default tab height for sidebar folders. If not set, default is 2.5 lines. This is overridden by the Tab Height set in a Folder definition. (Added in PxPlus 2017) | |||||||||||||||
%NOMADS'Skip_Change_Logic |
Set to 1 to stop the On Change logic from executing if you click on the grey area of the panel while focus is on a multi-line control. | |||||||||||||||
%NOMADS'Skip_OnSelect_Logic |
If set to 1, %NOMAD_Enter_Tab > 0, then the On Change logic is only triggered once when the Enter key is pressed on a multi-line using the Signal On Exit attribute. | |||||||||||||||
%NOMADS'Statusbar_Height |
(Read Only) Height (in pixels) of the window status bar. | |||||||||||||||
%NOMADS'Stk$ |
Error handler stack. | |||||||||||||||
%NOMADS'Suppress_Auc |
Set to 1 to suppress Auto Complete functionality. | |||||||||||||||
%NOMADS'SuppressCommandErrorTrap |
Set to non-zero to suppress internal error handling for errors occurring when processing PERFORM, CALL and EXECUTE logic assigned to Pre-Display, Post-Display, OnFocus, OnChange, etc. logic assigned to panel headers and controls. (Added in PxPlus 2014 - Feature Pack 1) | |||||||||||||||
%NOMADS'SuppressWindXMakeFolder |
Set to non-zero to hide the Make New Folder button on the WindX GET_FILE_BOX. (Added in PxPlus 2019) | |||||||||||||||
%NOMADS'Tab_Dir |
Returns the tab direction at run time. A value of 1 indicates tabbing forward. A value of -1 indicates tabbing backward. | |||||||||||||||
%NOMADS'Tab_Folder_Colors$ |
(NOMADS Only) Sets the default color(s) of a normal folder tab. Format: fill pattern,fill color1,fill color2 (Optional) Example: This example fills the tab from left to right using Light Green as the first color and ending with Light Yellow: %NOMAD_Tab_Folder_Colors$="3,Light Green,Light Yellow" This setting is ignored if a Theme or Visual Class is in effect. (Added in PxPlus 2022) | |||||||||||||||
%NOMADS'Tab_Folder_TextClr$ |
(NOMADS Only) Color of the text displayed in a normal folder tab. This setting is ignored if a Theme or Visual Class is in effect. (Added in PxPlus 2022) | |||||||||||||||
%NOMADS'Theme$ |
Load with the name of a pre-defined Theme to set the general graphical user interface Theme for your application. Note: | |||||||||||||||
%NOMADS'ThemeOverride$ |
Load with the name of a pre-defined Theme to set the graphical user interface Theme for your application. Note:
| |||||||||||||||
%NOMADS'Timeout |
Input timeout value. | |||||||||||||||
%NOMADS'TipTimerCycles |
Length of time (in seconds) that a tip will be displayed. Note:
| |||||||||||||||
%NOMADS'TitleBar$ |
Specify a panel and library (comma separated) to use as the system-wide default custom title bar to be inserted at the top of panels. Overridden by Library Default and Panel Header settings (see Assigning Custom Title Bars). Example: %NOMADS'TitleBar$="mypanel,mylib" (Added in PxPlus 2017) | |||||||||||||||
%NOMADS'Trace_File$ |
Name of file to be created when the Trace window is invoked. If blank when running in Windows, the default file is "C:\NOMADS.TRC". In UNIX, the default filename is "/tmp/ userid +.trace". | |||||||||||||||
%NOMADS'Turbo_Off |
A non-zero value causes *winproc to turn off turbo mode (see 'TU' system parameter) during the drawing of a panel. Turbo mode is turned back on after all controls are drawn. | |||||||||||||||
%NOMADS'Userid$ |
Returns the current user. | |||||||||||||||
%NOMADS'User_Reserved_Words$ |
Enter the full path name for the user-defined reserved words data file. Defaults to "pxplus.wds" if not set. See User Reserved Words Maintenance. Can also be defaulted system-wide by setting the PXP_USER_RESERVED_WORDS environment variable. (Added in PxPlus 2017) | |||||||||||||||
%NOMADS'Visual_Effect |
Set default visual look for a library. Where: 2 - Turns on 2D mode. Note: | |||||||||||||||
%NOMADS'Visual_Override |
Force all panels to a particular visual mode (regardless of the Library Defaults setting). Where: 2 - Turns on 2D mode. Note: | |||||||||||||||
%NOMADS'WikiUrl$ |
URL to be used with the NOMADS Wiki. See NOMADS Wiki Help. Example: localhost:8086 (Added in PxPlus 2023) | |||||||||||||||
%NOMADS'Win_Ver |
Windows version number. | |||||||||||||||
%NOMADS'WizardImage$ |
Path to the Wizard image. Default is "*win/images/dimple.bmp". | |||||||||||||||
%NOMADS'WizardTextColor$ |
Color of the text appearing over the Wizard image. Default is "WHITE". | |||||||||||||||
%NOMADS'Workarea_H |
(Read Only) Height (in pixels) of the work area (excluding toolbar) of the current monitor. | |||||||||||||||
%NOMADS'Workarea_W |
(Read Only) Width (in pixels) of the work area (excluding toolbar) of the current monitor. | |||||||||||||||
%NOMADS'Workarea_X |
(Read Only) Horizontal location (in pixels) of the work area (excluding toolbar) from the left edge of the main monitor. | |||||||||||||||
%NOMADS'Workarea_Xoffset |
(Read Only) Horizontal offset (in pixels) of the work area (excluding toolbar) from the left edge of the main monitor. | |||||||||||||||
%NOMADS'Workarea_Y |
(Read Only) Vertical location (in pixels) of the work area (excluding toolbar) from the top edge of the monitor. | |||||||||||||||
%NOMADS'Workarea_Yoffset |
(Read Only) Vertical offset (in pixels) of the work area (excluding toolbar) from the top edge of the monitor. | |||||||||||||||
%NOMADS'Xchar |
Text width (single character value in pixels). | |||||||||||||||
%NOMADS'Xmax |
Screen width (single character value in pixels). | |||||||||||||||
%NOMADS'Ychar |
Text height (single character value in pixels). | |||||||||||||||
%NOMADS'Ymax |
Screen height (single character value in pixels). |
The *obj/nomads class definition contains an ACCEPT PROPERTIES clause. This means that developers can add their own properties to the object on the fly. This can be done simply by using a property reference with the %NOMADS object identifier.
Example:
%NOMADS'ourCompanyLogo$="images/CompanyLogo.gif"
This will add an 'ourCompanyLogo$ property to the object.
Example 1: Using NOMADS Variables to Pass and Store Values
This example of a panel and its associated event-handler routines shows how various NOMADS variables can be used to pass and store values and affect behavior.
A panel named PRODCODE has been created to enter and validate a product code. It has a Multi-Line called PRODUCTCODE and two buttons, OK and Cancel. The Panel Header has a default program set and Pre_Display logic that is set to perform ";PC _Pre_Display".
The PRODUCTCODE Multi-Line has an Input Length of 1, the Uppercase attribute is turned On, Initial Value is set to X, and On Change Logic is set to perform ";PC_Validate_ProductCode". The On Change event for the OK button is set to perform ";PC _Okay". The On Change event for the Cancel button is set to END. The event-handler routines are as follows (NOMADS variables are marked in bold text):
! Process ProdCode panel
!
PC_Pre_Display:
if Arg_1$="" \
then ProductCode$=Init_Val$ \
else ProductCode$=Arg_1$
Arg_1$=""
return
!
PC_Validate_ProductCode:
if ProductCode$="" \
then ProductCode$=Init_Val$ \
else if pos(ProductCode$="ADPX")=0 \
then msgbox "Invalid product code"+sep+"Valid entries are A, D, P and X","Error";
ProductCode$=Prior_Val$;
Next_ID=ProductCode.ctl;
Refresh_Flg=1
return
! PC_Okay:
Arg_1$=ProductCode$
Cmd_Str $="END"
return
Example 2: Using NOMADS _EOM$ Variable to Filter Events
This example shows how the _EOM$ variable can be used to filter events and control the behavior of the interface. Normally, On Change logic is triggered when the user changes the value of a control and then either presses the Enter key or moves focus to another control. In the case of a List Box control, double-clicking on an item with the mouse also triggers On Change logic.
In the panel below, we want to select a client from the List Box on the left either by highlighting an item and pressing the Enter key or by double-clicking on the item. We want to filter out the On Change logic triggered when the List Box is exited.
A default program is assigned in the Panel Header, as well as Pre-Display and Exit logic, and Auto Refresh is set.
The Multi-Lines on the right side of the panel are named using data field names and are loaded when the data file is read. The properties for the List Box are defined as follows:
|
Property |
Value |
|
Control Name |
CLIENTLIST |
|
Control Type |
List Box |
|
List Box Type |
Report View |
|
On Change |
Perform=";Process_CLIENTLIST" |
|
Post Create |
Perform=";Load_CLIENTLIST" |
|
Alt-Key |
$ |
|
Format Definition |
[Client Name]L20.00,[Client ID]L8.00, |
|
Full Line Highlight |
On |
We also want to restrict the Client List to a specific sales representative so the Sales Rep Code is passed as Arg_1$:
PANEL_PREDISPLAY:
sRep$=arg_1$ ! Sales Rep to be processed passed in as Arg_1$
PanelTitle$="Client Information for "+sRep$ ! Set title for panel
channel=0
open (hfn,iol=*,err=*return)"client";
channel=lfo
return
!
PANEL_EXIT:
if channel<>0 \
then close (channel)
return
!
LOAD_CLIENTLIST:
list_box load ClientList.ctl,"" ! Clear the list box
select * from channel,kno=1 where SalesRep$=sRep$ ! sRep$ records only
list_box load ClientList.ctl,0,ClientName$+sep+ClientID$ ! Load list box
next record
read data from "" to iol=iol(channel) ! Clear the multi_lines
return
!
PROCESS_CLIENTLIST:
! Process only if list item selected by CR ($0D$) or doubleclick ($02$)
if _eom$=$0D$ or _eom$=$02$ \
then read data from ClientList$ to ClientName$,ClientID$;
read (channel,kno=1,key=ClientName$:ClientID$)
return
Example 3: Using Folder Variables
In applications that use Folder controls, you may want to set focus to a control on a different tab. This can be accomplished by using the NOMADS variables FOLDER_ID$, NEXT_FOLDER, NEXT_ID and NEXT_ID$.
This example shows a panel with a Folder control consisting of three tabs: Shipto Information, Payment and Details. The Payment tab contains a Multi-Line called SALESREP.
Shipto Information tab:
Payment tab:
The On Change event for the Write button will validate the SALESREP Multi-Line. If the Multi-Line is empty, a message box will display and focus will be set to the control:
WRITE_REC:
if Salesrep$="" \
then msgbox "SalesRep Id is mandatory","Error";
if Folder_Id$<>"Payment" \
then Next_Folder=Fldr.Payment.Ctl;
Next_Id=0,Next_Id$="Salesrep.ctl" \
else Next_Id=Salesrep.ctl
Refresh_Flg=1
return