Grid Add Maintenance Template

As it sounds, this template allows adding multiple records on a grid at the same time. This template makes it a simple to create powerful, user-friendly interfaces for adding data.

Runtime Walkthrough

Template Features

Below lists out all the template features offered by Grid Add Maintainer.


Here you will see/modify the table you have selected for your application. Here you can create or modify joins to other tables as well. When tables are selected, only the primary table can be modified, by default. This is done to protect developers from accidental cascading changes. This behavior can be modified within the application properties.

To learn more about the Tables/Fields section, please see here.

Field Settings

Here you will find the settings for all the fields in the application. Maintainer templates have unique features that gives the developer methods of pre-formatted alternative inputs (simple dropdown lists, radio buttons, and checkboxes), form validation and auditing.

You can find out more in detail about these options here.


When building maintenance applications, a developer’s sequencing selection is analogous with selecting a Primary Key. This selection will tell m-Power how this table is unique. If the sequencing key(s) are not unique, then multiple records will be affected when a record is modified or deleted.

To learn more about Dimensions, please see here.


Filters can be created over any database fields or calculations. They allow you to restrict the records that will be returned from the database at runtime.

Grid Add Maintainers do not display data, so filters are not supported.

To learn more about Filters, please see here.


Fields that will apply to the current application only. This can be used to include SQL code in a field, such as cast a numeric field as character, create date conversions, inserting the current date and time, and much more.

Note: like all other application types, the result of a calculation is always read only. In other words, calculations are not written to the database in maintenance applications.

To learn more about Calculations, please see here.

External Objects

This feature allows developers to connect m-Power application with their current business logic, or to extend m-Power capabilities by allowing developers to write their own Java, RPG, or SQL programs, and integrating these programs into the applications. m-Power utilizes “locations” to connect the external objects, these locations vary depending on what the external object does and when it should be executed. The following locations are supported in this template:

*AFTERADD This location calls the object only after a user adds a row.
*AFTERPRC This location calls the object after the last row is processed.
*BEFOREADD This location calls the object only before a user adds a row.
*BEFOREPRC This location calls the object after the first row is processed.
*INITADD This location calls the object when the page loads.
*REDIRECT This location is deprecated in this template.
*FLDVALID This location calls the object to validate fields before add.

To learn more about External Objects, please see here.

Smartlinks allow developers to easily link one application (Retrieval, Report, or Maintenance) to any other application, passing key data automatically. The benefit of Smartlinks is that it allows users the ability to quickly “drilldown” into other applications based on the selected row. By passing parameters automatically when creating a link in m-Painter, Smartlinks save the developer time by simplifying the process.

Grid Add Maintainers do not display data, so Smartlinks are not supported.

To learn more about Smartlinks, please see here.

Template Properties

The Template Properties screen gives developers template specific settings.

To learn more about Template Properties, please see here.

Workflow Designer

The Workflow Designer is unique to maintainer templates and lets you configure actions that you would like to trigger when a records are added from this application.

To learn more about the Workflow Designer, please see here.

Edit Properties

The Edit Properties section allows you to control the behavior of the application. Every m-Power application has properties, however the list of available properties will be different depending on the template selected.

This section below will only focus on properties that are specific to the Grid Add Maintainer template. A complete list of globally shared properties between all templates can be found here.

  • Program Options

File Upload Directory — If utilizing the file upload to server feature, this is where you specify the upload directory on the m-Power server.

File Upload Auto Rename — If the uploaded file already exists in the specified directory on the server, the file will be overwritten or the filename will be renamed to ‘file(1).ext’, ‘file(2).ext’, etc.

File Upload Max Size — Maximum size of file to be uploaded (in Mb).

Maintain Joined Tables? — Determines if joined secondary tables can be maintained or not. Determines if joined secondary tables can be maintained or not. Maintain primary table only is the default property.

Duplicate Records — Specify if duplicate records are allowed to be added.

URL Parameters

A complete list of runtime parameters that can be passed to a Grid Add Maintainer template can be seen by using Parameter Listing (help=1) tool.

To launch this feature, simply add ?help=1 to the end of the URL of any m-Power application and hit Enter.

ex. http://mpowerserveraddress:8011/mrcjava/servlet/DICTIONARY.M00050s?help=1

This is an example URL. Please substitute your appropriate values, such as the m-Power server address, the dictionary name, and the application number into your own URL.

For more information on the Parameter Listing tool, please see here.

Template In-Action

Updated on September 12, 2023

Was this article helpful?

Related Articles

Need Support?
Can’t find the answer you’re looking for? Don’t worry we’re here to help!
Contact Support