How to validate a date in a validation script

I have a date field for which I have set a validation pattern using its Object palette i.e. Object > Value tab > Validation Pattern > Validation tab. The validation pattern I have there is simply 'date{YYYY-MMM-DD}' with an error message set in the Validation Pattern Message box.
How do I perform this same validation using a javascript in the Validation event?
I'd like to use a script instead so that I can better control when this validation will be performed.
Thanks!!
Marc

Marc:
If your field has a display picture clause, then you can detect if it formatted correctly by looking at field.formattedValue
Specifically, if the value cannot be formatted, the formattedValue will be the same as the rawValue (unformatted).
So a validation script that specifies:
this.formattedValue !== this.rawValue;
should detect invalid dates.
See: http://blogs.adobe.com/formfeed/2011/06/understanding-field-values.html
good luck
  John

Similar Messages

  • How to validate the dates in the table control ?

    How to validate the dates in the table control ?
    Can I write like this ?
    LOOP AT it_tab .
    CHAIN.
    FIELD : it_tab-strtdat,it_tab-enddat.
    module date_validation.
    ENDCHAIN.
    ENDLOOP.
    Module Date_validation.
    ranges : vdat type sy-datum.
    vdat-sign = 'I'.
    VDAT-LOW = it_tab-STRTDAT.
    VDAT-HIGH = it_tab-ENDDAT.
    VDAT-OPTION = 'BT'.
    APPEND VDAT.
    WHAT CODE I have to write here to validate ?
    and If I write like this How can we know which is the current row being add ?
    It loops total internal table ..?
    Bye,
    Muttu.

    Hi,
    I think there is no need to put chain endchain.
    To do validation you have to write module in PAI which does required validations.
    Thanks
    DARSHAN PATEL

  • How to validate a date in message mapping

    Hi experts,
                    how to validate a date in message mapping. For ex:  if date comes as 2008/02/31, then file it shold not get processed.how to achieve this in message mapping. Please help .
    Thanks&Regards,
    Reyaz Hussain

    Hi,
    There are few simple ways for date validation as follow,
    1.If you would like to handle it in XI only, then in message mapping you could verify about it with the help of generating smart exception.
    For e.g in mapping there is one Date conversion API i.e. somthing DateTransformation It converts the incoming date format to required format. Here give the date format i.e expected from Sender File.
    If in case the format miss-matched then it will create the exception.
    You could handle this exception with the use of [Alert notification|http://help.sap.com/saphelp_nw04/helpdata/en/2c/abb2e7ff6311d194c000a0c93033f7/frameset.htm] and could be even able to notify to sender system about it.
    2. The another solution is easy for SAP synchornous communication --If you are passing the file data to SAP, then you could use below function modules to verify date format in receiver RFC/BAPI or inbound IDOC program. If the sy-subrc is not 0 then don't process further.
    CONVERT_DATE_FORMAT
    ISU_DATE_FORMAT_CHECK
    Thanks
    Swarup

  • Who can tell how to validate a date in poor java?

    My programm can let user to input date in the default dateformat. Before save it to database I'd validate if the input is valid date. buf I can't find any function to do it both in java.util.Date and java.sql.Date, my program is as follow:
    DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT); // in default Locale
    java.util.Date testdate;
    input = jtfInDate.getText().trim();
    if(!input.equals("")) {
    try {
    testdate = df.parse(input);
    } catch(ParseException pe) {
    JOptionPane.showMessageDialog(this,
    "<html><font color=red size=4>invalid date format</font></html>",
    "warning",
    JOptionPane.WARNING_MESSAGE);
    return false;
    System.out.println("indate" +testdate);
    If I input "dafafa" in the jtfInDate(is a JTextField),the DateFormat can detect that's invalid and throw ParseException. But when I input "9999-99-99", the DateFormat can parse it without Exception!!!
    and print out as "indate=Thu Jun 07 00:00:00 CST 10007", year 10007!!!!
    "9999-99-99" is obviously a invalid date format. Why DateFormat.parse() can think is OK?
    Is this the java's excellency????
    Could anyone tell me how to judge a string of date is valid?

    You can use the setLenient method to tell the DateFormat object to stop trying to help you out, this should go some way toward getting you where you need to go. Check the API docs out for that.
    Good Luck
    Lee
    PS: don't mind esran, he's not the sharpest tool in the shed, and is likely still trying to figure out the mess he documented in this thread:
    http://forum.java.sun.com/thread.jsp?thread=519291&forum=31&message=2479820
    So, I suppose a little slack is warrented

  • How to validate LOV data

    Hi,
    how to validate lov feild data ??
    Requirement is my page have 2 lov feilds, It is a dependent lov.
    The feilds will not allow the invalid data in lov feilds when i click on 'save' button. Then i need to display a message "select valid values in lov feilds".
    Can anyone help me on this req....
    Thanks
    Edited by: 926074 on Apr 12, 2012 1:23 PM

    Hi niranj,
    I am using submit button.
    All the properties what u r said exactly same. But it is not working
    PG.xml code
    <?xml version="1.0" encoding="UTF-8" ?>
    - <!-- dbdrv: exec java oracle/jrad/tools/xml/importer XMLImporter.class java &phase=dat+24 checkfile:~PROD:~PATH:~FILE &fullpath:~PROD:~PATH:~FILE -username &un_apps -password &pw_apps -dbconnection &jdbc_db_addr -userId "1" -rootPackage /oracle/apps/~PROD -rootdir &fullpath:~PROD:mds:directory
    -->
    - <page xmlns:jrad="http://xmlns.oracle.com/jrad" xmlns:oa="http://xmlns.oracle.com/oa" xmlns:ui="http://xmlns.oracle.com/uix/ui" version="9.0.3.8.12_1330" xml:lang="en-US" xmlns:user="http://xmlns.oracle.com/jrad/user" xmlns="http://xmlns.oracle.com/jrad" file-version="$Header$">
    - <content>
    - <oa:pageLayout id="MainRN" amDefName="wnsgs.oracle.apps.sysadmin.requestforaccess.server.RequestforAccessAM" windowTitle="Create New Responsibility" title="Create New Responsibility" controllerClass="wnsgs.oracle.apps.sysadmin.requestforaccess.webui.RequestAccessDetailsCO">
    - <ui:corporateBranding>
    <oa:image id="corporateBrandingImage" source="/OA_MEDIA/FNDSSCORP.gif" />
    </ui:corporateBranding>
    - <ui:contents>
    - <oa:advancedTable id="ResultsAdvTable" viewName="RequestAccessDetailsVO1">
    - <ui:contents>
    - <oa:column id="column4">
    - <ui:columnHeader>
    <oa:sortableHeader id="sortableHeader4" prompt="Request ID" />
    </ui:columnHeader>
    - <ui:contents>
    <oa:messageTextInput id="RequestId" viewAttr="RequestId" readOnly="true" dataType="NUMBER" />
    </ui:contents>
    </oa:column>
    - <oa:column id="column1" width="75%">
    - <ui:columnHeader>
    <oa:sortableHeader id="sortableHeader1" prompt="Application Name" cellNoWrapFormat="true" abbreviation="" />
    </ui:columnHeader>
    - <ui:contents>
    - <oa:messageLovInput id="ApplicationName" viewAttr="ApplicationName" readOnly="false" maximumLength="100" columns="60" unvalidated="false" required="no" queryable="true">
    - <lovContents>
    - <oa:listOfValues id="region5" amDefName="wnsgs.oracle.apps.sysadmin.requestforaccess.server.RequestforAccessAM">
    - <ui:contents>
    - <oa:table name="region5" id="ApplicationNamepoplistVO1">
    - <ui:contents>
    <oa:messageStyledText id="ApplicationName1" dataType="VARCHAR2" prompt="ApplicationName" viewName="ApplicationNamepoplistVO1" viewAttr="ApplicationName" maximumLength="240" queryable="true" selectiveSearchCriteria="false" required="no" />
    </ui:contents>
    </oa:table>
    </ui:contents>
    </oa:listOfValues>
    </lovContents>
    - <lovMappings>
    <lovMap id="lovMap1" resultTo="ApplicationName" lovItem="ApplicationName1" criteriaFrom="ApplicationName" useForValidation="default" requiredForLOV="false" />
    <lovMap id="lovMap3" lovItem="ApplicationName1" resultTo="link" useForValidation="default" requiredForLOV="false" />
    </lovMappings>
    </oa:messageLovInput>
    </ui:contents>
    </oa:column>
    - <oa:column id="column2">
    - <ui:columnHeader>
    <oa:sortableHeader id="sortableHeader2" prompt="Responsibility Name" cellNoWrapFormat="true" />
    </ui:columnHeader>
    - <ui:contents>
    - <oa:messageLovInput id="ResposibilityName" viewAttr="ResponsibilityName" columns="60" unvalidated="false" required="no" disabled="false" tipType="none" readOnly="${oa.DisableFeildPVO1.xxdisable}" rendered="true">
    - <lovContents>
    - <oa:listOfValues id="region6">
    - <ui:contents>
    - <oa:table name="region6" id="ResponsibilitypoplistVO1">
    - <ui:contents>
    <oa:messageStyledText id="ResponsibilityName" dataType="VARCHAR2" prompt="ResponsibilityName" viewName="ResponsibilitypoplistVO1" viewAttr="ResponsibilityName" maximumLength="100" queryable="true" required="no" />
    <oa:messageStyledText id="ApplicationName2" dataType="VARCHAR2" prompt="ApplicationName" viewName="ResponsibilitypoplistVO1" viewAttr="ApplicationName" maximumLength="240" />
    </ui:contents>
    </oa:table>
    </ui:contents>
    </oa:listOfValues>
    </lovContents>
    - <lovMappings>
    <lovMap id="lovMap2" lovItem="ResponsibilityName" resultTo="ResposibilityName" criteriaFrom="ResposibilityName" useForValidation="default" requiredForLOV="false" />
    <lovMap id="lovMap4" lovItem="ApplicationName2" criteriaFrom="link" useForValidation="default" requiredForLOV="false" />
    </lovMappings>
    </oa:messageLovInput>
    </ui:contents>
    </oa:column>
    - <oa:column id="column3">
    - <ui:columnHeader>
    <oa:sortableHeader id="sortableHeader3" prompt="Delete" />
    </ui:columnHeader>
    - <ui:contents>
    - <oa:image id="Delete" source="deleteicon_enabled.gif" prompt="delete" imageHeight="24" imageWidth="24">
    - <ui:primaryClientAction>
    - <ui:fireAction event="delete">
    - <ui:parameters>
    <ui:parameter key="Requestid" value="${oa.RequestAccessDetailsVO1.RequestId}" />
    </ui:parameters>
    </ui:fireAction>
    </ui:primaryClientAction>
    </oa:image>
    </ui:contents>
    </oa:column>
    <oa:formValue id="link" viewAttr="ApplicationName" />
    </ui:contents>
    - <ui:tableActions>
    - <oa:flowLayout id="region4">
    - <ui:contents>
    <oa:submitButton id="AddRow" text="Add Another Row" prompt="Add Another Row" />
    </ui:contents>
    </oa:flowLayout>
    </ui:tableActions>
    </oa:advancedTable>
    - <oa:rowLayout id="region3">
    - <ui:contents>
    <oa:submitButton id="Save" text="Save" prompt="Save" disabled="false" />
    <oa:spacer id="item1" width="5" />
    <oa:submitButton id="Submit" text="Submit" prompt="Submit" />
    <oa:spacer id="item2" width="5" />
    <oa:submitButton id="Home" text="Go to Home" prompt="Go to Home" />
    </ui:contents>
    </oa:rowLayout>
    <oa:formValue id="requestid" viewName="RequestforAccessHeadersVO1" viewAttr="RequestId" />
    <oa:formValue id="UserID" viewName="RequestforaccessVO1" viewAttr="EmployeeNumber" />
    </ui:contents>
    </oa:pageLayout>
    </content>
    </page>
    Thanks
    Edited by: 926074 on Apr 16, 2012 6:21 PM

  • How to validate when date format is diff Internally and externally

    Hello,
    How can I validate the Date format if Internal format and external format is different.
    Ex :
    *  SELECT SINGLE CRTSP
    **                FROM /SAPSLL/PR
    **                INTO L_CRTSP
    **                WHERE CRTSP IN S_CRTSP .
    CRTSP (YYYY/DD/MM HHMMSEC) Internal Format
    S_CRTSP (YYYY/DD/MM) External format - selection option
    I had done following to convert the internal format to external format.
    DATA : LV_DT TYPE STRING.
    DATA :  L_CRTSP TYPE /SAPSLL/CRTSP.
    SELECT SINGLE CRTSP
                    FROM /SAPSLL/PR
                    INTO L_CRTSP.
    MOVE : L_CRTSP TO LV_DT. "(YYYY/DD/MM HHMMSEC)
    L_LEN = STRLEN( LV_DT ).
    L_DATE = LV_DT+0(8).
    I have the date format that i need in L_DATE."  (YYYY/DD/MM)
    Now how should I validate?
    *  SELECT SINGLE CRTSP
    **                FROM /SAPSLL/PR
    **                INTO L_CRTSP
    **                WHERE CRTSP IN S_CRTSP .
    Please let me know how can I validate or how can I write the select query to validate this field.
    There should be some way using Wildcard or some function module...which I am not sure...
    Any suggestions will be appreciated!
    Regards,
    Kittu
    Edited by: Kittu on Jan 6, 2009 12:58 PM

    Hello,
    Thank you for youe response and I apprecaite the help so far.
    This logic work if it is Parameter...When I have select option it is not working as it is not taking the range values...
    SELECT GUID_PR "Primary Key as GUID in "RAW" Format
    CRTSP "PRODUCT CREATED ON
    CHTSP "PRODUCT CHANGED ON
    FROM /SAPSLL/PR
    INTO TABLE T_PR.
    DATA : T_PR1 TYPE TY_PR OCCURS 0 WITH HEADER LINE.
    DATA:  W_TEST    TYPE STRING,
           W_LV_LEN  TYPE I,
           W_LV_LEN1 TYPE I,
           W_LV_DATE(20)  TYPE C,
           W_LV_DATE1(20) TYPE C.
    DATA : W_V(8) TYPE C,
           S_CT(11) TYPE C.
    SORT T_PR BY CRTSP CHTSP.
    LOOP AT T_PR INTO WA_PR.
      W_TEST = WA_PR-CRTSP.
      W_LV_LEN = STRLEN( W_TEST ).
      W_LV_DATE = W_TEST+0(8).
    ** IF WE SELECT ONLY ONE DATE IN SELECT OPTION
    s_crtsp VALUE IS - IEQ20040101..bY REMOVING FIRST THRID DIGITS
    WE ARE GETTING THE S_CRTSP VALUE IS 20040101 AND THIS LOGIC IS WORKING FINE..
       MOVE S_CRTSP TO S_CT.
      W_LV_LEN1 = STRLEN( S_CT ).
      W_LV_DATE1 = S_CT+3(8).
    *  IF W_LV_DATE NE S_CRTSP
    IF W_LV_DATE NE W_LV_DATE1.
      W_FLG = 'X'.
        DELETE T_PR INDEX SY-TABIX.
      ENDIF.
      CLEAR W_FLG.
    ENDLOOP.
    Can we do anything for this...
    ANy suggestions would be apprecaited!
    Regards,
    Kittu

  • How to validate the data in the table

    Hi Experts,
    My question is
    I am having a table control on my view. I need to validate the data entered by the user on the table
    and after validation i need to save the data into database table.
    Now my question is only related to Data Validation on table UI element.
    If the user enters 3 rows and if the 2nd and 3rd row are already existing,
    It should throw the message Entry already exists and the pointer should
    be at Row number 2 in this case.
    Similarly in the 2nd row i have a date field and if the user enters some character
    then it should throw an error message that Numeric values are only allowed and
    the pointer is placed in the 2nd row Date column so that it allows user to modify
    the wrong entry.
    Please advise.
    Regards,
    Chitrasen

    Hi,
    for validating user input in table , you have to get the entries inserted by user into an internal table using get_static_attribute_table and futher have your check using loop endloop.
    For date field, make the context attribute binded to date column as DATS. This would make sure the user inputs a valid date without your custom code.

  • How to validate the date in my class

    Hi
    In my project with jsp and struts I need to validate the date field.
    So in the action class I want to validate the date that is the date is in dd/mm/year format?
    can anybody please give some idea to do this?
    Thank you so much.

    Here is a method that validates day/month/year using the Calendar class.
         public boolean validateDate(int day, int month, int year) {
              try {
                   Calendar cal = Calendar.getInstance();
                   cal.clear();
                   cal.setLenient(false);
                   cal.set(year, month-1, day);
                   // need to call getTime() to make the calendar compute/validate the date
                   cal.getTime();
                   return true;
              catch (IllegalArgumentException e) {               
                   return false;
         }

  • How to validate password using LDAP using client script JSOM

    Hi All,
    I have a requirement in my sharepoint 2013 project. I need to force user to signature digitally by reentering his password so that the system will validate his user name and password. If its validated user can access that document.
    For this, can we use any JSOM funnctions to access LDAP and validate the password ?  Can anyone help with possible approaches I can take for achieving this functionality ?
    Thanks in advance.
    Regards
    Nimisha

    Hi Nimisha,
     Thanks. Got your requirement, if you validate user credentials using client side script, it can be security breach. Because the password can be accessible by other user.
    I would suggest you to go with server side.
    Still you would like to go with client side script please refer the below link
    http://sharepoint.stackexchange.com/questions/79803/how-to-authenticate-user-in-sharepoint-online-using-javascript
    Sekar - Our life is short, so help others to grow
    Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever you
    see a reply being an answer to the question of the thread, click "Mark As Answer

  • How to pass idoc parameters in a validation script? (10gR3 site studio)

    Obviously idoc won't work in the actual validation script, so I'd like to use it to generate the parameters to pass to a custom function.
    If I add <!--$siteId--> as a parameter in design mode, it'll be added as: &amp;lt;!--$siteId--&amp;gt; which doesn't work.
    If I manually add <!--$siteId--> to the parameter code in Source mode, this works just fine. However, once I enter design mode, Designer strips it out and now I have no parameter.
    Is there any way to somehow escape the less than/greater than symbols in Design mode?
    It's really unfortunate how the contributor windows are static HTML pages that don't retain what site they're on. Maybe this has changed in the 10gR4.

    Sorry I don't have an answer for you, but I wanted to say that we have had problems with Design mode in general and don't use it anymore. Switching between Source and Design has cause multiple errors in our Site Studio template. We do all of our Designer editing in Source mode. Any actual design work is done in an external editor and the HTML source is then brought over into Site Studio in Source mode.
    I was disappointed when 10gR4 came out and Oracle said they did no significant changes (improvements) to Site Studio Designer application.

  • How to validate a date item  "DD/MM/YYYY HH24:MI" ?

    Hi,
    I want to create a validation item. I have a date item usinhg this mask : "DD/MM/YYYY HH24:MI".
    I want to validate if a date entered according to this syntax "DD/MM/YYYY HH24:MI"
    Unfortunately APEX gives me only the choice to validate if a date is under the form "DD/MM/YYYY" which gives this syntax :
    ^([012]?[[:digit:]]|3[01])/(0?[[:digit:]]|1[012])/[[:digit:]]{4}$I don't know this syntax, do you know how I could transform it (I mean adding the hours and minutes criteria) to attain my goal ?
    Sorry for my english, not perfect, today !
    Regards,
    Christian

    Try this:
    SELECT REGEXP_INSTR('04-OCT-2011 23:12',
    '^([012]?[[:digit:]]|3[01])-(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)-[[:digit:]]{4}[[:space:]][0-2][0-9]:[0-9][0-6]$') test_result
    FROM dualFor case-insenstive matching, use below:
    SELECT REGEXP_INSTR('04-OCT-2011 23:12',
    '^([012]?[[:digit:]]|3[01])-(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)-[[:digit:]]{4}[[:space:]][0-2][0-9]:[0-9][0-6]$',1,1,0,'i') test_result
    FROM dualThanks!
    JMcG

  • How to validate a date with time

    Hi All,
    How can I validate date with time?
    Here is my code:
    var tempDate:Date = new Date();
    if (tempDate < '09/18/2012 7:30:00 AM'){
         doSomething
    Thanks in advanced

    I think i got it to work.
    var tempDate:Date = new Date();
    var oldDate:Date = new Date('09/18/2012 7:30:00 AM');
    if ( Number(tempDate) < Number(oldDate) ){
         doSomething
    Best,

  • How to validate a date field

    actually i am getting a date string from the user.i want compare with the previousdate and i have to display a alert if the entered date is previous date.pls give me some example coding for this process

    Hi, i had tried in the way you suggested but couldn't get it right. Also i dont want much complexity to be added to this validation purpose.So i just want to do it in the java script and i think there will be no problems with the browser settings.
    What i need is i just want to validate whether the date entered into that textbox is in yyyy-mm-dd format. Also in the mysql database i am using the date will be entered in the yyyy-mm-dd format and i saw somewhere in the forum that while validating in javascript it is not possible to give in yyyy-mm-dd format i.e., it doesnot identify the hyphen and only slash needs to be given. So what should i do for this validation to be perfect.This should be simple with little complexity and accurate.Can anyone give me the suggestion regarding it. or if possible the sample code.I need it very urgent.

  • How to validate a date in xquery transformation

    i am doing the xquery transformation for mfl(non-xml) and xml
    i have a date-pickup and i should validate this field as my datatype is date , instead of date i am getting the data as 00000000 ,my date-pickup format is yyyymmdd
    can we do a validation for this specific field and all the failed date validations should be written as blank tag in xsd
    Please give me a suggestion for this

    Hi,
    There's a xquery extension function that you can use for that
    fn-bea:date-from-string-with-format
    The fn-bea:date-from-string-with-format() function returns a new date value from a string source value according to the specified pattern.
    The function has the following signature:
    fn-bea:date-from-string-with-format($format as xs:string?, $dateString as xs:string?) as xs:date?
    where $format is the pattern and $dateString is the date. For more information about specifying patterns, see Date and Time Patterns.
    Examples:
    fn-bea:date-from-string-with-format("yyyy-MM-dd G", "2005-06-22 AD") returns the specified date in the current time zone.
    fn-bea:date-from-string-with-format("yyyy-MM-dd", "2002-July-22") generates an error because the date string does not match the specified format.
    fn-bea:date-from-string-with-format(“yyyy-MMM-dd”, “2005-JUL-22”) returns the specified date in the current time zone.
    http://docs.oracle.com/cd/E13162_01/odsi/docs10gr3/xquery/extensions.html#wp1297249
    Cheers,
    Vlad
    It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts)
    https://forums.oracle.com/forums/ann.jspa?annID=893

  • How to validate a date in date picker

    Dear All,
    ADF BC and ADF faces page, in the page there is a date picker field where i need to apply validation(i.e. select date is greater than the sysdate), i added a validation in the entity object on the corresponding field, using a compare validator, operator: Less Than, compare with: Query Result, sql statement: select sysdate from dual
    when the page is commited, i got the following errors, anybody any idea? thank you!
    07/09/03 18:18:32 [584] oracle.jbo.common.JboAssert: (Assertion Failed)
         at oracle.jbo.common.Diagnostic.ASSERT(Diagnostic.java:303)
         at oracle.jbo.common.Diagnostic.ASSERT(Diagnostic.java:338)
         at oracle.jbo.server.util.Variant.compareTo(Variant.java:1225)
         at oracle.jbo.server.rules.JboCompareValidator.validateValue(JboCompareValidator.java:171)
    07/09/03 18:18:32 [585] *** Using bean introspection to lookup value :currentRowIndexInRange
    03-sep 18:18:32 DEBUG (JhsPageLifecycle) -executing processModelUpdaters
    03-sep 18:18:32 DEBUG (JhsCollectionModel) -DocumentsCollectionModel: Executing processNewRows
    03-sep 18:18:32 DEBUG (JhsCollectionModel) -DocumentsCollectionModel: DocumentsTable new row 0 ignored, no attributes updated.
    03-sep 18:18:32 DEBUG (JhsPageLifecycle) -executing validateModelUpdates
    03-sep 18:18:32 DEBUG (JhsPageLifecycle) -executing onCommit
    07/09/03 18:18:32 [586] DCBindingContainer.reportException :oracle.jbo.TxnValException
    07/09/03 18:18:32 [587] oracle.jbo.TxnValException: JBO-27023: Valideren van alle rijen in een transactie is mislukt.
         at oracle.jbo.server.DBTransactionImpl.validate(DBTransactionImpl.java:4051)
         at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:1921)
    ## Detail 0 ##
    oracle.jbo.RowValException: JBO-27024: Valideren van rij met sleutel oracle.jbo.Key[382 ] van type Benchmarks is mislukt.
         at oracle.jbo.server.EntityImpl.validate(EntityImpl.java:1597)
         at oracle.jbo.server.DBTransactionImpl.validate(DBTransactionImpl.java:4031)
    ## Detail 0 ##
    oracle.jbo.AttrValException: JBO-27025: Valideren van attribuut EstimatedComplDate met waarde 2007-08-11 is mislukt.
         at oracle.jbo.server.AttributeDefImpl.validate(AttributeDefImpl.java:1954)
         at oracle.jbo.server.AttributeDefImpl.set(AttributeDefImpl.java:1866)
    P.S. some of the message are displayed in Dutch
    Message was edited by:
    Jerry Yang

    But first setLenient(false), because to my mind
    DateFormat it apt to be far too lenient
    tending to accept things like 30 Feb.A web banking application had setLenient(false). Customers would call support because they got an error message when they tried to get transaction statements for the whole month by entering April 1 - April 31.
    We changed to setLenient(true). Consider which leniency mode is right for you. And write better error messages than what we had...
    Maybe: if non-lenient fails, parse with lenient; if that succeeds, give a specific error message explaining the situation (or execute with the lenient date, and present results with a warning message "we made a guess at what you meant, check results").

Maybe you are looking for

  • Pages 08 will not open

    Pages 08 is very slow to open or will not open at all.  I am using OS X version 10.9.3 and having the same problem on my imac and macbook pro.

  • Need help connecting external monitor

    My brother needs help with connecting an external monitor to his 20" iMac G5. He has the adapter with the standard monitor port, and when plugged in, the monitor duplicates the iMac screen. His question is, how can he set it so that the desktop is ex

  • Problem for create report by sql query under Protal!

    I'm trying create report by sql query method, however it came out the error: ORA-00918: column ambiguously defined (WWV-11230) Failed to parse as SENTRYDB - select distinct t1.firstnames, t1.lastname, t4.PERSONGROUP, to_char( t1.dateofbirth, 'DD-MM-Y

  • Questions & answer type powerbuilder 12.5.2 classic tutorial

    Dear All, Can anybody give me any web link / tutorial / e-book regarding powerbuilder 12.5.2 classic where the information represented as questions & answer type. Thanks Avishek

  • Applications crash at launch

    I left my macbook air for a short while, came back and noticed a few applications I had open had all crashed giving the same error. Now I cannot launch them, the dock icon bounces once and they crash. I obviously rebooted and tried repairing permissi