# Dependency Definition

> Source: https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/dependency

Click the button beside the *Maintain Folder Tabs* button to launch the **Dependency Definition** window.

*(The Dependency Definition button was added in PxPlus 2023 Update 1.)*

Dependency definitions are the equivalent of **IF THEN** and (optionally) **ELSE** conditions. The **Dependency Definition** window is used to define selected controls to be *hidden*, *shown*, *locked*, *unlocked*, *enabled* or *disabled* based on preset conditions. Dependency definitions are applied to the current file maintenance main panel or folder panel (if **[Folder Tabs](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/folder#foldertabs)** have been defined) or Webster+ HTML page to be generated.

Each dependency definition created in the table will consist of a *conditional expression*, as well as one or more *actions* and/or *logic* to be performed when the *Condition* is true.

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

This window consists of the following:

|  |  |
| --- | --- |
| *Condition* | Conditional expression to be tested. |
| *Actions for Controls* | ***(Applicable for NOMADS Panels and Webster+ HTML Pages)***<br>Assigns functions to be applied to selected controls when the *Condition* tests true. Click the dotted button to invoke the **Actions for Controls** window.<br>![](https://manual.pvxplus.com/migration-assets/97a99cc47b1e6e6a53fc26f5cbd85db5fb3178c677684f548b8db569aa7e7ee7.jpg)<br>This window consists of the following:<br>\|  \|  \|<br>\| --- \| --- \|<br>\| *Condition* \| Conditional expression (previously entered). \|<br>\| *Control Name* \| Preset list of controls existing in the current active panel. This includes controls from embedded panels, which are identified by including their panel name. \|<br>\| *Type* \| Control type. \|<br>\| *Function* \| Function to be applied to the control when the *Condition* is ***true***. Click the drop-down arrow for a list of selections: *Ignore, Enable, Disable, Show, Hide, Lock, Unlock*. \|<br>\| *Tab Table* \| ***(Applicable to Controls on the NOMADS Main Panel Only)***<br>Tab behavior override to be applied to the control when the *Condition* is ***true***. Click the drop-down arrow for a list of selections: *Ignore, Add, Remove*. \|<br>\| *Insert Before* \| ***(Applicable for NOMADS Panels Only)***<br>Sets location in **Tab Order** for when the *Action* is to be applied (if *Tab Table* override is set to *Add*). Click the drop-down arrow for a list of existing panel controls. \|<br>\| *OK* \| Saves any changes and closes the **Actions for Controls** window. \|<br>\| *Cancel* \| Cancels any changes and closes the **Actions for Controls** window. \| |
| *Actions for Groups  <br>(NOMADS Only)* | ***(Applicable for NOMADS Panels Only)***<br>Assigns functions to be applied to selected groups when the *Condition* tests true. Click the dotted button to invoke the **Actions for Groups** window.<br>![](https://manual.pvxplus.com/migration-assets/2cd2bb09a44eaf0eb9273b05ae495bd04318cf5373d732021cbec9b3d277ef33.png)<br>This window consists of the following:<br>\|  \|  \|<br>\| --- \| --- \|<br>\| *Condition* \| Conditional expression (previously entered). \|<br>\| *Group Name* \| Preset list of groups created in the current active panel. See **[Group Assignment](https://manual.pvxplus.com/nomads-graphical-application/nomads-development/maintaining-library-objects/group-assignment)**.<br>This includes groups from embedded panels, which are identified by including their panel name. \|<br>\| *Function* \| Function to be applied to the group when the *Condition* is ***true***. Click the drop-down arrow for a list of selections: *Ignore, Enable, Disable, Show, Hide, Lock, Unlock*. \|<br>\| *OK* \| Saves any changes and closes the **Actions for Groups** window. \|<br>\| *Cancel* \| Cancels any changes and closes the **Actions for Groups** window. \| |
| *Actions for Classes  <br>(Webster+ Only)* | ***(Applicable for Webster+ HTML Pages Only)***<br>Assigns functions to be applied to selected groups when the *Condition* tests true. Click the dotted button to invoke the **Actions for Groups** window.<br>![](https://manual.pvxplus.com/migration-assets/b912a29aeed3d8077fc1be014980caf7a626b60f02e6957700cbf3802d2620db.png)<br>This window consists of the following:<br>\|  \|  \|<br>\| --- \| --- \|<br>\| *Condition* \| Conditional expression (previously entered). \|<br>\| *Class Name* \| Name of Webster+ class. See **[Webster+ Defined Classes](https://manual.pvxplus.com/webster/webster-defined-classes)**. \|<br>\| *Function* \| Function to be applied to the HTML class when the *Condition* is ***true***. Click the drop-down arrow for a list of selections: *Ignore*, *Enable*, *Disable*, *Show*, *Hide*, *Lock*, *Unlock*. \|<br>\| *OK* \| Saves any changes and closes the **Actions for HTML Classes** window. \|<br>\| *Cancel* \| Cancels any changes and closes the **Actions for HTML Classes** window. \| |
| *Invert* | ***(Applicable for NOMADS Panels and Webster+ HTML Pages)***<br>Check box to apply the *opposite* function for when the *Condition* tests ***false***. Same as an **ELSE** statement.<br>***Example:***<br>If a control is set to *Enabled* and the *Condition* tests false, the control will be *Disabled* instead. This does ***not*** apply to *Logic* functions. |
| *Logic  <br>(NOMADS Only)* | ***(Applicable for NOMADS Panels Only)***<br>Logic to be executed when the *Condition* tests ***true***. Click the dotted button to invoke the **Logic** window for creating or editing this string.<br>Available processes include *Ignore, Link, Perform, Call, Execute, Help, Jumpto* and *End*. See **[Actions and Parameters](https://manual.pvxplus.com/nomads-graphical-application/program-interaction/events-logic/actions-and-parameters)**. |
| *Insert Above  <br>Insert Below* | Adds a blank row above or below the currently selected row. |
| *Delete* | Removes the currently selected row (i.e. removes the definition). |
| *Move Up  <br>Move Down* | Changes the order of the existing definitions. |
| *OK* | Saves any changes and closes the **Dependency Definition** window. |
| *Cancel* | Cancels any changes and closes the **Dependency Definition** window. |
