Validation not in sequence

Hi,
I have a form and 10 fields on that form say field1 to .. field10. User need to show the validation in sequence. for ex. if i don't enter any value in any field and click on save, user should see all validation error but it should point to field1 validation first to ask user to correct it. Query is how to maintain validation error sequence on form

You can have manual validation method when the user click save button invoke the method.
public Boolean validateFormFields()
     if (field1==null)
     throw message;
return false;
else if (field2==null)
     throw message;
return false;
     return true;
public int validate()
int result = 0;
if (!validateFormFields())
resultInt = 1;
     return result;
public void saveMethod(ActionEvent actionEvent) {
if (validate==0)
}

Similar Messages

  • Client Side Javascript Validation not Working in Struts 1.x version

    hi,
    I'm following the steps provioded in the below link for Javascript Client side validation but still it is not working.I'm struggling to get this work.
    [http://www.visualbuilder.com/jsp/struts/tutorial2/pageorder/9/|http://www.visualbuilder.com/jsp/struts/tutorial2/pageorder/9/]
    "The framework automatically generates the browser specific JavaScript and validate the data only at the client side."From the above statement i undertstand that framework itself generates the javascript function for validating the field mentioned in validations.xml file so that we dont have to explicitly write a javascript function for
    validating the fields
    (or)
    Do we need to call an explicit function
    Please need help on this.
    I have followed all the steps mentioned on the above link but Client Side Javascript Validation not Working in Struts 1.x version....
    Thanks and Regards,
    Deepak

    Hi,
    Please find my steps below....still getting an error.
    2> which version of commons-validation.jar needs to be downloaded ...Link please
        downloaded the latest commons-validation.jar and placed in lib.refreshed the project,and did a build.
        3> which DTD name to be specified in "validator-rules.xml" which is in accordance to commons-validator.jar file.
    validator-rules.xml ::
    <!DOCTYPE form-validation PUBLIC
              "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN"
              "http://jakarta.apache.org/commons/dtds/validator_1_0.dtd">validation.xml:
    <!DOCTYPE form-validation PUBLIC
    "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN"
    "http://jakarta.apache.org/commons/dtds/validator_1_0.dtd">
    i did as u said and im gettiong the below errorNov 5, 2009 4:33:08 PM org.apache.struts.validator.ValidatorPlugIn initResources
    SEVERE: Invalid byte 2 of 2-byte UTF-8 sequence.
    org.apache.commons.digester.xmlrules.XmlLoadException: Invalid byte 2 of 2-byte UTF-8 sequence.
         at org.apache.commons.digester.xmlrules.FromXmlRuleSet.addRuleInstances(FromXmlRuleSet.java:139)
         at org.apache.commons.digester.Digester.addRuleSet(Digester.java:1610)
         at org.apache.commons.digester.xmlrules.DigesterLoader.createDigester(DigesterLoader.java:89)
         at org.apache.commons.validator.ValidatorResourcesInitializer.initialize(ValidatorResourcesInitializer.java:122)
         at org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugIn.java:238)
         at org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:181)
         at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1036)
         at org.apache.struts.action.ActionServlet.init(ActionServlet.java:455)
         at javax.servlet.GenericServlet.init(GenericServlet.java:212)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
         at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:927)
         at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:890)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1150)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
         at org.apache.catalina.core.StandardService.start(StandardService.java:448)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
    Need help forum members.....
    Please reply to my question 1  which has been asked before as belowDo i need to write explicit javascript function for validation in Struts (or) struts generates the javascript function by itself.??? Please explain with an example....
    Edited by: Deepak_A_L on Nov 5, 2009 4:37 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Display alternate color in rows  : : : record numbers are not in sequence to display alternate color.

    Post Author: SRK
    CA Forum: General
    Hi ,
      I am using  the following formula to display the alternate white and silver  background color in every reocrd but this does not work because the records numbers are not in sequence  for ex : its showing 54,56,58 which is not allowing the alternate color, Any advice.Thanks if   remainder(recordnumber,2) =0 then    crNoColorelse    Color (218,218,218); 

    Post Author: keiffer6
    CA Forum: General
    Could you simply add a running total for each record. That will give you the 1 2 3 4 5 6 ....
    Then in the details section color formula, use something like this:
    if RunningTotal Mod 2 = 0 then crSilver Else crNoColor.
    HTH

  • I have buy 4s it's unlocked and its working with different carriers in Bahrain but in Pakistan I try to use different carriers's sims but its showing sim is not valid , not compatible? any one please help me out this

    I have buy 4s it's unlocked and its working ok with different carriers in Bahrain, but in Pakistan I try to use different carriers's sims but its showing sim is not valid , not compatible? any one please help me out this?

    Try restoring the iPhone to factory settings. If you are having difficult restoring, put the iPhone into Recovery Mode and see if that then works:
    http://support.apple.com/kb/ht1808
    If not, or if a restore to factory settings does not fix the problem, then your iPhone may have a hardware problem. You can only get the iPhone serviced by Apple in Canada, so you will have to take the iPhone there or send it to someone you know in Canada who can get the iPhone serviced and send it back to you. The only option for getting service in Pakistan would be to pay some unauthorized repair shop to attempt a repair, after which Apple will no longer provide any service even in Canada.
    Regards.

  • PR NUMBERS ARE NOT IN SEQUENCE

    Hi ,
    We are facing an issue where Purchase requisition number created are not in sequence .
    For e.g.Purchase requisition number 30087027 has been raised on 22.11.2011 and today's (23.11.2011) created purchase requisition number is 30086998 and 30086999.
    So how this is happening .
    My first analysis put me towards the Buffering of serial number .
    Could you please guide me what will be the problem.
    Thanks,
    APR

    Dear,
    Kindly check the PR number ranges and the number ranges assign to the document  type.
    Then,
    This issue with the internal number range assignment occurs due to buffering in the application server.this can be adjusted using SNRO.
    Just access transaction SNRO and enter the object type BANF (no ranges for pr), in change mode , in the menu bar, please follow the path Edit---> Set up buffering ---> No buffering and save changes.
    Please also look at SAP NOTE 62077.
    Please also take care that the following situations
    - Gaps (jumps) occur when allocating internal numbers.
    - The status of the number range does not match the number last
    assigned.
    - The number assignment does not match the insert sequence.
    usually occurs due to buffering. Buffering increases the
    performance of the application, since a data base access is not required
    each time a posting is made, but it can cause jumps on the internal
    number assignment. This is usually not a problem, since number range
    buffering doesn't loose any guaranteed attributes. If your business
    requirements are that the internal numeration has to be continuous, you
    will have to disable buffering. In order to do this, please follow
    these steps:
    Menu path (or transaction SNRO):
    Tools -> ABAP/4 workbench -> Development -> Other tools -> Number ranges
    In the field "object" write "banf", select 'change' and deselect the
    'main memory buffering' flag.
    Please also see notes 62077 and the listing of related notes which may
    be relevant to your situation.
    According to the note
    Causes for having large jumps in your system can be following:
    - purchase requisitions are deleted
    - several application servers (each server has buffered numbers) and
    when system is stopped all buffered numbers are lost
    - when running MRP in parallel, each work process gets buffered with
    the number of "numbers" set up in SNRO for that number range
    Another consideration for the large consumption of number is the MRP
    setting for "Planning Mode". If this is set to "3" the system will
    replan every non-firmed purchase requisition and give it a new number
    It is recommended using planning mode 1 to minimize the impact on
    system resources.
    please see note 504200 that provides an explanation on
    how the system behaves for purchase requisitions created by the MRP.
    Hope this will solve your problem
    Thnks & regards
    Varun

  • Itunes - how do i select multiple line items not in sequence ?

    itunes - how do i select multiple line items not in sequence ?

    Hold down the Command key and click each in succession.
    To extend the selection across items that ARE contiguous, use the Shift key.

  • Photos not in sequence

    Is there any way that I can have my photos sort alphabetically using file names?
    I upload and realised that it is all mess up. I don't understand why it is not in sequence.

    If you have all your pics in one folder then open that folder and change the order of them.

  • Deleting multiple messages NOT IN SEQUENCE.....

    Does anyone know how to delete multiple messages at once that are not in sequence (for example, email #1, 3, and 5)?

    Unfortunatly, it's not possble on the BB.
    1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
    2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you!

  • Invoice creation in batch jobas are not in sequence

    Hello ,
    I schedule two batch job with diffrent variant at the same time. When invoices are created in batch job there numbers are not in sequence. If I check creation time then Invoice creation time of Invoice  number 2 is latter than invoice creation time of number5.
    As per number range concept Invoice 2 should create before Invoice 5.
    Why this is happening?
    Regards
    RDC

    >
    > Thanks for the soon reply but here my legacy system is File it is having the fields like INV details and country key and customer details these details i want to send it to Target Ecc system based on the country .
    Use File Adapter in sender side to read the data from Legacy System ,if the legacy system data format not XML then use File content conversion in Sender comuniction channel to convert in to XML.
    > for exp: If the country is Us then create the vendor invoice in the Ecc system , if the country is IND then check whether the existed customer in the ECC system or not if Existed then those details update into one more legacy system .
    >
      You have to perfrom RFC Lookup in mapping level if the coiuntry is IND,anyway you are on PI7.11 so you can perform RFC llok to check the it is existed customer or not. search in sdn for RFC look up.
    Finally use enhanced Receiver determination to determin receiver.
    search in sdn you will get it hot to determine dthe receiver...everything..
    the requirement not complex..
    Regards,
    Raj

  • Time lapse effect from video footage NOT from sequence of photographs?

    Hi forum,
    hard to find this with a search because most of the links are about using photo sequence.
    Which effect can make the appearance of time lapse movies using video footage not photo sequence. Preferably I would like to have control on the speed at different sections.

    If you want to simulate timelapse with standard video all you should have to do is speed up the footage. IOW, retime a 1 hour take to 10 seconds and it will look like timelapse.
    If you want to simulate long exposure timelapse (like where the lights of cars are streaks) then you have a lot more work to do. You'll need to use something like the Echo effect and then adjust the timing. It would help if we knew a little more about your project. I've been shooting timelapse for more than 40 years and I've used about 100 different techniques. It's hard to replicate all but one of them using a video camera.

  • How exclude multiple values which are not in sequence ( range )

    Hi Abapers,
    My Requiremnt is to exclude multiple values which are not in sequence  in selection screen.
    I want to restrict some values .
    please provide sample code.
    thanks & regards,
    Hari priya

    SELECT-OPTIONS : s_matnr FOR mara-matnr.
    INITILIZATION.
    s_matnr-sign = 'E'.  " E means Excluding.
    s_matnr-option = 'EQ'.
    s_matnr-low = '1000'.
    append s_matnr.
    s_matnr-sign = 'E'.
    s_matnr-option = 'EQ'.
    s_matnr-low = '1500'.
    append s_matnr.
    s_matnr-sign = 'E'.
    s_matnr-option = 'BT'.
    s_matnr-low = '2000'.
    s_matnr-high = '3000'.
    append s_matnr.
    START_OF_SELECTION.
    SELECT * FROM MARA INTO TABLE itab WHERE mara IN s_matnr.
    the above s_matnr has values 1000,1500, 2000 - 3000.
    so the above code fetches all the values excluding 1000,1500 and between 2000 and 3000.
    Regards
    Bala Krishna

  • Is null validation not working correctly

    I have an application in which I have created a data entry page. We are using apex version 3.0.1.00.08.
    I have an item whose source is a database column which has a select list associated with it, as I want to show the user that they have not yet picked anything from the select list i have the lov properties set as follows:
    display null = Yes
    null display value = Please select
    I also have a page processing validation to check that the user has entered a value. the code for this validation is as follows:
    if :P1_DATA_ITEM is null then
    return 'This value for this Item must be selected before this record can be saved to the database';
    else
    return null;
    end if;
    However on the save button if but the user not selected a value for P1_DATA_ITEM so it is still showing -- please select -- the validation does not fail and lets the user save the record. This is not the behaviour that I want as I am trying to trap the fact that the user has not selected a value.
    This seems to indicate that Apex thinks P1_DATA_ITEM is not null so i checked session state for this item and it is showing %null%.
    How can I get a select list to indicate that the user has not actually selected a value but also to validate correctly, how do I deal with items when their session state is %null%.
    The only way round this issue that I have found is to use a radio button because it is obvious that the user has not yet selected a value but I would prefer to use a select list as we will need to do the same thing for other fields where a radio button would be impractical. I also need to indicate to the user that they still have to pick a value for this field and if you do not set the proprerty display null to Yes then it looks to the user as though they have selected an item becuse the first value in the select list appears.
    Can anyone advise on this.
    Regards
    Kay

    Hi Kay...
    Patrick wolf came up with this excellent piece of code here on this forum (I'd reference it but I can't find it at the moment.
    Instead of checking for the %null% state of each select list item on every page you can use this application process to do the job for you...
    Create an Application process
    -) Name: APP_Remove_NULLS
    -) Sequence: 0 (should be a number before any of your page level processes)
    -) On submit: After Page Submission - Before Computations and Validations
    BEGIN
        FOR rItem IN
          ( SELECT ITEM_NAME
              FROM APEX_APPLICATION_PAGE_ITEMS
             WHERE APPLICATION_ID   = TO_NUMBER(:APP_ID)
               AND PAGE_ID          = TO_NUMBER(:APP_PAGE_ID)
               AND LOV_DISPLAY_NULL = 'Yes'
               AND LOV_DEFINITION   IS NOT NULL
               AND LOV_NULL_VALUE   IS NULL
        LOOP
            IF V(rItem.ITEM_NAME) = '%null'||'%'
            THEN
                Apex_Util.set_session_state(rItem.ITEM_NAME, NULL);
            END IF;
        END LOOP;
    /* if you have select lists in your page zero items, remove this comment
        FOR rItem IN
          ( SELECT ITEM_NAME
              FROM APEX_APPLICATION_PAGE_ITEMS
             WHERE APPLICATION_ID   = TO_NUMBER(:APP_ID)
               AND PAGE_ID          = 0
               AND LOV_DISPLAY_NULL = 'Yes'
               AND LOV_DEFINITION   IS NOT NULL
               AND LOV_NULL_VALUE   IS NULL
        LOOP
            IF V(rItem.ITEM_NAME) = '%null'||'%'
            THEN
                Apex_Util.set_session_state(rItem.ITEM_NAME, NULL);
            END IF;
        END LOOP;
    END;This is the first thing I do when I create a new application... It removes that whole '%null'||'%' can of worms in one go...
    Gus..

  • PI does not keep sequence of XSD for external definition

    Hi,
    currently I face following problem. I have an XSD which decribes a MSCONS market message that contains following sequence:
         <xs:complexType name="MSCONS">
              <xs:sequence>
                   <xs:element name="UNH" type="UNH"/>
                   <xs:element name="BGM" type="BGM"/>
                   <xs:element name="DTM" type="DTM"/>
                   <xs:element name="NAD" type="NAD" minOccurs="2" maxOccurs="2"/>
                   <xs:element name="UNS" type="UNS"/>
                   <xs:element name="NAD" type="NAD" maxOccurs="unbounded"/>
                   <xs:element name="CNT" type="CNT" minOccurs="0" maxOccurs="99"/>
                   <xs:element name="UNT" type="UNT"/>
              </xs:sequence>
         </xs:complexType>
    There are 2 NAD elements, followed by an UNS element, followed by an NAD element again. When I upload that XSD to PI as an external definition, the message is described as:
    MSCONS     Message                         
    -> MSCONS     Element     MSCONS     1               Metered services consumption report message
    -> -> UNH     Element     UNH     1               
    -> -> BGM     Element     BGM     1               
    -> -> DTM     Element     DTM     1               
    -> -> NAD     Element     NAD     1..unbounded               
    -> -> UNS     Element     UNS     1               
    -> -> CNT     Element     CNT     0..99               
    -> -> UNT     Element     UNT     1     
    All the NAD elements are summarized before UNS element. After mapping I will get an message which is not valid to XSD, because sequence is not correct.
    Does anyone knows a solution/workaround for that issue. Would appreciate you help.
    Thank you and Best Regards,
    Nico

    > All the NAD elements are summarized before UNS element. After mapping I will get an message which is not valid to XSD, because sequence is not correct.
    >
    > Does anyone knows a solution/workaround for that issue. Would appreciate you help.
    No. There is no way. The way how graphical mapping works internally makes it impossible to achieve your requirement.
    As work around use two different nodes NDA and NAD1 and rename it with a simple Java mapping as second mapping step.

  • Schema validation not enforcing full datetime or timezone formats

    We have a schema definition which requires that all date elements are in the format YYYY-MM-DDTHH:MM:SSZ (eg 2010-06-05T05:26:59Z),
    so to register this in Oracle we have added xdb:SQLType="TIMESTAMP WITH TIME ZONE" against the date elements.
    However if a date contains a value in YYYY-MM-DD format, then the schema passes validation in Oracle. This is incorrect as the same
    xml fails validation in Altova XMLSpy. [http://www.w3schools.com/schema/schema_dtypes_date.asp] confirms that all components of the date
    format are required.
    To illustrate my point:
    SQL*Plus: Release 10.2.0.1.0 - Production on Tue Oct 5 11:19:15 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> DECLARE
    2 xmlschema CLOB := '<?xml version="1.0" encoding="UTF-8"?>
    4 <xs:schema xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
    5 <xs:complexType name="dateTypes" mixed="true" xdb:SQLType="DATES_T">
    6 <xs:sequence>
    7 <xs:element name="date" type="xs:date"/>
    8 <xs:element name="dateTime" type="xs:dateTime"/>
    9 <xs:element name="timestamp" type="xs:dateTime" xdb:SQLType="TIMESTAMP WITH TIME ZONE"/>
    10 </xs:sequence>
    11 </xs:complexType>
    12 <xs:element name="Test" type="dateTypes" xdb:defaultTable="DATE_TABLE"/>
    13 </xs:schema>' ;
    14 BEGIN
    15 dbms_xmlschema.registerSchema (schemaURL => 'Testdate.xsd',
    16 schemaDoc => xmlschema,
    17 local => TRUE,
    18 genTypes => TRUE,
    19 genBean => FALSE,
    20 genTables => TRUE);
    21 END;
    22 /
    PL/SQL procedure successfully completed.
    SQL> DECLARE
    2 xmlfile XMLTYPE := xmltype('<Test>
    3 <date>2010-06-05</date>
    4 <dateTime>2010-06-05T05:26:59</dateTime>
    5 <timestamp>2010-06-05T05:26:59Z</timestamp>
    6 </Test>') ;
    7 BEGIN
    8 xmlfile := xmlfile.createSchemaBasedXML ('Testdate.xsd');
    9 xmlfile.schemaValidate ();
    10 END;
    11 /
    PL/SQL procedure successfully completed.
    SQL> SQL> DECLARE
    2 xmlfile XMLTYPE := xmltype('<Test>
    3 <date>2010-06-05</date>
    4 <dateTime>2010-06-05</dateTime>
    5 <timestamp>2010-06-05</timestamp>
    6 </Test>') ;
    7 BEGIN
    8 xmlfile := xmlfile.createSchemaBasedXML ('Testdate.xsd');
    9 xmlfile.schemaValidate ();
    10 END;
    11 /
    PL/SQL procedure successfully completed.
    The latter xml should fail. Validating this in XMLSpy it gives the error:
    Value '2010-06-05' is not allowed for element <dateTime>.
         Hint: A valid value would be '2001-12-17T09:30:47Z'.
         Error location: Test / dateTime
         Details
              cvc-datatype-valid.1.2.1: For type definition 'xs:dateTime' the string '2010-06-05' does not match a literal in the lexical space of built-in type definition 'xs:dateTime'.
              cvc-simple-type.1: For type definition 'xs:dateTime' the string '2010-06-05' is not valid.
              cvc-type.3.1.3: The normalized value '2010-06-05' is not valid with respect to the type definition 'xs:dateTime'.
              cvc-elt.5.2.1: The element <dateTime> is not valid with respect to the actual type definition 'xs:dateTime'.
    Is there any way to enforce validation of the full format?
    We are running Oracle 10.2.0.4 on Linux.
    Jon

    SQL> sho user
    USER is "OTN"
    SQL> desc date_table
    Name                                      Null?    Type
    TABLE of SYS.XMLTYPE(XMLSchema "Testdate.xsd" Element "Test") STORAGE Object-relational TYPE "DATES_T"
    SQL> desc "DATES_T"
    "DATES_T" is NOT FINAL
    Name                                      Null?    Type
    SYS_XDBPD$                                         XDB.XDB$RAW_LIST_T
    date                                               DATE
    dateTime                                           TIMESTAMP(6)
    timestamp                                          TIMESTAMP(6) WITH TIME ZONE
    SQL> DECLARE
      2    xmlfile XMLTYPE := xmltype('<Test xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      3                   xsi:noNamespaceSchemaLocation="Testdate.xsd">
      4                      <date>2010-06-05</date>
      5                      <dateTime>2010-06-05</dateTime>
      6                      <timestamp>2010-06-05</timestamp>
      7                      </Test>') ;
      8  BEGIN
      9      xmlfile.schemaValidate ();
    10 END;
    11 /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.00
    SQL> DECLARE
      2    xmlfile XMLTYPE := xmltype('<Test xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      3                   xsi:noNamespaceSchemaLocation="Testdate.xsd">
      4                      <date>2010-06-05</date>
      5                      <dateTime>2010-06-05</dateTime>
      6                      <timestamp>2010-06-05</timestamp>
      7                      </Test>') ;
      8  BEGIN
      9      insert into date_table
    10      values
    11      (xmlfile);
    12  END;
    13 /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.00
    SQL> select * from date_table;
    SYS_NC_ROWINFO$
    <Test xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchem
    aLocation="Testdate.xsd"><date>2010-06-05</date><dateTime>2010-06-05T00:00:00.00
    0000</dateTime><timestamp>2010-06-05T00:00:00.000000+00:00</timestamp></Test>
    SQL>DECLARE
      2    xmlfile XMLTYPE := xmltype('<Test xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      3                                xsi:noNamespaceSchemaLocation="Testdate.xsd">
      4                               <date>2010-06-05</date>
      5                               <dateTime>2010-06-05T05:26:59</dateTime>
      6                               <timestamp>2010-06-05T05:26:59Z</timestamp>
      7                               </Test>') ;
      8  BEGIN
      9      insert into date_table
    10      values
    11      (xmlfile);
    12 END;
    13 /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.00
    SQL>  select * from date_table;
    SYS_NC_ROWINFO$
    <Test xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchem
    aLocation="Testdate.xsd"><date>2010-06-05</date><dateTime>2010-06-05T00:00:00.00
    0000</dateTime><timestamp>2010-06-05T00:00:00.000000+00:00</timestamp></Test>
    <Test xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchem
    aLocation="Testdate.xsd"><date>2010-06-05</date><dateTime>2010-06-05T05:26:59.00
    0000</dateTime><timestamp>2010-06-05T05:26:59.000000+00:00</timestamp></Test>
    Elapsed: 00:00:00.01Edited by: Marco Gralike on Oct 5, 2010 5:40 PM

  • Tabular Form Validation not working in tabular form APEX 4.0

    Hi,
    I am using APEX 4.0. I have a tabular form with Tabular form validation done with it.
    Item not null is the validation.. so if I dont type any value in the any of the fields in the tabular form and press the Submit button, the first time error is shown... but when I click the Submit button again, with still the empty rows the page is submitted.
    How to resolve this issue?
    Edited by: Suzi on Oct 5, 2010 11:13 AM

    Look at this thread - Re: Validations of tabular forms in 4.0

Maybe you are looking for