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 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
    Solutions by Industry
    Overview Manufacturing Government Foodservice Software Vendors Logistics & Supply Chain Software Consultants Healthcare
  • Services Services
    Overview Training Project Consulting Staff Consulting 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
  • Form Validation

Validating via Javascript in Reports Source Code

Validating via Javascript in Reports Source Code   <script type="text/javascript"> function validate_form ( ) //Check two dates, DATEORD & DATEEXP in Maintenance application {     valid = true;     if (document.FORM_R00230.R001.value == 0 && document.FORM_R00230.R002.value == 0)     {         alert ( "You have not entered any dates." );         valid = false;     }else if (document.FORM_R00230.R001.value == 0)     {         alert […]

Tags: External Objects, Form Validation, Javascript, Prompt Screens, Reports

Validate User Input

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 […]

Tags: External Objects, Form Validation, Maintainers, Prompt Screens, Reports

Validating via a Java External Object

Validating via a Java External Object   This document will explain how to call an external object Java program for validity checking. For basic information regarding validity checking please see this document. The source code for the Java used in this example can be found here. The purpose of this object is to check to […]

Tags: External Objects, Form Validation, Java

Validating via an SQL Procedure Source Code

Validating via an SQL Procedure Source Code   create procedure mrcworklib.validdates (inout i_error char(99),  inout i_strdate decimal(8,0),  inout i_enddate decimal(8,0)) LANGUAGE SQL CASE when i_strdate = 0 and i_enddate = 0 then    set i_error = 'You have not entered any dates.'; when i_strdate = 0 then    set i_error = 'You must enter a starting date.'; […]

Tags: External Objects, Form Validation, SQL

Validating via an SQL External Object

Validating via an SQL Procedure   This document will explain how to create and call an external object SQL procedure for validity checking. For basic information regarding validity checking please see this document. The source code for the SQL used in this example can be found here. The purpose of this object is to check […]

Tags: External Objects, Form Validation, SQL

Validating via JavaScript

Validating via JavaScript   This document will explain how to create a JavaScript function for validity checking. For basic information regarding validity checking please see this document. The purpose of this JavaScript is to check to see if the start date is less than the end date. Note: This is a very simple example that […]

Tags: External Objects, Form Validation, Javascript

Validating via a Java External Object Source Code

Validating via a Java External Object Source Code   package MRCWORKLIB; public class Validate {     public void valid_fields(String[] args)     {         String strdatex = args[1].replaceAll(",", "");         String enddatex = args[2].replaceAll(",", "");         int strdate = Integer.parseInt(strdatex);         int enddate= Integer.parseInt(enddatex);         if ((strdatex.compareTo("0") == 0 ) && (enddatex.compareTo("0") == 0 ))             {             args[0] = "You have not entered any […]

Tags: External Objects, Form Validation, Java

Validating via Javascript in Maintainers Source Code

Validating via Javascript in Maintainers Source Code   <script type="text/javascript"> function validate_form ( ) //Check two dates, DATEORD & DATEEXP in Maintenance application {     valid = true;     if (document.FORM_M00230.STARTDATE[0].value == 0 && document.FORM_M00230.ENDDATE[0].value == 0)     {         alert ( "You have not entered any dates." );         valid = false;     }else if (document.FORM_M00230.STARTDATE[0].value == 0)     {         alert […]

Tags: External Objects, Form Validation, Javascript, Maintainers

Validating via an RPG External Object

Validating via an RPG External Object   This document will explain how to call an external object RPG program for validity checking. For basic information regarding validity checking please see this document. The source code for this RPG can be found here. For the sake of this documentation, the RPG code will be located in […]

Tags: External Objects, Form Validation, Popular, RPG

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

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

See all tags »

michaels, ross & cole, ltd. (mrc)
Privacy Settings Privacy Policy Cookie Policy Employee Intranet
© 2023 mrc. All rights reserved.
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