# Step 6: File Maintenance Field Layout

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

Define the layout for the file maintenance Main panel and any folder panels using either the **[Enhanced Layout](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/enhanced-layout)** or **[Two-Column Layout](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/two-column)**.

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

*(The Enhanced Layout was added in PxPlus 2024.)*

|  |  |
| --- | --- |
| ![Field Layout panel using Enhanced Layout.](https://manual.pvxplus.com/migration-assets/c9decd73f627599545fddd34bd145e4e0b6511e4d6689eb69ccf281740ffbc40.jpg)  <br>***Using Enhanced Layout*** | ![Field Layout panel using Two-Column Layout.](https://manual.pvxplus.com/migration-assets/85fb1bdf6ba54648617e998b2848be87d6d012186a75a6fc77d66822f006327d.jpg)  <br>***Using Two-Column Layout*** |

This panel consists of the following for both layouts:

| **Select field layout options** | *Define the field layout for the panel.* |
| --- | --- |
| *Use SmartPhone Layout* | Select this check box to use a SmartPhone (single column) layout for the panel; otherwise, a two-column layout is displayed by default.<br>If this check box is selected (or deselected) after fields have been added to the *Layout Grid*, a *Reset* message will display:<br>\|  \|  \|<br>\| --- \| --- \|<br>\| • \| *Yes* removes all fields (***except*** Key fields) from the *Layout Grid*. Data dictionary fields are returned to the *Fields* list box in their original sequence in the data dictionary definition. Any fonted text fields and horizontal lines previously added are removed, as well as any Smart List Boxes, Smart Charts, Images, etc. If any folder tabs were previously added, an additional message will display. \|<br>\| • \| *No* does not remove any fields from the *Layout Grid*. Folder tabs (if any) remain unchanged. \| |
| *Folder* | Select this check box to set up Folder sub-panels. See **[Adding a Folder](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/folder)**. |
| *(Folder Options)* | ***(Available when Folder check box is selected)***<br>Button (beside the *Folder* check box) that launches the **Folder Options** window for specifying Folder properties. See **[Adding a Folder](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/folder)**. |
| *Panel (or Current Tab)* | Indicates the current panel being defined (i.e. Main panel or a Folder tab). See **[Adding a Folder](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/folder)**. |
| *(Maintain Folder Tabs)* | ***(Available when Folder check box is selected)***<br>Button (beside the *Current Tab* drop box) that launches the **File Maintenance Panel Tabs** window. See **[Adding a Folder](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/folder)**. |
| *(Dependency Definition)* | Button (beside the *Maintain Folder Tabs* button) that launches the **Dependency Definition** window. See **[Dependency Definition](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/dependency)**. |
| *Add Object* | Button that displays a list of objects that can be added to the file maintenance panel. See **[Adding Objects](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/adding-objects)**. |
| ***Fields List Box and Panel Layout Grid***<br>To add fields from the selected data dictionary table to the panel, select the fields in the *Fields* list box on the left. Then, drag and drop them into the *Layout Grid* on the right to add them to the selected Main panel (or folder panel). |  |
| *(Fields List Box)* | Lists all the fields in the data dictionary table, which was selected in **[Step 1: Definition](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/object-definition#ddtable)**.<br>Use this list to select the fields to drag and drop into the *Layout Grid* on the right when defining the panel layout. You can add one, some or all fields to the *Layout Grid*. See **[Adding Data Dictionary Fields](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/add-remove-fields#add_ddflds)**. To select ***multiple*** fields, use Shift-Click (consecutive selections) or Ctrl-Click (random selections). To select ***all*** fields, click the *Select All* button.<br>Fields are listed in the same order as they appear in the data dictionary definition (in **[Data Dictionary Maintenance](https://manual.pvxplus.com/data-dictionary/data-dictionary-maintenance/overview)** on the **Elements** tab). Fields flagged as *Required* in the data dictionary table are preceded with an **\*** *(asterisk)*, providing that the *Non-File Maintenance Form* check box was not selected in **Step 1: Definition**.<br>If a field is defined with a ***Multi-Line data class*** that is using **[Extended Validation](https://manual.pvxplus.com/data-dictionary/data-classes/extended-validation)** with a *Descriptive Field* specified, the descriptive field will be listed and named **SHOW**.*xxxxxx* (***where*** *xxxxxx* is the name of its related field); e.g. SHOW.SalesRep. If the descriptive field is related to a single-segment primary Key field, the descriptive field will not be listed. See **[Adding Extended Validation Descriptive Fields (SHOW.xxxxxx)](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/add-remove-fields#add_show)**.<br>Any data dictionary fields that are removed from the *Layout Grid* are returned to the *Fields* list box.<br>Data dictionary fields that are added as **[Hidden Variables](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/variables)** are shown in gray text as a visual cue only.<br>*(The gray text display to indicate hidden variables was added in PxPlus 2023.)* |
| *Layout Grid* | This grid is used to define the layout of the Main panel and any folder panels (if **[Folder Tabs](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/folder#foldertabs)** have been defined).<br>When creating a new file maintenance panel, the *Layout Grid* initially displays either two Half *Sections* or *Left Side/Right Side* columns, depending on the **[Layout](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/object-definition#layout)** selected in **Step 1: Definition**. If the **[Use SmartPhone Layout](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/field-layout#smartphone)** check box is selected, only a single *SmartPhone Layout* column will display. Each layout accommodates a maximum of 50 grid rows.<br>Once fields are added to the *Layout Grid*, you can **[Move Fields](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/moving-fields)** and **[Remove Fields](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/add-remove-fields#remove_flds)** when needed.<br>***Key Fields***<br>Key fields are displayed in dark red bolded font and, by default, occupy cells at the top of the Main panel. Key fields reside on the Main panel only. They cannot be deleted or moved to a folder panel; however, they can be moved to any row on the Main panel by using the drag and drop method.<br>*(The ability to move Key fields to any row on the Main panel was added in PxPlus 2021.)*<br>If the *Non-File Maintenance Form* check box was selected in **[Step 1: Definition](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/object-definition)** and a table name was entered, Key fields will not be displayed in dark red bolded font and will be treated the same as other fields.<br>***HTML Events and HTML Calculations***<br>Colored ticks in the top left corner of a cell in the *Layout Grid* indicate the following:<br>• A red tick in a cell that contains a data dictionary field or fonted text indicates that an **[HTML Event](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/html-event)** was added.  <br> • A blue tick in a cell that contains a data dictionary field indicates that an **[HTML Calculation](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/html-calc)** was added.  <br> • A magenta tick in a cell that contains a data dictionary field indicates that ***both*** an HTML calculation and an HTML event were added.<br>*(The colored tick indicators were added in PxPlus 2023.)*<br>***Right-Click Menus***<br>Right clicking either on a cell or a column header in the *Layout Grid* displays different popup menu options, depending on the **[Layout](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/object-definition#layout)** selected in **Step 1: Definition**.<br>For information on the right-click menu options for each layout, see **[Enhanced Layout](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/enhanced-layout#rightclick)** and **[Two-Column Layout](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/two-column#rightclick)**. |
| *Select All (or Deselect All)* | Toggle button that is used to select (or deselect) all remaining fields in the *Fields* list box. |
| *Reset* | Selecting this button displays a message for resetting the *Layout Grid*. The message will have either two or three possible responses, depending on whether the *Layout Grid* is being reset when creating a new file maintenance panel or regenerating an existing panel.<br>When creating a ***new*** panel, the *Reset* message displays *Yes/No* responses:<br>\|  \|  \|<br>\| --- \| --- \|<br>\| • \| *Yes* removes all fields (***except*** Key fields) from the *Layout Grid*. Data dictionary fields are returned to the *Fields* list box in their original sequence in the data dictionary definition. Any fonted text fields and horizontal lines previously added are removed, as well as any Smart List Boxes, Smart Charts, Images, etc. If any folder tabs were previously added, an additional message will display. \|<br>\| • \| *No* does not remove any fields from the *Layout Grid*. Folder tabs (if any) remain unchanged. \|<br>If regenerating an ***existing*** panel, the *Reset* message displays *Yes/No/Cancel* responses:<br>\|  \|  \|<br>\| --- \| --- \|<br>\| • \| *Yes* resets the *Layout Grid* (including any folder tabs and options) to the original layout when the panel was last generated. \|<br>\| • \| *No* removes all fields (***except*** Key fields) from the *Layout Grid*. Data dictionary fields are returned to the *Fields* list box in their original sequence in the data dictionary definition. Any fonted text fields and horizontal lines previously added are removed, as well as any Smart List Boxes, Smart Charts, Images, etc. If any folder tabs were previously added, an additional message will display. \|<br>\| • \| *Cancel* closes the *Reset* message. The field layout and folder tabs (if any) remain unchanged. \|<br>*(Support for resetting a regenerated panel layout was added in PxPlus 2020.)* |
| *Hidden Variables* | ***(Available when* [HTML Page](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/object-definition#formtype) *check box is selected for Form Type)***<br>Button that launches the **Include Hidden Fields on HTML Page** window for adding hidden variables. See **[Hidden Variables](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/variables)**.<br>*(The Hidden Variables button was added in PxPlus 2022.)* |
| *(Info Line)* | The Info line is located above the **[Navigation Bar](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/invoking-fmgen#sections)** and displays information about a selected field or control in the *Fields* list box or the *Layout Grid*.<br>For example, when a data dictionary field is selected, the Info line displays the field name, type and size. When a Smart List Box control is selected, the Info line displays the width, height, query library/panel, and *Span Multiple Lines* settings.<br>*(The Info Line was added in PxPlus 2021.)* |

## See Also

**[How to Use the Enhanced Layout in File Maintenance Generator](https://manual.pvxplus.com/how-to/how-to-use-enhanced-layout)  
[File Maintenance Generator Steps](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/fmgen-introduction#steps)  
[Updating a Generated File Maintenance Panel](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/updatepnl)  
[Adding and Removing Fields](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/add-remove-fields)  
[Moving Fields](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/moving-fields)  
[Adding Objects](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/adding-objects)**

## Choose a field layout

- [Enhanced Layout](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/enhanced-layout#add_objopt)
- [Two-Column Layout](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/two-column#add_objopt)

## Choose a field layout

- [Enhanced Layout](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/enhanced-layout#folderloc)
- [Two-Column Layout](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/two-column#folderloc)
