Validating the input

Hi friends,
I want to throw an error message when user enters in date field.My requirement is to restrict the user to enter only first day of the future months like 01.10.2009 or 01.12.2010...........not like 02.05.2009.
how to do it?
Thanks.

Hi,
Welcome to SDN.
Try this code.
parameter w_date like sy-datum.
At selection-screen.
if w_date+6(2) NE '01'.
message 'Enter the first day of the month' type 'E'.
endif.
to check the whole future date
PARAMETERS: p_date LIKE sy-datum.
AT SELECTION-SCREEN.
  IF p_date+6(2) <> '01'.
    MESSAGE 'enter' TYPE 'E'.
  ELSEIF p_date+0(4) < sy-datum+0(4).
    MESSAGE 'wrong' TYPE 'E'.
  ELSEIF p_date+4(2) < sy-datum+4(2).
    MESSAGE 'Enter future month' TYPE 'E'.
  ENDIF.
Thanks&Regards
Sarves

Similar Messages

  • Validating the input screen

    How to validate the input screen as like the web page screen
    Example:
      If we are giving the integers in place of characters then it should throw the error like “please use the character fields”. The validation should occur, On spot.
    Only after this validation, the cursor should go to the next input field.

    Hi,
    If you are giving integers, then there might be possiblity that it may be a character.
    For ex., if you giving 1 in character,eventhough it is integer it can be a character also.So you cannot validate it.
    But if you want to restrict numbers,then you can use the following.But it will work only if you press enter or execute button.
    parameters : p_c1(4) type c modif id z1,
                 p_i type i.
    at selection-screen on p_c1.
    if p_c1 ca '0123456789'.
    message i000.
    endif.
    Kindly reward points by clicking the star on the left of reply,if it helps.

  • How to use the table maintenance events for validating the input entries..?

    Hi,
    I have created a Z table with 6 fields in which all are KEY fields. All are of CHAR type. I have created the Table Maintenance Generator for the same. While maintaining the entries in the table, even though I maintain a blank entry for a field it is saving the entry. But, I don't want that way. All the fields are mandatory in my table. One should enter all the fields. Otherwise it should not allow to save the entry. So, I think it can be done using the Table Maintenance Events. can someone tell me how to use the Table Maintenance Events. and which event to use for my reuqirement and what is the logic to be written.
    Or Is there any other way to solve my problem.
    Please share your inputs. Thanks in advance.
    Best regards,
    paddu.

    In the table maintenance generator, Environment --> Modifications --> Events then a screen will be appear here,we need to create the Events.In the EVENTS screen, press new Entries, there give 01(Before Saving the Data in the Database) and give a name(This will become a PERFORM), then click the Editor pushbutton, this will be there at the right side of the entry, then a popup will be appear, you can create an include program, there inside of the include program write ur code.
    Here is documentation for Event 01(Before Saving the Data in the Database )
    Event 01: Before Saving the Data in the Database
    Use
    This event occurs before new, changed or deleted entries are written to the database. Other activities can be performed, for example:
    hidden entry processing
    fill hidden fields
    flag data to be written to hidden tables after the database change.
    To have the changes saved by the central maintenance dialog routines, SY-SUBRC must be set to 0 at the end of the routine.
    Realization
    This event has no standard routine. The following global data is available for the realization of the user routine:
    internal table TOTAL
    field symbols
    field symbols <ACTION> and <ACTION_TEXT>
    <STATUS>-UPD_FLAG
    If internal table data are to be changed before saving, t he changes should be made in both the internal table TOTAL and in the internal table EXTRACT.
    FORM abc.
    DATA: F_INDEX LIKE SY-TABIX. "Index to note the lines found
    LOOP AT TOTAL.
    IF <ACTION> = desired constant.
    READ TABLE EXTRACT WITH KEY <vim_xtotal_key>.
    IF SY-SUBRC EQ 0.
    F_INDEX = SY-TABIX.
    ELSE.
    CLEAR F_INDX.
    ENDIF.
    (make desired changes to the line TOTAL)
    MODIFY TOTAL.
    CHECK F_INDX GT 0.
    EXTRACT = TOTAL.
    MODIFY EXTRACT INDEX F_INDX.
    ENDIF.
    ENDLOOP.
    SY-SUBRC = 0.
    ENDFORM.
    Regards,
    Joy.

  • FPM application - Not validating the Input at Review time

    Hello Guru,
    I am creating new FPM application from existing, as we have some issues in existing application. In existing application when I click on Review button it will fire below FPM event and validate the data and gives error message if any validation error.
    fpm.raiseReviewAndSaveEvent(IFPM.EVENT_REVIEW, IFPM.EVENT_SAVE,
    new VAC("Old DC Name", "Old Component Name" ));
    In my new application when I click on Review button it does not validate the data and even not display validation error messages. I have changed according to my new DC as below.
    fpm.raiseReviewAndSaveEvent(IFPM.EVENT_REVIEW, IFPM.EVENT_SAVE,
    new VAC("New DC Name", "New Component Name" ));
    My question is how FPM konws which fields it has to validate?
    Do I have to mention this information somewhere, if yes then how Can I put information for my new DC?
    Hope this helps to understand my requirements.
    Your help will be appreciated.
    Thanks,
    Ameet

    Hi,
    Please double check if MCU on FE server works well, when two participants are connected, the session is essentially peer-to-peer. When three or more participants are connected, the Application Sharing feature depends on the Front End Server Multi Point Control
    Unit (MCU) to provide the sharing stream to all parties.
    Please check if port 5065/TCP is available on Front End server.
    Please also troubleshooting with the help of Recommended Steps part in the link below:
    http://blogs.technet.com/b/nexthop/archive/2012/11/05/lyncmd-troubleshooting-lync-server-2010-application-sharing-internal-and-remote-scenarios.aspx
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • I am facing error while running Quickpay in Fusion payroll that "The input value Periodicity is missing for element type KGOC_Unpaid_Absence_Amount. Enter a valid input value". Any idea?

    I am facing error while running Quickpay in Fusion payroll that "The input value Periodicity is missing for element type KGOC_Unpaid_Absence_Amount. Enter a valid input value". Any idea?

    This is most probably because the Periodicity input value has been configured as "Required" and no value has been input for it.
    Please enter a value and try to re-run Quick Pay.

  • How to do the header and trailer validation in the input file?

    hi,
    what are the ways we can validate whether header and trailer record exists in the input file?
    how to do that?
    regards
    Ruban

    File to Proxy Validation
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/99593f86-0601-0010-059d-d2dd39dceaa0
    /people/swaroopa.vishwanath/blog/2005/06/24/generic-approach-for-validating-incoming-flat-file-in-sap-xi--part-1
    /people/swaroopa.vishwanath/blog/2005/06/29/generic-approach-for-validating-incoming-flat-file-in-sap-xi--part-ii
    /people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy

  • AIP-13978:  Error - the input xsd fails validation

    Hi,
    For an ebXML setup over Generic exchange. I have to perform validation against XSDs which are nested in structure.
    So while setting up the Document definition in the Business action, I uploaded the files as zip files and provided the name of the root XSD file.
    However on clicking finish the for business action I am getting the IP-13978: Error - the input xsd fails validation: java.lang.NullPointerException
    In the log file error message is as given:
    2007.03.12 at 14:40:16:093: AJPRequestHandler-ApplicationServerThread-5: BusinessLogicLayer - (ERROR) java.lang.NullPointerException
         at oracle.tip.buslogic.datatypeimport.b2b.XMLSchemaImport.getXSDElement(XMLSchemaImport.java:259)
         at oracle.tip.buslogic.datatypeimport.b2b.XMLSchemaImport.importXSD(XMLSchemaImport.java:609)
         at oracle.tip.buslogic.datatypeimport.b2b.XMLSchemaImport.importZipFile(XMLSchemaImport.java:426)
         at oracle.tip.buslogic.bll.b2b.GenericWizard.createNativeDatatype(GenericWizard.java:452)
         at oracle.tip.buslogic.bll.b2b.DocumentProtocolWizard.createDocumentDefinition(DocumentProtocolWizard.java:1228)
         at oracle.tip.buslogic.bll.b2b.DocumentProtocolWizard.createDocumentDefinition(DocumentProtocolWizard.java:1061)
         at oracle.tip.tools.integration.buslogic.b2b.collaboration.CreateBusinessActionFinishEventHandler.performExtendedActions(CreateBusinessActionFinishEventHandler.java:245)
         at oracle.tip.tools.integration.event.IPBaseUnboundEventHandler.performActions(IPBaseUnboundEventHandler.java:88)
         at oracle.tip.tools.integration.event.IPEventHandler.handleEventIP(IPEventHandler.java:138)
         at oracle.tip.tools.integration.event.IPEventHandler.handleEvent(IPEventHandler.java:104)
         at oracle.cabo.servlet.event.TableEventHandler.handleEvent(Unknown Source)
         at oracle.cabo.servlet.event.TableEventHandler.handleEvent(Unknown Source)
         at oracle.cabo.servlet.event.BasePageFlowEngine.handleRequest(Unknown Source)
         at oracle.cabo.servlet.AbstractPageBroker.handleRequest(Unknown Source)
         at oracle.cabo.servlet.ui.BaseUIPageBroker.handleRequest(Unknown Source)
         at oracle.cabo.servlet.PageBrokerHandler.handleRequest(Unknown Source)
         at oracle.cabo.servlet.UIXServlet.doGet(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)
    2007.03.12 at 14:40:16:093: AJPRequestHandler-ApplicationServerThread-5: UI - (ERROR) oracle.tip.tools.integration.buslogic.b2b.collaboration.CreateBusinessActionFinishEventHandler.handleEvent(): Error -: AIP-13978: Error - the input xsd fails validation: java.lang.NullPointerException
    Please let me know to resolve this issue.
    Thanks,
    Gautham

    Please check the root xsd and it its dependent XSD are present

  • BKI0062E: The input file /oracle/SID/sapbackup/.file.lst is not valid.

    Hi all,
       It has the following platform: SAP ECC6 in AIX 6.1 with Oracle Database
    My question is: When I run a online backup from DB13 with util_file I have this error message :
    BKI0062E: The input file /oracle/SID/sapbackup/.file.lst is not valid.
    Knowing when I launch from the standard profile on Disk initSID.sap it works without problem
    When we test manually with oraSID it works but by SIDadm its not work
    Then you can mention or in configuration files BACKINT both users oraSID & SIDadm have rights to use
    Many Thanks
    AT

    > # ls -l /sapmnt/X21/exe/br*
    > -rwxrwxr-x    1 oraX21   dba         5002624 Feb 06 2008  /sapmnt/X21/exe/brarchive
    > -rwsrwxr-x    1 oraX21   dba         5129705 Feb 06 2008  /sapmnt/X21/exe/brbackup
    > -rwsrwxr-x    1 oraX21   dba         6659409 Feb 06 2008  /sapmnt/X21/exe/brconnect
    > -rwxrwxr-x    1 oraX21   dba         5594679 Feb 06 2008  /sapmnt/X21/exe/brrecover
    > -rwxrwxr-x    1 oraX21   dba         2100833 Feb 06 2008  /sapmnt/X21/exe/brrestore
    > -rwxrwxr-x    1 oraX21   dba         6882272 Feb 06 2008  /sapmnt/X21/exe/brspace
    > -rwsrwxr-x    1 oraX21   dba         2729734 Feb 06 2008  /sapmnt/X21/exe/brtools
    As you see - your br*tools are more than two years old, many many errors have been fixed since. I would install the latest tools and try if the error is still there. You can even do that when the system is running.
    Markus

  • Validate the input file against a given schema inside an orchestration and producing 2 different files based on the validation result

    HI All,
    I have a situation.
    I need to validate the input file against a given schema inside an orchestration and producing 2 different files based on the validation result.
    A predefined success schema in case of  validation success and negative schema structure for validation failure.
    any advice ?

    Hi Rachit,I following the blog
    http://dietergobeyn.be/validating-biztalk-messages-orchestration/ and stuck in few things
    I created a helper class with the name Validation and following code
    [Serializable]
        public class Validation
            private bool _isValid = true;
            public bool Validate(XmlDocument document, Type schema)
                XmlSchemaSet set = new XmlSchemaSet();
                if (typeof(SchemaBase).IsAssignableFrom(schema) && !schema.IsNested)
                    set.Add((Activator.CreateInstance(schema) as SchemaBase).Schema);
                ValidationEventHandler eventHandler = new ValidationEventHandler(HandleValidationError);
                document.Schemas = set;
                document.Validate(eventHandler);
                return _isValid;
            private void HandleValidationError(object sender, ValidationEventArgs ve)
                _isValid = false;
    public static bool ValidateMessage(XLANGMessage msg)
    XmlDocument xDoc = new XmlDocument();
    xDoc = (System.Xml.XmlDocument)msg[0].RetrieveAs(xDoc.GetType());
    Type t = typeof(Schemas.External.Invoice_v3_1);
    Validation validation = new Validation();
    return validation.Validate(xDoc, t);
    First thing, Do i need to write the ValidateMessage method inside the helper class or not ??
    If inside, how to add the reference of schema files in the statement (Type t = typeof(Schemas.External.Invoice_v3_1);)
     I tried adding the reference of my schema project but it is showing error.
    And what is to be written in the ValidateMessage expression shape in Orchestration ?
    Really appreciate your help.

  • How can I valid the path in different devices

    I wrote a program using the PDA module months ago, I was now told to modify to make it robust in the sense that, the program with ‘run’ in any PDA.
    There are several directories that are common with PDA’s, such as Storage, Storage Card, SD Card, MMC-SD Card e.t.c.
    I previous used a Build Path to create the path I wanted that looked like this:
    "Storage Card/S345220107.txt" where S345 is the user id and 220107 is the date from a time stamp VI.
    What I want to do is to find a way of knowing what directory a PDA has somehow.
    An algorithm of it will look some thing like this:
    String aPath;
    String pathToUse;
    String[ ] path = new Path[4]; // An array
    path[0] = "Storage" // First index
    path[0] = "Storage Card"
    path[0] = "SD Card"
    path[0] = "MMC-SD Card"
    public void setPath( String Path) {
    aPath = path;
    public String getPath( ) {
           return aPath;
    I will use a For Loop to set the path, but what I don’t know is how to test each one.
    In Java I can say:
    if( aPath.equals(Storage)) {
            pathToUse = "Storage" + userId + date + ".txt";
    System.out.println("valid Path");
    else if ( aPath.equals(Storage Card)) {
                pathToUse = "Storage" + userId + date + ".txt";
                System.out.println("Valid Path");
    else if ( aPath.equals(SD Card)) {
                pathToUse = "Storage" + userId + date + ".txt";
                System.out.println("Valid Path");
    else if ( aPath.equals(MMC-SD Card)) {
               pathToUse = "Storage" + userId + date + ".txt";
               System.out.println("");
    else {
              System.out.println("path not valid");
    The pathToUse string is then used as the input to the Open/Create/Replace File VI.
    Any ideas guys

    Hi
    I created the VI you sent, and for the first version, when there is a Match, it does not place the found folder name in the Start Path or the Current Path Indicators. So the path created is not correct
    I then tried a second version called PathSearch1Vi and added a few things for it to do what I wanted. Please run both and see if the second version is OK or what should be added to the first version.
    Thanks you very much for your help.
    Attachments:
    PathSearch.vi ‏25 KB
    PathSearch1.vi ‏28 KB

  • How to validate the input parameters in Oracle BI Publisher reports

    Hi
    i am new to Oracle BI Publisher
    I am using OBI for generating simple reports.
    here i need validation for input parameters (Date Parameter) and also want to disable the Date filed so that user can select through the calendar component.
    Here validation in the sense, the system must validate the date and alert the user with an appropriate message
    Can anyone please provide me the solution in detail.
    Thanks in advance
    Edited by: user10185520 on Aug 26, 2008 6:15 AM

    I have the same task to validate input parameters with Oracle BI Publisher 5.6.3 running under Oracle eBS 10.5.10.2. My validation goes beyond of what I can do during parameter registration. I am using Data Templates.
    My first logical place was the before report trigger. So, I built a report trigger which returns 'false' in case the parameters are not proper. Guess what... XMLP just returns a hard-coded message
    !!Error : trigger '" + datatrigger.getName() + "' returns status as 'false'
    First of all, this is a bad style to hardcode messages visible by the user (especially during French implementation). Second of all, it is not informative at all. It would be nice to change oracle.apps.xdo.dataengine.XMLPGEN.executeTrigger() to read, for example, a message from the message stack when the trigger returns 'false' and let the user read it.
    Anyway, what I did was I built a special data group, decalred before any other data group, query like
    select my_package.my_validation fro dual
    If parameters fail the validation my PL/SQL package throws an application exception with a message. At least, in this case the error message gets available as the description of the concurrent request.
    I wish the before report trigger worked!!!

  • Error VLD-1108 while validating the mapping in owb 11g

    Hi All,
    I am using owb 11.1.0.7.0. I am new to owb 11g. I am getting the following error while validating the mapping
    error: VLD-1108 . Operator requires more input or output connections in order to generate mapping code.
    I am using a function as operator and mapping it with the table.
    Please tell me the solution for this. Its urgent
    Thanks in advance,
    Siva

    Hi,
    u must be using a procedure or table function that is called in the mapping for execution. When writing the function u would have specified 3 inputs but in the mapping u would have given only 2. check the number of inputs and make sure they match.
    Regards
    Bharadwaj Hari

  • How to do validation of input fields

    Hi all,
              I have a rquirement to do the validation of input fields.Can anybody explain me how to go for that???Please explain in detail.U can also give me a link where i can find the tutorial for doing this.

    Hi Amit,
    What everyone has said above is correct - in the method of your action simply test for whatever condition you need to validate for.  However, the following tutorial shows you how to use Web Dynpro's Message Manager to display the messages on the screen in an easy user-friendly way:
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/wd%20java/wd%20tutorials/a%20simple%20input%20form%20with%20message%20and%20error%20service%20support.pdf">Enabling Message and Error Support</a>
    In addition, there are some validations that are done automatically depending on what you have your input fields set to - for instance, if you bind your input field to a date and a user enters words into the field instead of an actual date, it will automatically display an error message.  To learn how to turn this feature on and off, see this tutorial
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/edf6ea90-0201-0010-7696-a68662381c12">Using Validating and Non-Validating Actions</a>

  • How do i call servlet from javascript after validation the javascript

    Hi ,
    Can anyone tell me how to call a servlet after the javascript is being validated. Here is my code to validate javascript i need to call a servlet inorder to save the data into the same form. I tried calling through the action method in the form but its directly taking me to the servlet but not validating the form. Is there any way that i can validate the form first then call the servlet.
    Thanks in advance.
    <html>
    <head>
    <title>Online Blog</title>
    <script language ="javascript" type ="text/javascript">
    function myfunction()
    var mesg = "";
    var dmesg = "";
    var dnumber = 0;
    var number = 0
    var Blogstr = document.onlineblog.BlogName;
    var Fnamestr = document.onlineblog.FirstName;
    var Lnamestr = document.onlineblog.LastName;
    var Datestr = document.onlineblog.Dateformat;
    var Imagestr = document.onlineblog.uploadimage;
    var Imageval = Imagestr.value;
    var flength = parseInt(Imageval.length) - 3;
    var fext = Imageval.substring(flength,flength + 3);
    var Dateval = Datestr.value;
    var Dformat = /^\d{2}\/\d{2}\/\d{4}/; //checks the date format.
    //splits date into mm, dd , yyyy format.
    var m = Dateval.split("/")[0];
    var d = Dateval.split("/")[1];
    var y = Dateval.split("/")[2];
    //Get today's date (removes time).
    var today = new Date();
    var dd = today.getDate();
    var mm = today.getMonth()+1;
    var yyyy = today.getFullYear();
    //checks if month and date are displayed in mm, dd format and if not sets to mm,dd.
    if (mm <10)
    mm = '0'+mm;
    if (dd <10)
    dd = '0'+dd;
    //checks if name of the blog is empty
    if(Blogstr.value == "")
    number = number+1;
    mesg += "\n" + number + "Name of the blog";
    //checks if value of Frist Name is empty;
    if(Fnamestr.value == "")
    number = number+1;
    mesg += "\n" + number + "First Name";
    //checks if value of Last Name is empty;
    if(Lnamestr.value == "")
    number = number+1;
    mesg += "\n" + number + "Last Name";
    //checks if value of date is empty;
    if(Datestr.value == "")
    number = number+1;
    mesg += "\n" + number + "Date of mm/dd/yyyy format";
    //checks if value of image field is empty;
    if(Imagestr.value == "")
    number = number+1;
    mesg += "\n" + number + "select an image";
    //displays all the error messages.
    if (number > 0)
    alert ("Please enter the following" + mesg);
    return false;
    //checks if entered date format is mm/dd/yyyy
    if(!Dformat.test(Dateval))
    dnumber = dnumber +1;
    dmesg += "\n" + dnumber + "please enter a valid date(mm/dd/yyyy)";
    //checks if date is greater than 12 and is 2 digits.
    if ((m>12 && m<100) || (m> = 100 && m<1000) || (m==0))
    dnumber = dnumber+1;
    dmesg += "\n" + dnumber + "Enter valid month(mm)";
    //checks if month has 31 or 30 days and is in dd format.
    if (((d>30) && (d<100) && (m == 04 || m == 06 || m == 9 || m == 11)) || ((m == 01 || m == 03 || m == 05 || m == 07 || m == 08 || m == 10 || m==12) && (d >31) && (d<100)) || d == 0)
    dnumber = dnumber+1;
    dmesg += "\n" + dnumber + "Enter valid date(dd)";
    //checks if month has 28 or 29 days and wheather is a leap year or not.
    if((m == 02 && d>29 && y%4 == 0) || (m == 02 && d>28 && y%4 != 0))
    dnumber = dnumber+1;
    dmesg += "\n" + dnumber + "Enter valid date(dd)";
    //checks if entered date is prior to the current date.
    if((m == mm && d == dd && y == yyyy) || (y > yyyy)|| (d>=dd && m>=mm && m<=12 && y==yyyy) || (d<=dd && m>mm && y == yyyy && m<=12))
    dnumber = dnumber + 1;
    dmesg += "\n" + dnumber + "Please enter a date prior to the current date";
    if (y == 0 || y < 1000 || y>9999) //checks if year is zero and is a 4 digit number.
    dnumber = dnumber + 1;
    dmesg += "\n" + dnumber + "Enter a valid year(yyyy)";
    //checks if image format is jpg or gif.
    if(fext != "jpg" && fext != "gif")
    dnumber = dnumber + 1
    dmesg += "\n" + dnumber + "You can only upload gif or jpg images.";
    if(dnumber>0)
    alert("please check the followin error messages"+dmesg);
    return false;
    </script>
    <style type="text/css">
    .style1 {color: #FF0000}
    body {
         background-color: #FFCCFF;
    h2 {
         color: #CC3399;
    h1 {
         color: cc3399;
    .style2 {
         font-family: Arial, Helvetica, sans-serif;
         font-weight: bold;
    .style5 {color: #000000; font-family: "Times New Roman", Times, serif;}
    </style>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><body>
    <h1 align="center">Webloggers space</h1>
    <p align="center">Home
    <p>
    <h4> Please enter the following details to register.</h4>
    <p> <b>Note:</b> All fields marked with <span class="style1">*</span>(astrick)
    are compulsory.</p>
    <form action="servlet/BlogServlet" name="onlineblog" onsubmit = "return myfunction()" method="post">
    <table width="60%" border="0" cellspacing="5" cellpadding="2">
    <tr>
    <td><span class="style1">*</span>Name of the Blog</td>
    <td><input type="text" name="BlogName"/></td>
    </tr>
    <tr>
    <td><span class="style1">*</span>First Name</td>
    <td><input type="text" name="FirstName"/></td>
    </tr>
    <tr>
    <td><span class="style1">*</span>Last Name</td>
    <td><input type="text" name="LastName"/></td>
    </tr>
    <tr>
    <td><span class="style1">*</span>Date(mm/dd/yyyy)</td>
    <td><input type="text" name="Dateformat"/></td>
    </tr>
    <tr>
    <td>Category</td>
    <td><select name="catagory" size="1">
    <option></option>
    <option>Business</option>
    <option>Education</option>
    <option>Entertainment</option>
    <option>Food</option>
    <option>Hobbies</option>
    <option>Personal</option>
    <option>Politics</option>
    <option>Sports</option>
    </select></td>
    </tr>
    <tr>
    <td>Enter your text here:</td>
    <td><textarea name="textarea" cols="45" rows="5"></textarea></td>
    </tr>
    <tr>
    <td><span class="style1">*</span>Upload Image <span class="style5">(.jpg
              or .gif)</span></td>
    <td><input type="file" name="uploadimage" /></td>
    </tr>
    <tr>
    <td></td>
    <td><input type="submit" value="save">
    <input type="reset" name="reset" value="Reset" /></td>
    </tr>
    </table>
    </form>
    </body>
    </html>

    Your javascript code contains a syntax error. That's why the function isn't being called. Take a look at this line in your code.
    if ((m>12 && m<100) || (m> = 100 && m<1000) || (m==0))Notice the space between > and =. Remove that space.
    m >= 100

  • Validation of input parameters in Oracle BI Publisher reports

    Hi
    I am new to Oracle Bi Publisher.
    In my project i am using oracle BIPfor generating simple reports.
    here i need validation for input parameters (Date field) and i want to make it (Date field) disable, so that user can select the date through the Calendar component only.
    Can anyone please provide me the solution in detail, it is urgent.

    I have the same task to validate input parameters with Oracle BI Publisher 5.6.3 running under Oracle eBS 10.5.10.2. My validation goes beyond of what I can do during parameter registration. I am using Data Templates.
    My first logical place was the before report trigger. So, I built a report trigger which returns 'false' in case the parameters are not proper. Guess what... XMLP just returns a hard-coded message
    !!Error : trigger '" + datatrigger.getName() + "' returns status as 'false'
    First of all, this is a bad style to hardcode messages visible by the user (especially during French implementation). Second of all, it is not informative at all. It would be nice to change oracle.apps.xdo.dataengine.XMLPGEN.executeTrigger() to read, for example, a message from the message stack when the trigger returns 'false' and let the user read it.
    Anyway, what I did was I built a special data group, decalred before any other data group, query like
    select my_package.my_validation fro dual
    If parameters fail the validation my PL/SQL package throws an application exception with a message. At least, in this case the error message gets available as the description of the concurrent request.
    I wish the before report trigger worked!!!

Maybe you are looking for

  • Oracle 11g r2 installation problem on Win 7 prof. 32 bit

    I install on an IBM Thinkpad with 64 bit core2. The preinstalled OS is 32bit. After doubleclick on setup.exe I get a DOS Box for about 10 milliseconds. The time is to short to read the message or to press pause. After that nothing else happen. Do I n

  • Import failed with canon 6d footage after latest update

    After I updated to Final Cut X 10.0.8, I've been getting "Import Failed" messages during the import process when taking in footage from my Canon 6D The import process also seems to be going very slow (slower than usual) I've tried duplicating the SD

  • Server with Quickbook

    Hey everyone, I have been paying for a service for 2 years now and was thinking its time to have my own server due to cost in the long run.  The way it works now is I have 4 computers that remote desktop onto a 2008 server and have my own desktop wit

  • Windows formatted iPod and iPhoto?

    Hey people, is it possible to use my windows formatted iPod on a Mac and transfer photos using iPhoto? Ian

  • QM - Cert of Analysis - profile not found

    Folks, Can anyone help me out on this one? Have a problem whereby a cert of analysis profile we created is not printing out as expected. The print output error is - No certificate profile was found. I've checked using QC03 and we do have the certific