# Enhanced Layout

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

Starting with PxPlus 2024, the *Enhanced* layout is the default layout used when creating a new file maintenance panel. This can be changed by setting the **[Layout](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/object-definition#layout)** option in **Step 1: Definition**.

See the tutorial **[How to Use the Enhanced Layout in File Maintenance Generator](https://manual.pvxplus.com/how-to/how-to-use-enhanced-layout)**.

Important Note:

The Enhanced layout is *not* backwards compatible with previous versions.

With the *Enhanced* layout, options are provided for formatting individual rows in the panel layout as *Full*, *Half*, *Third* and *Quarter* sections. You can choose which rows to format as Full sections, two Half sections, three Third sections, four Quarter sections or one Half and two Quarter sections. When the NOMADS panel and Webster+ HTML page are generated, each section is treated as true *Full*, *Half*, *Third* or *Quarter* sections.

In NOMADS, the width of the generated panel is calculated by using the *maximum* width of the controls added to the different Section sizes. This calculation takes into account the following:

- the widest *Full* section
- the widest *Half* section (multiplied by two)
- the widest *Third* section (multiplied by three)
- the widest *Quarter* section (multiplied by four)

It is strongly recommended to avoid adding wide controls to smaller Section sizes, as this will result in wide panels with blank space on the right side.

Define the layout for the file maintenance Main panel and any folder panels:

- Select the **[Fields](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/field-layout#fields_list)** to add to the panel layout
- **[Add Objects](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/adding-objects)**
- Define **[Folder Options](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/folder#folderoptions)** and specify the **[Folder Location](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/enhanced-layout#folderloc)**
- Add **[Dependency Definitions](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/dependency)** to panel controls
- Select **[Right-Click Menu](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/enhanced-layout#rightclick)** options for manipulating the panel layout
- **[Preview](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/preview)** the layout

***Example:***

The *Layout Grid* initially displays all rows as *Half* sections. Right clicking inside the *Layout Grid* displays a menu showing the Section size options:

![](https://manual.pvxplus.com/migration-assets/ff0f40e11463c748572ed65df4a2d75627770c994c542c4f1d5bfda5b4cbda38.png)

By default, the *Layout Grid* displays each row as two Half sections when creating a new file maintenance panel. This can be changed by right clicking on a section and selecting a Section size option from the **[Right-Click Menu](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/enhanced-layout#rightclick)**.

The Section size options are enabled or disabled, depending on the Section size of the currently selected cell:

- When the current cell is a *Half Section*, only the *Full Section* and *Quarter Section* options are enabled (see above example).
- When the current cell is a *Third Section*, only the *Full Section* option is enabled.
- A cell formatted as a *Half Section* or *Quarter Section* cannot be made into a *Third Section*.
- The *Flex Section* option is available if a Webster+ HTML Page is being generated.

***Example:***

This panel *Layout Grid* shows rows formatted as *Full*, *Half*, *Third* and *Quarter* sections. Below that is shown the NOMADS panel at run time:

![](https://manual.pvxplus.com/migration-assets/98fe431802eaaa120a2a57a30c1093960fc79bf042a4dd05003fec40b916090d.png)

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

## Section Size Formatting

If the Section size formatting of a row is changed, the formatting of any non-populated rows below it will also change, providing that the non-populated rows had the same original formatting.

If the first cell on a non-populated row is changed, all cells on that row will be formatted to the same size.

***Example:***

Changing the current row from *Half* section to *Quarter* section changed the non-populated cells on the same row, as well as the two non-populated rows below it. The populated rows in the lower half of the panel remain unchanged:

|  |  |
| --- | --- |
| ![](https://manual.pvxplus.com/migration-assets/a2682c92fdbaf4a264c373f3abdaf478e5e2f4068c5b8ad8a761a026111909cf.png)  <br>***BEFORE*** | ![](https://manual.pvxplus.com/migration-assets/1a5c7de388e3c2e3711868de463362c976393071751f945e3e64bc64acf28419.png)  <br>***AFTER*** |

When all cells on a row are populated and any cell on that row is changed to a *Full* section, the other populated cells on that row will be dropped. This means that data dictionary fields will be returned to the *Fields* list box. If any of the cells on the row contained an object, a message will display prior to removing any objects from that row.

***Example:***

Changing the second cell (Email Address) from *Quarter* section to *Full* section dropped the other data dictionary fields on that row and returned them to the *Fields* list box:

|  |  |
| --- | --- |
| ![](https://manual.pvxplus.com/migration-assets/105cd8a58a712134341c28cf5e9a231f826008823aa74c0f437bc4c26df6b40b.png)  <br>***BEFORE*** | ![](https://manual.pvxplus.com/migration-assets/bde49fc31c5214891898089c01b9049bdf6105de5f2271ce8ad16325ff429bf9.png)  <br>***AFTER*** |

When the Section size of a cell is increased (e.g. from *Third* section to *Half* section), the other cells on that row are moved to the right. If there is no longer room for the cell, the populated cells will be dropped. This means that data dictionary fields will be returned to the *Fields* list box. If any of the cells on the row contained an object, a message will display before removing any objects from that row.

If there is no room to increase the size of the last cell on the right, a message will display, except if changing the cell to a *Full* section. In that case, the other populated cells on that row will be dropped.

***Example:***

Increasing the size of the first cell (Department) from *Quarter* section to *Half* section moved the other cells on that row to the right:

|  |  |
| --- | --- |
| ![](https://manual.pvxplus.com/migration-assets/cf03bbc312afa083d76bef0a219ca4dcb4b4df8311dea96005ec7e8e8068f1c7.png)  <br>***BEFORE*** | ![](https://manual.pvxplus.com/migration-assets/07fcd79cc6383394a08e6021c5eae01d12bed5f10eb859af4675b70104676b1c.png)  <br>***AFTER*** |

## Right-Click Menus

Right clicking either on a cell or row in the *Layout Grid* displays the following menu options:

Note:  
When right clicking on a *Key* field, only certain options are available.  
  
The Section size options (Full, Half, Third, Quarter and Flex) do not apply if using the [SmartPhone Layout](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/field-layout#smartphone).

|  |  |
| --- | --- |
| *Clear Current Cell* | Clears the contents of the currently selected cell. This option is not available when the current cell contains a Key field.<br>If the cell contains a data dictionary field, the cleared field will be returned to the *Fields* list box. |
| *Clear All Cells* | Clears the contents of all cells (***except*** Key fields) on the currently selected panel or folder tab. Prior to clearing all cells, a message will display. |
| *Insert Full Row Above* | A new full row is inserted above the currently selected row, and the last row of the grid will be deleted. This will push all subsequent rows down. |
| *Delete Row* | The current row is deleted, and an empty row will be added to the end of the grid. This will move all subsequent rows up. If the current row contains a Key field, a message will display. |
| *Cut Cell  <br>Paste Cell(s)* | Cuts the contents of a single cell and then pastes the contents into a destination cell.<br>If multiple cells are to be cut and pasted, first cut each cell one at a time in the order in which they are to be pasted and then use the *Paste Cell(s)* option to paste them all at once into the destination location. To ensure that all cut cells are successfully pasted, it is recommended to remain in the **Step 6: Fields** panel until the cut/paste process has been completed.<br>Cells can be cut and pasted within the same panel or between different panels, such as from the Main panel to a folder panel and vice versa.<br>The *Cut Cell* option is not available if the cell contains a Key field, Horizontal Line, Section Break, Full Section Break or Folder Location.<br>The *Paste Cell(s)* option is available only when one or more cells have been previously cut. |
| *Full Section* | A full section. A *Full* section can be changed to any other Section size. |
| *Half Section* | ***(Available when current cell is a Full or Quarter Section)***<br>A half section. A *Half* section can be changed to any other Section size ***except*** a *Third* section. The alternative is to insert a Full row by using the **[Insert Full Row Above](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/enhanced-layout#insert_full)** option and then format the Full row as a *Third Section*. Fields or objects can be cut/paste or dragged/dropped into the new row. |
| *Third Section* | ***(Available when current cell is a Full Section)***<br>A third section. A *Third* section can only be changed to a *Full* section. |
| *Quarter Section* | ***(Available when current cell is a Full or Half Section)***<br>A quarter section. A *Quarter* section can be changed to either a *Full* or *Half* section. A *Quarter* section cannot be made into a *Third* section. |
| *Flex Section* | ***(Applicable for HTML Pages Only)***<br>Available only when the current cell is populated.<br>A flex section will occupy the width of the largest element inside the section; thus, the number of flex elements that can appear across the page will vary based on contents. A *Flex* section can be changed to any other Section size. |
| *Lock/Unlock* | Locks or unlocks a data dictionary field.<br>This option is applicable only for data dictionary fields (***except*** for Key fields or fields set as *Read Only* or *Required*).<br>When a field is locked, "Locked" displays at the end of the **[Info Line](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/field-layout#infoline)** for that field. When a field with a Query button is locked, the Query button does not display. |
| *Add Horizontal Line* | Adds a horizontal line to the currently selected cell. The *Layout Grid* displays the text \* Horizontal Line \*.<br>The length of the line depends on whether the current cell is a *Full*, *Half*, *Third* or *Quarter* section. |
| *Folder Location* | ***(Available only when* [Folder](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/folder) *check box is selected)***<br>Adds the Folder control to the current row on the Main panel only. See **[Adding a Folder](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/folder)**. The row displays the text *\* Folder Location \**, and the row size changes to a *Full* section if it was not a *Full* section before (i.e. *Half*, *Third*, *Quarter* or *Flex*). If the row contains data dictionary fields, the field(s) will be returned to the *Fields* list box. If the row contains object controls, a message will display prior to removing the object(s).<br>If **[Folder Tabs](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/folder#foldertabs)** have been defined but no Folder Location has been added, the Folder control will be located at the bottom of the Main panel.<br>This option is not available when the current row contains a Key field, or you are not on the Main panel, or a Folder Location has already been added.<br>*(Support to automatically format the row as a Full section when specifying the Folder location was added in PxPlus 2025.)* |
| *Add Object* | Displays a list of objects to add or edit. See **[Adding Objects](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/adding-objects)**. |

Right clicking on a column header in the *Layout Grid* displays the following menu option:

| **Menu Option** | **Description** |
| --- | --- |
| *Clear All Cells* | Clears the contents of all cells, ***except*** Key fields, on the currently selected panel or folder tab. Prior to clearing all cells, a message will display. |

## See Also

**[Enhanced Layout Sample Panels](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/enhanced-samples)**  
**[Two-Column Layout](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/two-column)**
