# Step 1: File Maintenance Object Definition

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

Select the type of form(s) to create and the data dictionary table to use. The file maintenance object for the file definition is also specified, if applicable.

Note:  
For file maintenance panels, Table Name and Object Name are *required* before proceeding to [Step 2: Properties](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/object-properties).

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

This panel consists of the following:

| **Select the file maintenance template and layout format** | *Select a template to apply its settings to the new panel(s) or HTML page(s) to be generated.*<br>*A template consists of predetermined settings that define the appearance of a panel or HTML page. Using templates makes designing new panels or HTML pages easier and gives them a consistent look and feel.*<br>*The templates data file "maint_templates.dat" is created according to the prefix settings the first time the File Maintenance Generator is accessed on a new PxPlus installation or for a new PxPlus project. Therefore, different PxPlus projects may have unique template data files.*<br>*(Support for creating the templates data file according to prefix settings was added in PxPlus 2021.)*<br>*Different templates can be used to create different panel or HTML page designs. For example:*<br>• *A simple maintenance panel with (or without) browse buttons*  <br> • *A panel that includes a folder with top (or bottom) tabs*  <br> • *A panel that includes a folder with left (or right) sidebar tabs*  <br> • *A panel with an embedded toolbar*<br>***To save template settings for future use***, *click the Save Template button in* **[Step 7: Finish](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/completion)***.* |
| --- | --- |
| *File Maintenance Template* | ***(Available when a template exists)***<br>Click the drop-down arrow for a list of previously saved templates (if applicable). See **[Save Template](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/completion#save_template)** (in **Step 7: Finish**).<br>When a template is selected, its settings are applied to the current panel or HTML page to be generated.<br>If no templates exist or an existing template is not selected, the default will be *None*.<br>If a template was saved with the *Default Template* check box selected (see **[Save Template](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/completion#save_template)**), that template name will be the default when a new file maintenance panel is being generated, and the words **\*Default Template\*** will display.<br>Note:  <br>If a panel is being regenerated, the File Maintenance Template drop box will initially be disabled. To enable this drop box and choose another template, select the Reset Template check box.<br>*(The default setting "None" was added in PxPlus 2019 Update 1.)* |
| *Layout* | ***(Available when creating a new file maintenance panel)***<br>Click the drop-down arrow to select the panel layout to use in **[Step 6: Fields](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/field-layout)**. Starting with PxPlus 2024, the ***default*** is the *Enhanced* layout.<br>\|  \|  \|<br>\| --- \| --- \|<br>\| *Enhanced* \| When selected, the *Layout Grid* defaults to two Half sections. You can leave the rows as Half sections or change individual rows to a different Section size (i.e. *Full Section*, *Half Section*, *Third Section* or *Quarter Section*) by using the right-click menu.<br>See **[Enhanced Layout](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/enhanced-layout)**.<br>Important Note:<br>The Enhanced layout is *not* backwards compatible with previous versions.<br>*(The Enhanced layout was added in PxPlus 2024.)* \|<br>\| *Two-Column* \| When selected, the *Layout Grid* defaults to the *Left Side* and *Right Side* layout that existed prior to PxPlus 2024. You can leave the rows as Half rows or change individual rows to a different size (i.e. *Full Row* or *Half Row*) by using the right-click menu.<br>See **[Two-Column Layout](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/two-column)**. \|<br>The *Layout* option cannot be changed when regenerating a panel.<br>If you are creating a new panel and have not entered anything in **Step 6: Fields**, you can still go back to **Step 1: Definition** and change the *Layout* option; otherwise, a message will display.<br>Note:  <br>If regenerating a panel that was created using an earlier version of the File Maintenance Generator (i.e. prior to PxPlus 2024), the Layout option will display Two-Column and be disabled.<br>*(The Layout option was added in PxPlus 2024.)* |
| *(Copy Templates from another location)* | ***(Available when no templates are defined)***<br>Button (beside the *File Maintenance Template* drop box) that launches the **Copy File Maintenance Templates** window.<br>![](https://manual.pvxplus.com/migration-assets/a3cf7ba922b5397afde3741858e890564db6d7aebcbf00111f175c994d78e6e4.jpg)<br>This window is used to copy the file maintenance templates from an *existing* templates data file (**maint_templates.dat**) to the templates data file in the current PxPlus installation or project. This allows previously defined templates to be available in subsequent PxPlus installations or projects without having to recreate them.<br>For example, assuming that file maintenance templates were defined in PxPlus 2020, after installing PxPlus 2021, you would need to use the *Copy Template* button to copy those existing templates to the currently empty templates data file in PxPlus 2021.<br>This window consists of the following:<br>\|  \|  \|<br>\| --- \| --- \|<br>\| *Template File* \| Specify the location of the *existing* file maintenance templates data file (**maint_templates.dat**) to copy from. \|<br>\| *OK* \| Copies the existing templates from the selected data file into the currently empty templates data file. The *File Maintenance Template* drop box is loaded with the templates from the specified file, and the *Copy Templates* button is hidden. \|<br>\| *Exit* \| Closes the **Copy File Maintenance Templates** window without copying any templates. \|<br>Note:  <br>If a panel is being regenerated and the template used is invalid for the new installation or project, the template will be reset to the original value if it is valid after the copy is complete.<br>*(The Copy Template button was added in PxPlus 2020.)* |
| *(Delete Template)* | ***(Available when a previously saved template is selected)***<br>Button (beside the *File Maintenance Template* drop box) that is used to delete a template. Prior to deleting a template, a message will display.<br>This button is enabled when a previously saved template (other than *None*) is selected from the *File Maintenance Template* drop box.<br>Note:  <br>If the template that was used to generate a panel is subsequently deleted, a message will display when regenerating the panel, stating that the template is no longer valid. However, the template settings that were used to generate the original panel will not be deleted. |
| *Reset Template* | ***(Available when an existing panel is being regenerated)***<br>Select this check box to enable the *File Maintenance Template* drop box and reset the template by choosing one from the drop box. The settings associated with the selected template will be used instead of the settings when the panel was generated.<br>If the *Reset Template* check box is unchecked after another template has been selected, the original template name and its settings will be put back to the way they were on the original panel.<br>By default, this check box is not selected. When generating a ***new*** file maintenance (or inquiry-only) panel, this check box is hidden.<br>*(The Reset Template option was added in PxPlus 2020.)* |
| *Screen Designer* | ***(Available when an existing panel is being regenerated)***<br>Button that opens the regenerated file maintenance panel in the **[NOMADS Panel Designer](https://manual.pvxplus.com/nomads-graphical-application/panel-designer/introduction)**.<br>If any File Maintenance settings were changed, a message will display when clicking this button.<br>*(The Screen Designer button was added in PxPlus 2023.)* |
| **Select the type of form(s) to create** | *A NOMADS panel, an HTML page or both types can be created. Non-File Maintenance forms, which do not use the standard file maintenance logic, can also be created.* |
| *Form Type* | Select the type of form(s) to create: a *NOMADS Panel **(Default)***, a Webster+ *HTML Page*, or both types.<br>The *Non-File Maintenance Form* check box is used for creating a NOMADS panel and/or HTML page that does not use the standard file maintenance logic. Selecting this check box provides the capability to generate informational/dashboard-like panels or pages. Entering a data dictionary table is optional. If a table is entered, fields can be added to the layout if desired. The *Non-File Maintenance Form* setting is not saved to a template.<br>Before an HTML page can be created, a location must be defined to store the **[Webster+](https://manual.pvxplus.com/webster/webster)** generated HTML forms. This is done by selecting *Webster+* > *Directory* on the **Library Object Selection** menu bar. If the location is not defined and the *HTML Page* option is selected, a message will display.<br>*(The Form Type option was added in PxPlus 2021.)  <br>(The Non-File Maintenance Form option was added in PxPlus 2022.)* |
| **Select the table from the data dictionary** | *A definition must exist in the data dictionary (providex.ddf and providex.dde files) to generate a new panel.* |
| *Table Name* | Name of an existing *data dictionary* table for which the file maintenance object is being defined. Click the Query Table View button *(magnifying glass)* to invoke the **[Lookup Table Names](https://manual.pvxplus.com/data-dictionary/data-dictionary-maintenance/filtering-the-table-names-lookup)** window to search for a table name or type the table name.<br>If the *Non-File Maintenance Form* check box is selected, the table name is optional.<br>Note:  <br>When the panel is generated, the table name is recorded in the Tag Field property in the [Panel Header](https://manual.pvxplus.com/nomads-graphical-application/panel-designer/panel-header/overview#properties) record for the main panel. |
| *Panel Title* | Title to display at the top of the generated panel. The panel title is ***required*** before proceeding to the next step.<br>By default, the panel title displays as *xxxxxx Maintenance* (***where*** *xxxxxx* is the *Table Name* selected from the data dictionary).<br>If the *Inquiry Only* check box is selected, the panel title defaults to *xxxxxx Inquiry*.<br>If the *Non-File Maintenance Form* check box is selected, a panel title must be entered.<br>Note:  <br>The default Panel Title is derived using the data dictionary description and one of the standard message library references - 'FM_TITLE' for the word 'Maintenance' and 'FM_INQ' for the word 'Inquiry'.  <br>  <br>For generating panels in languages other than English, corresponding message library entries should be created. |
| *Panel Title Symbol* | ***(Applicable for HTML Pages Only)***<br>A symbol can be optionally added before the panel title in Webster+ HTML pages. It can be either a Font Awesome symbol or a standard PxPlus bitmap selected from the Bitmap Library lookup button.<br>For a list of Font Awesome symbols, visit [https://fontawesome.com/v4/icons/](https://fontawesome.com/v4/icons/).<br>Note:  <br>When specifying the Font Awesome symbol name, do not include the leading 'fa-'.<br>*(The Panel Title Symbol option was added in PxPlus 2022 Update 1.)* |
| **Enter the maintenance object** | *Generated file maintenance panels require a file maintenance object as the **Default Program** in the* **[Panel Header](https://manual.pvxplus.com/nomads-graphical-application/panel-designer/panel-header/overview#properties)** *for a generated main panel. This object contains properties that correspond to the options on the* **[Step 2: Properties](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/object-properties)** *panel. This object can be unique to each generated file maintenance panel or can be shared among different generated file maintenance panels.* |
| *File Maintenance Object* | Click the drop-down arrow for available selections:<br>\|  \|  \|<br>\| --- \| --- \|<br>\| *Use the Standard File Maintenance Object* \| ***(Default)*** The panel will use the standard **\*win/fm_maint.pvc** object and the properties on the **[Step 2: Properties](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/object-properties)** panel will be set from the default values stored as %NOMADS Object properties. See **[File Maintenance and Object Inheritance](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/file-maintenance-and-object-inheritance)**.<br>```<br>PROPERTY FM_Update_Option$='R'<br>PROPERTY FM_New_Option$='0'<br>PROPERTY FM_Clear_Option$='0'<br>PROPERTY FM_Auto_Save_Option$='0'<br>PROPERTY FM_Confirm_New_Rec$='0'<br>PROPERTY FM_Acknowledge_Writes$='0'<br>PROPERTY FM_Confirm_Deletes$='1'<br>PROPERTY FM_Acknowledge_Deletes$='1'<br>```<br>Note:  <br>These properties may be overridden by setting them in the [NOMADS Environment Maintenance](https://manual.pvxplus.com/nomads-graphical-application/maintain-nomads-environment) utility or by setting them individually elsewhere. \|<br>\| *Create a New File Maintenance Object* \| Enter the name of a ***new*** object to be created with properties defined on the **[Step 2: Properties](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/object-properties)** panel. \|<br>\| *Use an Existing File Maintenance Object* \| Enter the name of an ***existing*** object to be used with properties defined at the time the object was initially created.<br>Note:  <br>If an existing file maintenance object is entered, the options in [Step 2: Properties](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/object-properties) will be set based on the values in the selected file maintenance object and cannot be modified. See [File Maintenance and Object Inheritance](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/file-maintenance-and-object-inheritance) for information on file maintenance objects. \|<br>*(The File Maintenance Object drop box was added in PxPlus 2020.)* |
| *Object Name* | Input depends on the *File Maintenance Object* drop box selection:<br>\|  \|  \|<br>\| --- \| --- \|<br>\| • \| If *Use the Standard File Maintenance Object* is selected, *Object Name* defaults to the standard **\*win/fm_maint.pvc** object and is disabled. \|<br>\| • \| If *Create a New File Maintenance Object* is selected, enter a ***new*** *Object Name*. If a duplicate *Object Name* is entered, a message will display. \|<br>\| • \| If *Use an Existing File Maintenance Object* is selected, enter an ***existing*** *Object Name* or click the Query button. If an *Object Name* is entered that does not exist, a message will display. \|<br>Note:  <br>Object names *must* end with the file extension .*pvc*. |
| *Inquiry Only* | Select this check box to create a file maintenance panel in ***inquiry*** mode, which allows ***view-only access*** to records. Records cannot be added, edited or deleted.<br>If this check box is selected, the *Panel Title* defaults to *xxxxxx Inquiry*. In addition, all options in **[Step 2: Properties](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/object-properties)**, as well as the *Required Fields* option in **[Step 4: Controls](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/control-settings)**, are disabled. |
| **Enter the optional HTML interface program** | *As with the File Maintenance logic in NOMADS, hooks are available to allow additional logic to be performed for the HTML page. If the HTML page requires additional logic at some or all of the following points, ensure that the methods are named as shown below:*<br>\|  \|  \|<br>\| --- \| --- \|<br>\| **FM_INIT** \| Will be performed on initial page display. \|<br>\| **FM_POST_READ** \| Will be performed after each record is read. \|<br>\| **FM_PRE_WRITE** \| Will be performed before writing any record. \|<br>\| **FM_POST_WRITE** \| Will be performed after writing a record. \|<br>\| **FM_PRE_REMOVE** \| Will be performed before removing a record. \|<br>\| **FM_POST_REMOVE** \| Will be performed after removing a record. \| |
| *Interface Program* | ***(Applicable for HTML Pages Only)***<br>Enter the name of the interface program or click the Query button.<br>An interface program is needed if you want to add code for any of the methods listed above. It is also needed to code events associated with various **[Objects](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/adding-objects)** (Buttons, Grids, Input Fields, etc.) that you are adding to the HTML page in **Step 6: Fields**.<br>If adding a **[Grid](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/grid)** object, the HTML interface program is ***required*** to create a method to load the Grid using a memory file. The interface program name entered will be used as the default **[Initialization Program](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/grid#init_program)**.<br>For an example of an interface program, see **[Grid Example](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/grid#grid_example)**. For additional Grid information, see **[Using Grids in Webster+](https://manual.pvxplus.com/webster/using-grids-in-webster)**.<br>*(The Interface Program option was added in PxPlus 2021.)* |
| *(Edit Interface Program)* | ***(Applicable for HTML Pages Only – Available when Interface Program is entered)***<br>Button (beside the *Interface Program* field) that is used to create or edit the interface program by launching the program editor. The program editor that is launched will either be the **[Integrated Toolkit](https://manual.pvxplus.com/toolkit1/overview)**™ (\*IT) or **[Ed+](https://manual.pvxplus.com/ed-program-editor)**, depending on whether the **[%NOMADS'Program_Editor$](https://manual.pvxplus.com/nomads-graphical-application/appendix/nomads-variables/overview#programeditor)** property has been set. If this property is not set, the default will be the Integrated Toolkit. If running the File Maintenance Generator from the Web IDE, the program editor will be Ed+.<br>*(The Edit Interface Program button was added in PxPlus 2025.)* |

## See Also

**[File Maintenance Generator Steps](https://manual.pvxplus.com/nomads-graphical-application/dictionary-based-development/fmgen/fmgen-introduction#steps)**
