# Group Assignment

> Source: https://manual.pvxplus.com/nomads-graphical-application/nomads-development/maintaining-library-objects/group-assignment

The **Group Assignment** utility is used to define groups to which **[Panel Controls](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/introduction)** can be assigned for the purpose of showing/hiding, disabling/enabling and locking/unlocking them collectively based on conditions specified using **[Dependency Definitions](https://manual.pvxplus.com/nomads-graphical-application/panel-designer/options-and-utilities/dependency-definitions)** or the **\*wingrp** utility. For information on the **\*wingrp** utility, see **[Manipulating and Controlling Groups](https://manual.pvxplus.com/nomads-graphical-application/program-interaction/event-handler-routines/manipulating-and-controlling-groups)**.

To invoke this utility, use one of the following methods:

| **Location** | **Method** |
| --- | --- |
| From **[NOMADS Library Object Selection](https://manual.pvxplus.com/nomads-graphical-application/nomads-development/library-object-selection/overview)** | Select *Library > Assign Groups* from the menu bar or click the *Groups* toolbar button. |
| From the **[NOMADS Session Manager](https://manual.pvxplus.com/nomads-graphical-application/nomads-development/getting-started#sessionmgr)** | Select *Options > Group Assignment* from the menu bar. |
| From the **[NOMADS Panel Designer](https://manual.pvxplus.com/nomads-graphical-application/panel-designer/introduction)** | Select *Utilities* > *Group Assignment* from the menu bar.<br>Note:  <br>When accessed from the Panel Designer, this utility allows groups to be created and modified only for the currently selected panel. See [Group Assignment (Panel Level)](https://manual.pvxplus.com/nomads-graphical-application/panel-designer/options-and-utilities/group-assignment-panel-level). |

The **Group Assignment** utility is displayed. When the utility is invoked from the NOMADS Panel Designer, the *Library* and *Panel* fields are not shown.

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

This window consists of the following:

|  |  |
| --- | --- |
| *Library* | Pathname of the source library file. Default is the current selection. To specify a different library, click the drop-down arrow for a list of previous selections or click the Query button. |
| *Panel* | Name of an existing panel. Default is the current selection. Click the drop-down arrow for a list of panels in the selected library. |
| *Group Name* | ***(Available when Panel is selected)***<br>Name of the group. Click the drop-down arrow for a list of groups defined for the selected panel, if any, or enter a new group name. |
| **Controls To Be Assigned** | Displays a list of the controls on the selected panel that can be assigned to groups. See **[Assigning Controls to a Group](https://manual.pvxplus.com/nomads-graphical-application/nomads-development/maintaining-library-objects/group-assignment#assigning)**. |
| **Controls Assigned To Group** | Displays a list of the controls assigned to the specified group. |
| *Add* | Adds a selected control in the **Controls To Be Assigned** list to the **Controls Assigned To Group** list. |
| *Drop* | Removes a selected control from the **Controls Assigned To Group** list and returns it to the **Controls To Be Assigned** list. |
| *OK* | Saves the changes to the specified group and closes the **Group Assignment** utility. |
| *Cancel* | Closes the **Group Assignment** utility without saving changes. |
| *Apply* | Saves the changes to the specified group and keeps the **Group Assignment** utility open. |

## Assigning Controls to a Group

The steps for assigning controls to a group are:

| **Step** | **Description** |
| --- | --- |
| 1\. | Select the *Library* and *Panel*. (These fields are not shown when invoking the utility from the NOMADS Panel Designer.) |
| 2\. | Specify the *Group Name* to which controls will be assigned by selecting from the drop-down list or entering a new group name. |
| 3\. | Select the control(s) in the **Controls To Be Assigned** list to assign to this group. To select multiple controls, use either **Shift-Click** (*consecutive* selections) or **Ctrl-Click** (*random* selections).  <br>Then, add the selected controls to the **Controls Assigned To Group** list by clicking the *Add* button or using the drag and drop method. |
| 4\. | ***(Optional)*** To remove a control from the **Controls Assigned To Group** list and return it to the **Controls To Be Assigned** list, select the control and click the *Drop* button or use the drag and drop method. |
| 5\. | When you have made your selections, click the *Apply* or *OK* buttons. When working in the NOMADS Panel Designer, save the panel to retain these changes. |

## See Also

[Group Assignment (Panel Level)](https://manual.pvxplus.com/nomads-graphical-application/panel-designer/options-and-utilities/group-assignment-panel-level)  
**[Suppress Groups](https://manual.pvxplus.com/nomads-graphical-application/panel-designer/options-and-utilities/suppress-groups)**  
**[Dependency Definitions](https://manual.pvxplus.com/nomads-graphical-application/panel-designer/options-and-utilities/dependency-definitions)**  
**[Manipulating and Controlling Groups](https://manual.pvxplus.com/nomads-graphical-application/program-interaction/event-handler-routines/manipulating-and-controlling-groups)**
