m-Power Documentation
![]() |
![]() |
How to Validate User Input
When working within an mrc application that allows end-users to input data, it is often necessary to be able to validate the user's input. In most cases, validation is usually necessary within a Maintenance application or the prompt page of a Report. mrc offers the following built in validation types for Maintenance templates (accessible via the Field Settings screen):
- Check to see if a value is in a specified hard-coded list if it is greater/less/equal than a field value.
- Check to see if a value is in a specified hard-coded list is in the range or not in the range of a field value.
- Check to see if a value is equal to blank.
- To create hard-coded drop-down lists, radio buttons, or check boxes.
Note: The above functionality does not exist within Reports.
However, there are times when a more rigorous method of validation is necessary. For example, let's say that you need to check to see if a product entered into an order detail maintenance app exists within the Product Master table. In these cases, validation can be controlled by an external object.
The following documents explain how to use different coding languages to validate user input:
- Validating via an SQL External Object
- Validating via a Java External Object
- Validating via an RPG External Object
- Validating via JavaScript
































































































