mrc logo mrc logo
  • m-Power m-Power
    What is m-Power?
    Overview Demos Build Process Case Studies Specs Pricing Trial
    m-Power Resources
    Overview How-To Videos Webinars & Podcasts White Papers Fact Sheets
  • Solutions Solutions
    What does m-Power build?
    Overview Database Front-Ends Reporting CRM Systems Business Intelligence Dashboards Inventory Management Mobile Apps ERP Enhancements Modernization Spreadsheets to the web MS Access to the web B2B/Web Portals Scheduling Embedded Analytics Web Forms Workflow Data Exploration Budgeting & Forecasting APIs and Web Services Db2 Web Query Alternative
    Solutions by Industry
    Overview Manufacturing Government Foodservice Software Vendors Logistics & Supply Chain Software Consultants Healthcare
  • Services Services
    Development Services Training Mentoring
  • About About
    Overview Partners Press Releases Careers Events Contact Blog
  • Support Support
    Support Home FAQ Documentation Customer Portal Enhancements Updates Roadmap Techblog
Try m-Power

m-Power Manual

Browse:

  • Home
  • Maintainers
  • Grid Add Maintenance Template
Back to Manual

Grid Add Maintenance Template

 

Jump to:

Features
Jump to Template Specific Notes
Runtime Walkthrough
Template In-Action
Application Properties
Web Parameters

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.

Features that Apply to the Grid Add Maintenance Template

Grid Add Maintenance Features:

Add Multiple Database Records:
The Grid Add Maintenance template can be used to create web applications that allow end users to rapidly add multiple records to the database through a single screen.
Back to Diagram

URL Redirection:
m-Power developers have the ability to specify a URL to redirect to after adding a new record. For instance, maintainers are often linked to from retrievals and reports in order to add a single database row. After adding the row, a URL redirect can be used to return to the original data list. The URL redirection can be conveniently specified within the application properties. More Information
Back to Diagram

Modify Primary Tables Only:
m-Power developers can specify whether each maintenance application can be used to edit only primary tables or to edit primary and secondary tables. By default, maintenance applications will only allow modification of the primary table whenever a table join is made. This setting can be altered via application properties, and prevents unwanted modification of secondary tables.
Back to Diagram

Easily Upload Files:
m-Power developers can specify a field to store file names, and at runtime, one or more files can be uploaded at once easily. Using m-Power's upload feature, dynamic file paths, and files with the same name can all be easily handled.
Back to Diagram

Use Alternative Input Methods:
m-Power maintenance templates can utilize radio buttons, check boxes, calendar pickers, and external drop-down lists to populate input values. These can easily be created via field settings within the m-Power interface and m-Painter to improve application functionality and appearance.
Back to Diagram

Back to the Top

Template Notes

Application Settings

Description: Allow developers to specify their application's description.

Program Name: This will be the application’s name, by default m-Power uses the letter M (Maintenance) followed by a five digit number.

Template: You can select a template by scrolling through the available templates. The templates define the general layout and functionality of the resulting application. This section will list all the available maintenance templates; you will see a small screenshot of what that template looks like at runtime. Learn more about templates.

Data Selection

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.

Sequencing

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. Any fields that are set as sequencing fields within a maintenance application will not be editable.

Field Settings

Here you will find the settings for all the fields in the application. The options are:

Delete: You can delete fields by clicking the checkbox and clicking Accept. If a field has a red circle with a cross line, that means that the field is being used somewhere else in the application (sequence, calculation, etc.), and, due to this dependency, is not available for deletion. Note: deleting a field will remove the field from the application only, the table will be unchanged.

Field Name: This is the same name the field has in the table.

Table: The name of the table where that field exists.

Field Description: This is the text that will appear in the column header for that field, you can modify this field to suit your needs. This field will populate with the field description from the table by default, but it can be customized at the application level.

Type: A drop down list that allows developers to designate whether a field is to be displayed (visible, but not edited on the database), hidden (no action), or updated. There may be situations where a field is needed for calculation purposes, but the field does not need to be displayed at runtime. Note: sequence keys must be set to update to ensure your application functions properly.

Size: This displays the length of a field. If a field has a length consisting of two numbers separated by a comma, the first number will be the integer length and the second the decimal length of the field.

Numeric Format Code: For numeric fields, you can modify the way the numbers will display, this includes displaying commas or not, how to display negative numbers, etc. Multiple formats are built in for developers to use, shall you need a different format code, m-Power allows developers to create their own User Defined Format codes; these codes will add logic for common types of fields such as: Currency, Time, or Dates. Accessing the User Defined Format Codes from the Admin section will also allow developers to modify current codes. Learn more.

Lowercase: This option determines whether or not an alpha field can be submitted to the database with lowercase letters. If this is set to "no," the field will be converted to uppercase when it is submitted.

User def: If you would like a user to be able to upload a file over a field, select the letter 'U' from the dropdown. The remaining options have been deprecated. For information on uploading files to a server, click here.

Note: Do not confuse the User Defined Format Code with the User Defined Functions (UDF). The latter is a feature that allows developers to create or incorporate programing functions into m-Power. Learn more about UDFs.

Validity Check Relation: This setting, combined with the Validity Check Value setting will allow you to restrict what information may be entered into your maintenance application. Valid relationships are:

EQ Equal to
GE Greater than or equal to
GT Greater than
LE Less than or equal to
LS Is in the list
NS Not in the list
LT Less than
NE Not equal to
NG Not greater than
NL Not less than
RG Is in the range
RB Radio Button
CB Checkbox

Validity Check Value: This is the value that you want to compare the field value entered to in order to restrict the user from proceeding. A common use of this and the previous setting is to prevent the user from leaving a character field blank. This is done by setting the Validity Check Relation to "NE" and setting the Validity Check Value to be "*BLANK". This will prevent the user from entering a blank value into the field.

Default Value for Add: Text entered here will be entered into the field initially when a new record is being added. Users may change it to whatever they wish, however this is what they see first. A common use of this setting is to add "Insert Full Name Here" into a name field.

Record Selections

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

Calculations

Calculations are a very powerful feature of m-Power; with calculations, developers can create logical 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. Learn more

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.
Learn more

SmartLinks

SmartLinks are not supported in Grid Add Maintenance applications.

Back to the Top

Runtime Walkthrough

Grid Add Maintainers allow end-users to rapidly add records to the database. By default, this application will open with ten records. If we need to add fewer than ten records, we can do so by clicking the red 'x' to remove the row. Alternatively, we can click 'Add Row' if we want to add more than ten records. If we click on the 'Reset' button, this will clear all data that has been entered within the grid.

In our example, we are going to add Boston and Minneapolis to our database. Note that the sequential field has already been populated, as the field has been set to auto-sequence. Once we have added all the data, and removed the extra rows, we can click 'Accept' to save this record to the database.

Back to the Top

Template In-Action

Note: The grid add maintenance template is only available in the PC presentation layer.

  • PC Output

Back to the Top

Application Properties

When accessing the Application Properties, a window will slide open with multiple tabs; let’s go through each of the tabs:

Back to the Top

Web Parameters

Back to the Top

Created: September 24, 2013 | Modified: June 12, 2017

Search


Browse By Category

Build Process (13)
Starting with m-Power (8)
Retrievals (10)
Reports (15)
Summaries (4)
Maintainers (17)
Graphs (8)
m-Power Data Explorer (4)
General (24)
Calculations (5)
Utilities (9)
m-Power Administration (23)
Security (11)
Freemarker (6)
m-Painter (29)
Form Validation (5)
External Objects & UDFs (12)
Deprecated Documentation (23)
Bootstrap Templates (7)

Popular Tags

Production RPG Report Bar Graphs External Objects Summaries Compiling Bootstrap Templates Application Properties Record Selections SQL App Properties Dates Reports Getting Started Retrieval Performance Popular Freemarker Admin m-Painter Database Maintainers Excel Java Prompt Screens DB2 Video Graphing Calculations Email Advanced Security mrc-Productivity Series Administration Retrievals Form Validation Build Process Maintainer Dropdowns Graphs Graph Properties Data Dictionary Parameters Tomcat

See all tags »

michaels, ross & cole, ltd. (mrc)

Privacy Policy Cookie Policy Cookie Settings Notice at Collection Do Not Sell or Share My Personal Information

mrc (US)

2001 Midwest Road
Suite 310
Oak Brook, IL 60523
630-916-0662

mrc (UK)

Mortlake Business Centre
20 Mortlake High Street
London, SW14 8JN
+44-20-335-59566


© 2024 mrc. All rights reserved.