Skip to Content mrc logo mrc logo
  • 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
  • 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 & Web Services Db2 Web Query Alternative
    Solutions by Industry
    Overview Manufacturing Government Foodservice Software Vendors Logistics & Supply Chain Software Consultants Healthcare
  • Development Services Training Mentoring
  • Overview Partners Press Releases Careers Events Contact Blog
  • 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
Back to Manual

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 ( "You must enter a starting date." );
        valid = false;
    }else if (document.FORM_R00230.R002.value == 0)
    {
        alert ( "You must enter an ending date." );
        valid = false;
    }
else if ( document.FORM_R00230.R001.value > document.FORM_R00230.R002.value)
    {
        alert ( "Start Date is greater than End Date." );
        valid = false;
    }
        return valid;
}
</script>

Created: February 10, 2010 | Modified: December 22, 2011

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

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

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


© mrc. All rights reserved.