Edit D:\app\Administrator\product\11.2.0\dbhome_1\apex\images\doc\bldapp_frm_val.htm
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <title>Validating User Input in Forms</title> <meta name="generator" content="Oracle DARB XHTML Converter (Mode = ohj/ohw) - Version 5.1" /> <meta name="date" content="2009-04-14T16:11:29Z" /> <meta name="robots" content="noarchive" /> <meta name="doctitle" content="Validating User Input in Forms" /> <meta name="relnum" content="Release 3.2" /> <meta name="partnum" content="E11947-01" /> <link rel="copyright" href="dcommon/html/cpyr.htm" title="Copyright" type="text/html" /> <link rel="stylesheet" href="dcommon/css/blafdoc.css" title="Oracle BLAFDoc" type="text/css" /> <link rel="contents" href="toc.htm" title="Contents" type="text/html" /> <link rel="up" href="preface.htm" title="Home" type="text/html" /> <link rel="up" href="app_comp.htm" title="Adding Application Components" type="text/html" /> <link rel="up" href="bldapp_frm.htm" title="Creating Forms" type="text/html" /> <link rel="up" href="bldapp_frm_val.htm" title="Validating User Input in Forms" type="text/html" /> <link rel="prev" href="bldapp_frm_manual.htm" title="Previous" type="text/html" /> <link rel="next" href="bldapp_cal.htm" title="Next" type="text/html" /> </head> <body> <p id="BREADCRUMBING"><a href="preface.htm" title="Home">Home</a> > <a href="app_comp.htm" title="Adding Application Components">Adding Application Components</a> > <a href="bldapp_frm.htm" title="Creating Forms">Creating Forms</a> > Validating User Input in Forms</p> <table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="100%"> <col width="86%" /> <col width="*" /> <tr valign="bottom"> <td align="left"></td> <td align="center"><a href="bldapp_frm_manual.htm"><img src="dcommon/gifs/leftnav.gif" alt="Previous" /><br /> <span class="icon">Previous</span></a> </td> <td align="center"><a href="bldapp_cal.htm"><img src="dcommon/gifs/rightnav.gif" alt="Next" /><br /> <span class="icon">Next</span></a></td> </tr> </table> <p><a id="CHDBGEGA" name="CHDBGEGA"></a></p> <div class="sect2"><!-- infolevel="all" infotype="General" --> <h1><a name="HTMDB25392" id="HTMDB25392"></a>Validating User Input in <a id="sthref1083" name="sthref1083"></a>Forms</h1> <p>You can use validations to check data a user enters before processing. Once you create a validation and the associated error message, you can associate it with a specific item. You can choose to have validation error messages display inline (that is, on the page where the validation is performed) or on a separate error page.</p> <p>Creating an inline error message involves these steps:</p> <ul> <li> <p>Create a validation and specify error message text.</p> </li> <li> <p>Associate the validation with a specific item.</p> </li> </ul> <div class="sect3"><!-- infolevel="all" infotype="General" --><a id="sthref1084" name="sthref1084"></a> <h2><a name="HTMDB25393" id="HTMDB25393"></a>Creating a Validation</h2> <p>To create a validation:</p> <ol> <li> <p>Navigate to the appropriate Page Definition. See <a href="bldr_goto_pgdef.htm#CJGHCACC">"Accessing a Page Definition"</a>.</p> </li> <li> <p>Under Validations, click the <span class="bold">Create</span> icon.</p> </li> <li> <p>When the <a id="sthref1085" name="sthref1085"></a><a id="sthref1086" name="sthref1086"></a>Create Validations Wizard appears, follow the on-screen instructions.</p> <p>Validation Types are divided into two categories:</p> <ul> <li> <p><span class="bold">Item.</span> These validations start with the term Item and provide common checks you may want to perform on the item with which the validation is associated.</p> </li> <li> <p><span class="bold">Code.</span> These validations require that you provide either a piece of PL/SQL code or SQL query that defines the validation logic. Use this type of validation to perform custom validations that require verifying values of more than one item or accessing additional database tables.</p> </li> </ul> </li> <li> <p>Follow the on-screen instructions.</p> </li> </ol> <div align="center"> <div class="inftblnote"><br /> <table class="Note oac_no_warn" summary="" cellpadding="3" cellspacing="0"> <tbody> <tr> <td align="left"> <p class="notep1">Note:</p> Validations cannot contain more than 3,950 characters.</td> </tr> </tbody> </table> <br /></div> <!-- class="inftblnote" --></div> </div> <!-- class="sect3" --> <div class="sect3"><!-- infolevel="all" infotype="General" --><a id="sthref1087" name="sthref1087"></a> <h2><a name="HTMDB25394" id="HTMDB25394"></a>Associating a Validation with a Specific Item</h2> <p>To associate an item with a validation and specify error message text:</p> <ol> <li> <p>Navigate to the appropriate Page Definition. See <a href="bldr_goto_pgdef.htm#CJGHCACC">"Accessing a Page Definition"</a>.</p> </li> <li> <p>Under Validations, select the validation item you want to associate.</p> <p>The attributes page for the validation appears.</p> </li> <li> <p>Scroll down to Error Message:</p> <ul> <li> <p>In Error message display location, verify the display location.</p> </li> <li> <p>In Associated Item, select the item you want to associate with this validation.</p> </li> </ul> </li> <li> <p>Click <span class="bold">Apply Changes</span>.</p> </li> </ol> </div> <!-- class="sect3" --> <div class="sect3"><!-- infolevel="all" infotype="General" --><a id="sthref1088" name="sthref1088"></a> <h2><a name="HTMDB25395" id="HTMDB25395"></a>About Error Message</h2> <p><span class="bold">Error message display location</span> identifies where a validation error message displays. Validation error messages can display on an error page or inline within the existing page. Inline error messages can display in a notification area (defined as part of the page template) or within the field label.</p> <p>To create a hard error that stops processes, including any remaining validations, you must display the error on an error page.</p> </div> <!-- class="sect3" --></div> <!-- class="sect2" --> <!-- class="sect1" --> <!-- Start Footer --> <div class="footer"> <table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="100%"> <col width="86%" /> <col width="*" /> <tr> <td align="left"><span class="copyrightlogo">Copyright © 2003, 2009, Oracle and/or its affiliates. All rights reserved.</span><br /> <a href="dcommon/html/cpyr.htm"><span class="copyrightlogo">Legal Notices</span></a></td> <td align="center"><a href="bldapp_frm_manual.htm"><img src="dcommon/gifs/leftnav.gif" alt="Previous" /><br /> <span class="icon">Previous</span></a> </td> <td align="center"><a href="bldapp_cal.htm"><img src="dcommon/gifs/rightnav.gif" alt="Next" /><br /> <span class="icon">Next</span></a></td> </tr> </table> </div> <!-- class="footer" --> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de