Date Validation Problem

My Problem is during a transformation a field in the source table which is varchar2(6) is being populated into target table field whose data type is date. In the transformation they are checking if the source field is a valid date and only then they are populating that field to the target.
As it is done in Informatica they could easily finish the transformation with a built in function is_date.
How to do the same in Oracle. I just write simple SQL statements and test the data. I attempted to write it in the following way.
select key_field,to_Date(prcs_Date,'MMDDRR')
from table1
where Prcs_date is a valid date.
Please some one give an idea as it is very very urgent. I got struck up with this since last three hours

You can write your own is date function to check whether a value is a valid date.
See example below:
Good luck,
Jan-Marcel
=================================
create table test_data (col_1a number, col_2a varchar2(6));
insert into test_data (col_1a, col_2a) values (1, '011505');
insert into test_data (col_1a, col_2a) values (2, '021505');
insert into test_data (col_1a, col_2a) values (3, '031505');
insert into test_data (col_1a, col_2a) values (4, '041505');
insert into test_data (col_1a, col_2a) values (5, '051505');
insert into test_data (col_1a, col_2a) values (6, '061505');
insert into test_data (col_1a, col_2a) values (7, '071505');
insert into test_data (col_1a, col_2a) values (8, '081505');
insert into test_data (col_1a, col_2a) values (9, '081599');
-- invalid date format
insert into test_data (col_1a, col_2a) values (10, '150805');
insert into test_data (col_1a, col_2a) values (11, 'JAN105');
commit;
create table new_data (col_1b number, col_2b date);
create or replace function is_date(p_date in varchar2, p_date_format in varchar2)
return varchar2 is
l_date_check date;
begin
l_date_check := to_date(p_date, p_date_format);
return('TRUE');
exception
when others then
return('FALSE');
end;
insert into new_data
(col_1b
,col_2b)
select col_1
, to_date(col_2, 'MMDDRR')
from (select col_1a col_1
, col_2a col_2
from test_data
where is_date(col_2a, 'MMDDRR') = 'TRUE');
commit;

Similar Messages

  • Date Validation problem in form with report

    Hi,
    I am stuck on this date validation issue in a form with report that I am working on-
    I have an Active_date_start and an Active_date_end field. I want to validate the form in such a way that if the user enters the Active_date_end < active_date_start then it should error out appropriately asking to change the active_end_date . Also another problem is that the changes are made to the active_date_end they should reflect in the table. How do I accomplish this.
    Appreciate all the help offered.
    Thanks.

    Hi,
    Thanks for the code.Now the APPLY CHANGES works fine except that it throws an error when I change the end date to a date which is less than the start date . So it does show me my error and does not go further but also shows me the error -
    Invalid PL/SQL expression condition: ORA-06550: line 1, column 29: PLS-00306: wrong number
    or types of arguments in call to 'NVL' ORA-06550: line 1, column 7: PL/SQL: Statement
    ignored Invalid PL/SQL expression condition: ORA-06550: line 1, column 29: PLS-00306:
    wrong number or types of arguments in call to 'NVL' ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    I looked up the error number and it says its a generic error type where the error can be found on the line number specified. But in this case how and where do I look for the error line?. This is the code I am using-
    DECLARE
    vACTIVE_DATE_START DATE;
    vACTIVE_DATE_END DATE;
    BEGIN
    vACTIVE_DATE_START := TO_DATE(:P4_ACTIVE_DATE_START, 'DD/MM/YYYY');
    vACTIVE_DATE_END := TO_DATE(:P4_ACTIVE_DATE_END, 'DD/MM/YYYY');
    IF vACTIVE_DATE_END < vACTIVE_DATE_START THEN
    RETURN 'End date is before start date';
    ELSE
    RETURN NULL;
    END IF;
    END;
    My base table has the active_date_start as NOT NULL. Now I have the exact same code for APPLY CHANGES
    in other form and it works fine not giving the above error. I am at a loss to know how I can get rid of the error.
    Any suggestions!.
    Thanks in advance,
    A

  • Viewset - active view and data validation problem

    Hey there,
    I've a problem while using a viewset (1 col, 2 rows) and the data-validation in the wdDoBeforeAction() method.
    My application works basically like this:
    The first view is displayed with 2 mandatory input fields. Upon the evaluation result of the entered data in these fields, a corresponding second view will be displayed. The input fields in the first view are set to read only and a button named "Change" appears. This button triggers an action which fires and outbound-plug to an empty view, so that the second view disappears and resets the "read only" properties of the input fields in the first view, so that the user can enter new data.
    The problem is, that the second view contains input fields itself, which are validated in the wdDoBeforeAction() method of this view. The navigation is cancelled if an error occurs. Well, this is fine if i want to submit (pressing the button "Approve" in the second view) this data and proceed, but if i want to go back to the first view (by hitting the "Change" button), i want to discard all information entered in the second view and i dont want this data to be validated. It's quite annoying if u just want to correct the first views data but have to enter correct values for the second view in order to get through the second views checks..
    I hope that's clear enough, otherwise i will upload a screenshot to clarify.
    Thx in advance
    Regards
    Pascal

    Hi Pascal,
    although I wont prefer to do so for reasons of readability, you could use wdDoProcessbeforeAction to control your view-flow.
    Take a look at the example, I have two Buttons with two actions, one is set on "Validate", the other is not (guess which on is the validating ).
    You can get the action triggered inside the doBefore ... method and determine whether or not the checkbox is set.
    So put your code to validate the input in the i(isValidting) branch and your problems are solved.
    Keep in Mind: I would delegate the Validation from the view to the controller, handle the validation myself with custom coding and then check in the view controller if any errors occured.
    hope that helped,
    Jan
      //@@end
      public void wdDoBeforeAction(com.sap.tc.webdynpro.progmodel.api.IWDBeforeAction validation)
        //@@begin wdDoBeforeAction
           IWDAction currentAction = validation.getCurrentAction();
           if (currentAction == null) return;
           String action = currentAction.getText();
           boolean isValidating = currentAction.isValidating();
           if (isValidating) {
                wdComponentAPI.getMessageManager().reportException(action);
           } else {
                wdComponentAPI.getMessageManager().reportSuccess(action);
        //@@end
    Edited by: Jan Galinski (Holisticon) on Sep 8, 2009 3:15 PM

  • Date validation problem URGENT

    Hello
    I have ascreen with two selectInputDate fields, I want to add a validation, so the startDate should be before endDate of period,plz help

    Hi,
    I assume you are using 10g, since you mentioned "selectInputDate". Try this code below.
    <af:selectInputDate label="Start Date" id="startDate"
                        binding="#{Test1.startDate}"/>
    <af:selectInputDate label="End Date"
                        binding="#{Test1.endDate}">
      <af:validateDateTimeRange minimum="#{Test1.startDate.value}"/>
    </af:selectInputDate>The code above validates the rule only when you click an command button. If you want the validation to be enforced immediately upon selection, try this code below. It works but a Javascript error will be reported occasionally when you select the startDate.
    <af:selectInputDate label="Start Date" id="startDate"
                        binding="#{Test1.startDate}" autoSubmit="true"
                        partialTriggers="endDate"/>
    <af:selectInputDate label="End Date"
                        binding="#{Test1.endDate}" id="endDate"
                        autoSubmit="true" partialTriggers="startDate">
      <af:validateDateTimeRange minimum="#{Test1.startDate.value}"/>
    </af:selectInputDate>Regards,
    Chan Kelwin

  • Selection screen data validation problem

    Hello all,
    Transaction FBL3N has an authority check on company.  If the user enters a company for which they have no authority, a message displays and they can then exclude that company.  The following steps can be repeated as many times as are required to ensure that all selection-screen values can be used.  The program, RFITEMGL, is doing all of the authorization using the code of the logical database that is part of the program.
    I added the following logic in my program, which works fine, except when the entered values fail the authority check, I can't get off of screen 1000 and get to the sub-screen to exclude the unauthorized values unless I first change the range on screen 1000.
    For an example:
    If I enter range '100 ' through '900 ', and there is an unauthorized company, '200' in that range,  I can't add '200' as an excluded value without first changing the range to '100 ' to ' 199 ' on screen 1000.
    Any thoughts on a solution?  I tried looking at the logical database code without much success.
    at selection-screen on s_bukrs.
    check if person entering company has authority
    data: i_t001 type table of t001.
    data: w_t001 type          t001.
      select * from t001
               into table i_t001
               where bukrs in s_bukrs.
      loop at i_t001 into w_t001.
        authority-check object 'F_BKPF_BUK'
                    id 'BUKRS' field w_t001-bukrs
                    id 'ACTVT' field '03'.
        if sy-subrc ne 0.
          message e000(zf) with 'Company'
                              w_t001-bukrs
                              'not authorized'.
        endif.
      endloop.
    Thanks
    Bruce

    Hi,
    Yes this is normal way as you entered wrong value in s_bukrs unless and until you change that you cannot proceed further.
    instead of at selection-screen on s_bukrs.
    use at selection-screen.
    if s_bukrs is not initial.
    do processing .,
    and display info message'
    endif.
    or ., instead of error message  use dispaly like 'E'
    like.,
    at selection-screen on s_bukrs.
    check authority.,
    MESSAGE 'You are not Authorized to use the Company Code' type 'S' display like 'E'.
    hope this helps you,
    Thanks & Regards.

  • When I code script window.history.back(); /script on a page due to a data validation problem, all browsers except Firefox redisplay the filled-out form page.

    When I use javascript "window.history.back()" because a user enter invalid text, Firefox returns to the page with the form on it but it clears out the form. All the other browsers go back to the previous page with the form filled out as it was when submit was entered.
    Firefox did not used to do this. I do not change browser settings from default to get this unfortunate behavior. This may mean Firefox is more secure, but only on a public computer. On a private computer, this sucks.

    See if this helps you.
    https://developer.mozilla.org/en-US/docs/Web/API/Window.history
    If not, try posting at the Web Development / Standards Evangelism forum at mozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox.
    http://forums.mozillazine.org/viewforum.php?f=25
    You'll need to register and login to be able to post in that forum.

  • The timesheet creation failed, because of problems with the project I server or with data validation

    Hi,
    One of my user is facing issue in creating new time sheet,
    "The time sheet creation failed, because of problems with the project server or with data validations".
    This issue is coming to only few members out of 10000 members.
    Note: For the same user, can able to do in other machines. only the problem in his machine. Have ran the office diagnostics, but still the problem persists.
    Is any add-on's/any settings need to update in IE. Could any one please help me on how to fix this issue?
    Many thanks in advance.

    I would check the compatibility settings in IE etc, or try another browser (chrome, safari etc.)
    Ben Howard [MVP] | web |
    blog | book

  • Problem with date validation

    The enclosed trivial sample illustrates a problem I'm experiencing with validating dates
    The date field is initialized when the form opens.
    Once the form is open,  click the button and a popup appears saying there is a validation problem with the date field. Yet if the date is selected with the date selection widget the appearance is exactly the same, but without the validation problem. What's going on?

    OK, I've solved this, but I am hoping some kind person can tell me why I solved it.
    On the trivial form I enclosed before before, the "click" script used to say
    xfa.forms.recalculate(1);
    Now I've changed it to
    xfa.forms.recalculate (0);
    And I no longer see the undesired date validtion errors when I click the button. (See updated enclosure on this post).
    The difference is supposed to be that, if the parameter is 0 (or false) then only "pending" calculation scripts are fired, and if 1 (or true) then all calculation scripts are fired. So what does it mean to my DateTime field having unjust validation errors? The DateTime field has no calculation script, only an iitialize script.

  • Urgent--Problem in Date validations in Javascript.

    Hi ,
    I am facing problem in date validation in javascript.The requirement is my PO delivery date should be greater than my Sysdate.For that I wrote Javascript programme as below-
    function sysValidate(item){
                        var itemValue=item;
    // alert(itemValue);
    /* if((itemValue == '')||(itemValue == null))
    return false;
                        var today = new Date();
                        var sysDay = today.getDate();
                        var sysMonth = today.getMonth()+1;
                        var sysYear = today.getFullYear();
                        var fieldArray = itemValue.split("/");
                        var itemDay = parseInt(fieldArray[0]);
                        var itemMonth = parseInt(fieldArray[1]);
                        var itemYear = parseInt(fieldArray[2]);
    if(itemYear > sysYear)
    return false;
                        else{
                             if(itemYear < sysYear)
                                  return true;
                             else{
                                  if(itemMonth > sysMonth)
                                       return false;
                                  else{
                                       if(itemMonth < sysMonth)
                                            return true;
                                       else{
    if(itemDay >=sysDay)
    return false;
                                            else
    return true;
    Now inspit of my PO delivery date greater than sysdate ,while saving record I am getting Alert as Save denied as delivery date prior to sysdate
    The code for alert is as follows-
    if(sysValidate(exdate))
    alert("Save denied as delivery date prior to sysdate");
    bool=false;
    return bool;
    Plz,help.As this problem is occuring on Production Server due to this my suppliers can't save record.
    Vaish...

    hi Vaish,
    here is the code i have modified
    <script>
    function sysValidate(item){
    var itemValue=item;
    var fieldArray = itemValue.split("/");
    var today = new Date();
    var sysdate=new Date(today.getFullYear(),today.getMonth(),today.getDate(),0,0,0);
    var inputdate=new Date(parseInt(fieldArray[2]),parseInt(fieldArray[0])-1,parseInt(fieldArray[1]),0,0,0);
    alert("sysdate "+sysdate);
    alert("inputdate "+inputdate);
    days=Math.round((sysdate.getTime()-inputdate.getTime())/1000/60.0/60.0/24.0);
    if(days<=0)
         return true;
    else
         return false;
    </script>
    call the validate method form here :
    <script>
    if(sysValidate("07/24/2005"))
    alert("Save denied as delivery date prior to sysdate");
    else{
    alert("Saved successfully")
    }

  • Data Validation - a feature that Numbers really needs.

    Right now, the newly purchased Numbers app for iPad/iPhone is little more than a crippled document viewer for me because numbers doesn't support 'data validation' (as implemented in excel).
    Its not a hard concept and likely utilized in a LOT of spreadsheets on the planet.  Not supporting such a critical feature is a problem, as it makes numbers, at least for me, rather pointless as an authoring tool since I cannot change or update data in my worksheet without likely corrupting the document's data integrity.
    Hopefully, someone at Apple is working on fixing this.
    Given that one cannot use data validation - how do I lock down a spreadsheet so I don't accidentally change cell contents?
    The fact that there is no 'undo' button on the iPhone version that I do get on the iPad (same app) makes it worse.. I'm occasionally and unintentionally dragging selections of stuff around the page really hosing up the iPhone spreadsheet.
    So I need to just remember what needs to be updated, update the excel spreadsheet when I can, then delete the iWork-iCloud doc, upload the replacement, then refresh the iPhone/iPad version.. very cumbersome and not at all 'cloud-like' or usefull.
    Apple developers.. are you paying attention?

    Yeah I know that apple likely has the same system as Microsoft in sending general support to a forum such as this. And maybe thae same stupid moron that not paying attention to the forums if their users is a food idea.
    That doesn't change the point of the issue nor that apple directs ,e here to ask said question
    Written in the iPad split soft keypad that covers up the forum post I'm typing. Joy

  • Office install on Windows 8 - validation problem

    Help
    Bought Microsoft Office 2013 Professional but it said the License Key would be invalid; so I started googling and it says the License would have been blocked... 
    Diagnostic Report (1.9.0027.0):
    Windows Validation Data-->
    Validation Status: Validation unsupported OS
    Validation Code: 6
    Cached Online Validation Code: 0x0
    Windows Product Key: *****-*****-69KQ9-R2KM4-R3G7T
    Windows Product Key Hash: /PpmzPmeappbKdYFQmGkQT0cdQw=
    Windows Product ID: 00179-60314-62768-AAOEM
    Windows Product ID Type: 0
    Windows License Type: Unknown
    Windows OS version: 6.3.9600.2.00010300.0.0.101
    ID: {32B4D73F-E030-4DD0-B0E5-2A710C1D2A5C}(1)
    Is Admin: Yes
    TestCab: 0x0
    LegitcheckControl ActiveX: N/A, hr = 0x80070002
    Signed By: N/A, hr = 0x80070002
    Product Name: Windows 8.1
    Architecture: 0x00000009
    Build lab: 9600.winblue_gdr.131030-1505
    TTS Error: 
    Validation Diagnostic: 
    Resolution Status: N/A
    Vista WgaER Data-->
    ThreatID(s): N/A, hr = 0x80070002
    Version: N/A, hr = 0x80070002
    Windows XP Notifications Data-->
    Cached Result: N/A, hr = 0x80070002
    File Exists: No
    Version: N/A, hr = 0x80070002
    WgaTray.exe Signed By: N/A, hr = 0x80070002
    WgaLogon.dll Signed By: N/A, hr = 0x80070002
    OGA Notifications Data-->
    Cached Result: N/A, hr = 0x80070002
    Version: N/A, hr = 0x80070002
    OGAExec.exe Signed By: N/A, hr = 0x80070002
    OGAAddin.dll Signed By: N/A, hr = 0x80070002
    OGA Data-->
    Office Status: 111 Unsupported OS
    OGA Version: N/A, 0x80070002
    Signed By: N/A, hr = 0x80070002
    Office Diagnostics: 
    Browser Data-->
    Proxy settings: N/A
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Win32)
    Default Browser: C:\Users\Philipp\AppData\Local\Torch\Application\torch.exe
    Download signed ActiveX controls: Prompt
    Download unsigned ActiveX controls: Disabled
    Run ActiveX controls and plug-ins: Allowed
    Initialize and script ActiveX controls not marked as safe: Disabled
    Allow scripting of Internet Explorer Webbrowser control: Disabled
    Active scripting: Allowed
    Script ActiveX controls marked as safe for scripting: Allowed
    File Scan Data-->
    File Mismatch: C:\WINDOWS\system32\licdll.dll[Hr = 0x80070002]
    File Mismatch: C:\WINDOWS\system32\oembios.bin[Hr = 0x80070002]
    File Mismatch: C:\WINDOWS\system32\oembios.dat[Hr = 0x80070002]
    File Mismatch: C:\WINDOWS\system32\oembios.sig[Hr = 0x80070002]
    Other data-->
    Office Details: <GenuineResults><MachineData><UGUID>{32B4D73F-E030-4DD0-B0E5-2A710C1D2A5C}</UGUID><Version>1.9.0027.0</Version><OS>6.3.9600.2.00010300.0.0.101</OS><Architecture>x64</Architecture><PKey>*****-*****-*****-*****-R3G7T</PKey><PID>00179-60314-62768-AAOEM</PID><PIDType>0</PIDType><SID>S-1-5-21-345680080-240479117-3291294462</SID><SYSTEM><Manufacturer>ASUSTeK
    COMPUTER INC.</Manufacturer><Model>K55VJ</Model></SYSTEM><BIOS><Manufacturer>American Megatrends Inc.</Manufacturer><Version>K55VJ.202</Version><SMBIOSVersion major="2" minor="7"/><Date>20121001000000.000000+000</Date></BIOS><HWID>91513B07018400FE</HWID><UserLCID>0409</UserLCID><SystemLCID>0407</SystemLCID><TimeZone>W.
    Europe Standard Time(GMT+01:00)</TimeZone><iJoin>0</iJoin><SBID><stat>3</stat><msppid></msppid><name></name><model></model></SBID><OEM/><GANotification/></MachineData><Software><Office><Result>111</Result><Products/><Applications><App
    Id="00" Version="10" Result="15785388"/><App Id="02" Version="10" Result="2008238971"/><App Id="03" Version="10" Result="15784668"/><App Id="04" Version="10" Result="2008148401"/><App Id="05" Version="10" Result="72"/><App Id="07"
    Version="10" Result="62"/><App Id="09" Version="10" Result="34078782"/><App Id="0A" Version="10" Result="260"/><App Id="0B" Version="10" Result="17653752"/><App Id="0C" Version="10" Result="2"/><App Id="0D" Version="10" Result="10"/><App
    Id="0E" Version="10" Result="31"/><App Id="10" Version="10" Result="80"/><App Id="11" Version="10" Result="3"/><App Id="12" Version="10" Result="31"/><App Id="13" Version="10" Result="62"/><App Id="16" Version="10" Result="28446936"/><App
    Id="18" Version="10" Result="62"/><App Id="19" Version="10" Result="34078782"/><App Id="1A" Version="10" Result="15784760"/><App Id="1B" Version="10" Result="1"/><App Id="1C" Version="10" Result="15784716"/><App Id="1D" Version="10"
    Result="2008158715"/><App Id="1E" Version="10" Result="1905399446"/><App Id="20" Version="10" Result="1905399486"/><App Id="21" Version="10" Result="15789648"/><App Id="22" Version="10" Result="2008487089"/><App Id="23" Version="10"
    Result="114394870"/><App Id="24" Version="10" Result="15785372"/><App Id="25" Version="10" Result="62"/><App Id="26" Version="10" Result="15785288"/><App Id="27" Version="10" Result="2008239772"/><App Id="28" Version="10" Result="17653760"/><App
    Id="29" Version="10" Result="15784760"/><App Id="2A" Version="10" Result="62"/><App Id="2B" Version="10" Result="15786152"/><App Id="2C" Version="10" Result="17655912"/><App Id="2D" Version="10" Result="2008239903"/><App Id="2E"
    Version="10" Result="17653760"/><App Id="2F" Version="10" Result="2008239912"/><App Id="30" Version="10" Result="16777268"/><App Id="31" Version="10" Result="17653752"/><App Id="33" Version="10" Result="34078782"/><App Id="34"
    Version="10" Result="15784760"/><App Id="35" Version="10" Result="15784760"/><App Id="36" Version="10" Result="15785408"/><App Id="37" Version="10" Result="15785388"/><App Id="38" Version="10" Result="34078782"/><App Id="39" Version="10"
    Result="1968451689"/><App Id="3B" Version="10" Result="2"/><App Id="3D" Version="10" Result="3801155"/><App Id="3E" Version="10" Result="5701724"/><App Id="3F" Version="10" Result="5111881"/><App Id="40" Version="10" Result="5177412"/><App
    Id="41" Version="10" Result="5439575"/><App Id="42" Version="10" Result="7536732"/><App Id="43" Version="10" Result="7536761"/><App Id="44" Version="10" Result="6619252"/><App Id="45" Version="10" Result="3342445"/><App Id="46"
    Version="10" Result="6029362"/><App Id="47" Version="10" Result="4653143"/><App Id="48" Version="10" Result="5505089"/><App Id="49" Version="10" Result="7536741"/><App Id="4A" Version="10" Result="3014772"/><App Id="4B" Version="10"
    Result="6357091"/><App Id="4C" Version="10" Result="98"/><App Id="BB" Version="10" Result="15786152"/><App Id="BC" Version="10" Result="-1073741809"/><App Id="BF" Version="10" Result="17627528"/><App Id="C0" Version="10" Result="27"/><App
    Id="C1" Version="10" Result="1905398074"/><App Id="C2" Version="10" Result="15786152"/><App Id="C3" Version="10" Result="-1073741809"/><App Id="C5" Version="10" Result="17651544"/><App Id="C6" Version="10" Result="15785288"/><App
    Id="C8" Version="10" Result="15789648"/><App Id="C9" Version="10" Result="2008487089"/><App Id="CA" Version="10" Result="114328926"/><App Id="CB" Version="10" Result="-2"/><App Id="CC" Version="10" Result="15786080"/><App Id="CD"
    Version="10" Result="1968430296"/><App Id="CE" Version="10" Result="2"/><App Id="CF" Version="10" Result="-1073741809"/><App Id="D0" Version="10" Result="1968496062"/><App Id="D3" Version="10" Result="1968496082"/><App Id="D4"
    Version="10" Result="114687786"/><App Id="D5" Version="10" Result="65534"/><App Id="D6" Version="10" Result="3145776"/><App Id="D7" Version="10" Result="15785404"/><App Id="D8" Version="10" Result="2008158424"/><App Id="D9" Version="10"
    Result="15785492"/><App Id="DA" Version="10" Result="15862616"/><App Id="DB" Version="10" Result="15862592"/><App Id="DC" Version="10" Result="15785588"/><App Id="DD" Version="10" Result="15862548"/><App Id="DE" Version="10" Result="15785520"/><App
    Id="DF" Version="10" Result="2008017974"/><App Id="E0" Version="10" Result="15785492"/><App Id="E1" Version="10" Result="15785444"/><App Id="E2" Version="10" Result="2008158379"/><App Id="E3" Version="10" Result="15785508"/><App
    Id="E4" Version="10" Result="15794428"/><App Id="E5" Version="10" Result="1952"/><App Id="E7" Version="10" Result="2008159919"/><App Id="E8" Version="10" Result="15785680"/><App Id="E9" Version="10" Result="15800140"/><App Id="EA"
    Version="10" Result="15802020"/><App Id="EB" Version="10" Result="15800280"/><App Id="EC" Version="10" Result="15794177"/><App Id="ED" Version="10" Result="16"/><App Id="EE" Version="10" Result="2008158444"/><App Id="EF" Version="10"
    Result="1952"/><App Id="F1" Version="10" Result="15785588"/><App Id="F2" Version="10" Result="15785760"/><App Id="F3" Version="10" Result="16899680"/><App Id="F4" Version="10" Result="-194488364"/><App Id="F5" Version="10" Result="380"/><App
    Id="F7" Version="10" Result="236"/><App Id="F8" Version="10" Result="2"/><App Id="F9" Version="10" Result="2005862271"/><App Id="FA" Version="10" Result="1905398398"/><App Id="FB" Version="10" Result="15785636"/><App Id="FC" Version="10"
    Result="2008159376"/><App Id="FD" Version="10" Result="15785760"/><App Id="FE" Version="10" Result="15785680"/><App Id="FF" Version="10" Result="15785592"/><App Id="00" Version="11" Result="15785588"/><App Id="01" Version="11"
    Result="15785576"/><App Id="02" Version="11" Result="15785568"/><App Id="03" Version="11" Result="15785980"/><App Id="04" Version="11" Result="15785864"/><App Id="05" Version="11" Result="15785912"/><App Id="06" Version="11" Result="1"/><App
    Id="07" Version="11" Result="1952"/><App Id="09" Version="11" Result="15800140"/><App Id="0C" Version="11" Result="-194488364"/><App Id="0D" Version="11" Result="1"/><App Id="0F" Version="11" Result="2127347712"/><App Id="10"
    Version="11" Result="2127360000"/><App Id="11" Version="11" Result="24"/><App Id="12" Version="11" Result="3"/><App Id="14" Version="11" Result="2"/><App Id="15" Version="11" Result="3"/><App Id="16" Version="11" Result="2"/><App
    Id="18" Version="11" Result="15785828"/><App Id="19" Version="11" Result="2008161024"/><App Id="1A" Version="11" Result="3"/><App Id="1C" Version="11" Result="2"/><App Id="1D" Version="11" Result="15785760"/><App Id="1E" Version="11"
    Result="15785680"/><App Id="1F" Version="11" Result="15786360"/><App Id="21" Version="11" Result="2008161125"/><App Id="23" Version="11" Result="64"/><App Id="33" Version="11" Result="-194488364"/><App Id="34" Version="11" Result="-1073741515"/><App
    Id="36" Version="11" Result="4"/><App Id="37" Version="11" Result="1310738"/><App Id="38" Version="11" Result="17750664"/><App Id="3A" Version="11" Result="64"/><App Id="3C" Version="11" Result="15786500"/><App Id="3E" Version="11"
    Result="1"/><App Id="3F" Version="11" Result="131072"/><App Id="40" Version="11" Result="15785816"/><App Id="41" Version="11" Result="-1944883
    Spsys.log Content: 0x80070002
    Licensing Data-->
    N/A, hr = 0x80070424
    Windows Activation Technologies-->
    N/A
    HWID Data-->
    HWID Hash Current: NgAAAAEAAQABAAIAAQACAAAABAABAAEAln0ku5AyPJHKEUCD3vgQAmxP6FosvH57BgHs5ZZj
    OEM Activation 1.0 Data-->
    N/A
    OEM Activation 2.0 Data-->
    BIOS valid for OA 2.0: yes, but no SLIC table
    Windows marker version: N/A
    OEMID and OEMTableID Consistent: N/A
    BIOS Information: 
      ACPI Table Name OEMID Value
    OEMTableID Value
      FACP _ASUS_
    Notebook
      APIC _ASUS_
    Notebook
      HPET _ASUS_
    Notebook
      FPDT _ASUS_
    Notebook
      MCFG _ASUS_
    Notebook
      ECDT _ASUS_
    Notebook
      SSDT AhciR1
    AhciTab1
      SSDT AhciR1
    AhciTab1
      SSDT AhciR1
    AhciTab1
      SSDT AhciR1
    AhciTab1
      BGRT _ASUS_
    Notebook
      MSDM _ASUS_
    Notebook

    You have Office 2013 installed on a Windows 8 computer - but posted in a Windows 7 forum that cannot deal with office problems. Hence the move to this forum.
    You need to repost your problem in the more appropriate Office Community Forums here...
    http://answers.microsoft.com/en-us/office/forum/office_install?tab=Threads 
    Noel Paton | Nil Carborundum Illegitemi
    CrashFixPC |
    The Three-toed Sloth
    No - I do not work for Microsoft, or any of its contractors.

  • List data validation failed when creating a new list item but does not fail when editing an existing item

    Dear SharePoint Experts,
    Please help.
    Why does my simple formula work in Excel but not-work in SharePoint?
    Why does this formula...
    =IF([Request Type]="Review",(IF(ISBLANK([Request Date]),FALSE,TRUE)),TRUE)
    ...work in Excel but fail when I try to use it in SharePoint?
    The intent of this formula is the following...
    If the field "Request Type" has the value "Review" and the field "Request Data" is blank then show FALSE, otherwise show TRUE.
    SharePoint saves the formula, but when a list item is saved where the formula is implemented, (under List Settings, List Validation), SharePoint does not, say anything other than that the formula failed.
    Note that the "list data validation failed" error only happens when I am creating a new item-- the formula above works just fine when one is trying to Save on the edit form. 
    Can you help?
    Thanks.
    -- Mark Kamoski

    Dear Jason,
    I appreciate your efforts.
    However, it seems to me that this statement of yours is not correct...
    "If it meet the validation formula, then you can new or edit the item, otherwise, it will throw the 'list data validation failed' error, it is by design".
    I believe this is NOT the answer for the following reasons.
    When I create a new item and click Save, the validation error is "list data validation failed".
    When I edit an existing item and click Save, the validation error is "my custom error message" and this is, I believe, the way it needs to work each time.
    I think, at the core, the error my formula does not handle some condition of null or blank or other default value.
    I tried a forumla that casts the date back to a string, and then checked the string for a default value, but that did not work.
    I tried looking up the Correlation ID in the ULS when "list data validation failed" occurs, but that gave no useful information because, even though logging was set to Verbose, the stack trace in the error log was truncated and did not given any
    good details.
    However, it seems to me that SharePoint 2013 is not well-suited for complex validation rules, because...
    SharePoint 2013 list-level validation (NOT column-level validation) allows only 1 input for all the multi-field validation formulas in a given list-- so, if I had more than 1 multi-field validation rule to implement on a given list, it would need to be packed
    into that single-line-of-code forumla style, like Excel does. That is not practice to write, debug, or maintain.
    SharePoint 2013 list-level validation only allows 1 block of text for all such multi-field validation rules. So that will not work because I would have something like "Validation failed for one or more of the following reasons-- withdrawal cannot exceed
    available balance, date-of-birth cannot be after date-of-death,... etc". That will not work for me.
    The real and awesome solution would simply be enhancing SP 2013 so that column-level validation forumlas are able to reference other columns.
    But, for now, my workaround solution is to use JavaScript and jQuery, hook the onclick handler on the Save button, and that works good. The only problem, is that the jQuery validation rules run before any of the column-level rules created  with OOTB
    SP 2013. So, in some cases, there is an extra click for the enduser.
    Thanks,
    Mark Kamoski
    -- Mark Kamoski

  • How to do a date validation with leap years

    I'm doing a date validation program in my Java class, and well it's pretty hard (for me that is). I have to be able to type in a date, have it say whether it's a leap year or not, and print out the number of days in the month. It seems pretty straight forward, but I get confused on trying to do the 'if else' statements and even the simplest things like getting the day prompting to work. >< The years I'm doing only goes through 1000 to 1999, so that's why those numbers are there. The program isn't complete, so if anyone could help show me what I'm doing wrong in the areas I'm working on then I'd appreciate it...and I'm still kind of in the basics of Java so if you do hint me with some code then I'd appreciate it if it was stuff that's not too advanced so yea.
    // Dates.java
    // Determine whether a 2nd-millenium date entered by the user
    // is valid
    import java.util.Scanner;
    public class Dates
    public static void main(String[] args)
    int month, day, year; //date read in from user
    int daysInMonth; //number of days in month read in
    boolean monthValid, yearValid, dayValid; //true if input from user is valid
    boolean leapYear; //true if user's year is a leap year
    Scanner scan = new Scanner(System.in);
    //Get integer month, day, and year from user
    System.out.print("Type in the month: " );
              month = scan.nextInt();
    System.out.print("Type in the day: " );
              day = scan.nextInt();
    System.out.print("Type in the year: " );
              year = scan.nextInt();
    //Check to see if month is valid
    if (month >= 1)
    month = month;
    else
    if (month <= 12)
    month = month;
    else;
    //Check to see if year is valid
    if (year >= 1000)
    year = year;
    else
    if (year <= 1999)
    year = year;
    else;
    //Determine whether it's a leap year
    //Determine number of days in month
    if (year == 1 || 3 || 5 || 7 || 8 || 10 || 12)
         System.out.println (Number of days in month is 31);
         else (year == 4 || 6 || 9 || 11)
         System.out.println (Number of days in month is 30);
    //User number of days in month to check to see if day is valid
    //Determine whether date is valid and print appropriate message
    // Dates.java
    // Determine whether a 2nd-millenium date entered by the user
    // is valid
    import java.util.Scanner;
    public class Dates
    public static void main(String[] args)
    int month, day, year; //date read in from user
    int daysInMonth; //number of days in month read in
    boolean monthValid, yearValid, dayValid; //true if input from user is valid
    boolean leapYear; //true if user's year is a leap year
    Scanner scan = new Scanner(System.in);
    //Get integer month, day, and year from user
    System.out.print("Type in the month: " );
              month = scan.nextInt();
    System.out.print("Type in the day: " );
              day = scan.nextInt();
    System.out.print("Type in the year: " );
              year = scan.nextInt();
    //Check to see if month is valid
    if (month >= 1)
    month = month;
    else
    if (month <= 12)
    month = month;
    else;
    //Check to see if year is valid
    if (year >= 1000)
    year = year;
    else
    if (year <= 1999)
    year = year;
    else;
    //Determine whether it's a leap year
    //Determine number of days in month
    if (year == 1 || 3 || 5 || 7 || 8 || 10 || 12)
         System.out.println (Number of days in month is 31);
         else (year == 4 || 6 || 9 || 11)
         System.out.println (Number of days in month is 30);
    //User number of days in month to check to see if day is valid
    //Determine whether date is valid and print appropriate message
    }

    Here are some helpfull hints for you:
    1. Your code is really hard to read, there are two main reasons for this. First, your indentation sucks. Second, you seem to be fascinated with saving two (ok four if you count the shift key) keypresses to avoid using { and }.
    2. Not using the brackets (you know { and } which you like to avoid) also is causing your code to do some stuff you don't realize or want to happen, or at least it would be if your code compiled.
    3. If statements require arguements, "year == 1" is an arguement, "3" is not an arguement. Each operator like the or operator ("||") is essentially a new if and requires a complete arguement. So the following code peice:
    if (year == 1 || 3 || 5 || 7 || 8 || 10 || 12)Literally translates to if year equals 1 or if 3 or if 5 or if 7 or if 8 or if 10 or if 12. Doesn't make much sense in english, and it doesn't make much sense in Java either.
    4. I am pretty sure "year" is not the variable you want in the code snippet above (the one used in hint 3), especially considering years 1, 3, 5, 7, 8, 10, and 12 are not between 1000 and 1999. You need to be really carefull not make these kind of mistakes when coding, because they are by far the hardest to track down and fix later since they don't really throw up any flags or anything at compile or run time. Take your time and think thuroughly about each line of code while coding it, it will save you tons of time in the long run.
    5. What exactly do you expect statements like "month = month;" to do? That translates as make month equal to month. Do you go to the bank and say " I have exactly $3.56 in my pocket, so I would like to deposite all $3.56 and then withdraw $3.56 and put it back in my pocket"? How do you think the teller would look at you? Teller would probably do it, but the teller would feel like he/she wasted time with you and that you are not really right in the head. Java feels the same way when you make it do the same thing, and you love to do it.
    6. Code like the following is all wrong, and for more reasons than pointed out in hint 5.
    if (month >= 1)
    month = month;
    else
    if (month <= 12)
    month = month;
    else;Let's say someone put 13 in as the month. It passes the first check because 13 is greater than or equal to 1. so month which is 13, now gets set to 13 (gee that was effective). Now we hit the else and things get confusing because you didn't use brackets or proper indentation (hint 1) so we don't know what your real intent was. Did you mean else do nothing, and the next if statement is then executed, or did you mean to just run the next if statement if the else condition was met? Fortunatly it doesn't matter here because the next if statement is failed anyways since 13 is not less than or equal to 12.
    So, we leave this code with month ebing 13, wait when did we add a 13th month to the calendar? Are you using the Jewish calendar? Could be, except even if I put 1234567 as the month your code would except it as valid, and I know no calendar with that many months. Try writing this in english first and translating it to jave, like i would probably say "if the month is greater than or equal to 1 and less than or equal to 12 then the month is valid." Course now what do you do if it is invalid? Hmm, maybe I would actually say "while the month is less than 1 or greater than 12 ask the user for the month" until they get it right.
    There are a few other problems, but most of them are probably things you haven't learned yet, and they are not show stoppers so we will let them fly. You already have a lot of work to do to make this better. But I do have one more really really big usefull hint for you:
    Never, ever, under any circumstances, should you ever ask in any way or even hint at asking for someone else to provide code solutions to your problems. So "so if you do hint me with some code then I'd appreciate it if it was stuff that's not too advanced " was a very bad thing to do, but fortunatly for you you followed it with proof you were trying to write the code yourself. Had the code you provided not been so full of problems it was obvious a beginner wrote it, you would probably have gotten much less cordial responses. I would seriously consider avoiding any implication of wanting code, at least until you become a regular poster here and people know you are not just looking to get your homework done for you.
    Hope some of this helps.
    JSG

  • Need to make date validation to remove overlab

    I have a problem in date validation
    I will tell you the scenario
    I have department table as a master table and under this department there is some teachers.
    Eeach teacher have Start Hiring Date and End Hiring Date .
    I want to prevent to insert a new teacher with Start Hiring date or End hiring date between any period inserted before in this department .
    This means in any period there is only one hired teacher
    how can I do this validation

    Assumed that you are using ADF BC, I reproduced your use case, and tried this. you can also try it,
        CREATE TABLE test_department
        (      id      numeric(10)      not null,
             name      varchar2(50) not null,
             CONSTRAINT dpt_pk PRIMARY KEY (id)
        CREATE TABLE teachers
        (      id      numeric(10) PRIMARY KEY     ,
             dept_id      numeric(10)      not null,
              start_date date,
              end_date date,
             CONSTRAINT fk_emp  FOREIGN KEY (dept_id)
               REFERENCES test_department(id)
    insert into test_department values (1,'Math');
    insert into teachers values(1,1,to_date('1/1/2010','DD/MM/YYYY'),to_date('31/12/2010','DD/MM/YYYY'));add a validate entity method to you TeacherImpl class.
        public boolean validateTeachers()
            TestDepartmentImpl deptImpl = this.getTestDepartment(); // TestDepartment is the accessor name exposed in TeachersImpl class
            RowIterator iter = deptImpl.getTeachers(); //Teachers is the accessor name exposed in DepartmentImpl class
            boolean flag = true;
            while (iter.hasNext())
                    TeachersImpl currentTeacher = (TeachersImpl)iter.next();
                    if (!currentTeacher.getId().equals(this.getId())) //skip the current teacher from comparison
                        if (this.getStartDate().compareTo(currentTeacher.getStartDate()) >
                            0 && this.getEndDate().compareTo(currentTeacher.getEndDate())<0)
                              flag=false;
            return flag;
        }

  • Date Validation - a Nightmare for ME!

    Hi, I searched the forum and came up with some code that works for me partially. I am still having problems with getting the end result that is needed.
    I need to do a date validation where the begin date is less than end date. Below is the syntax..It works but when I put in the correct end date i still get the error message athough the date is correct. Also if I set the focus back to the field and correct the date it still set focus back... I'm sure it is something simple that I am missing
    ----- form1.subformpage1.empnsubform.DateTimeField2::exit - (JavaScript, client) -------------------
    if (DateTimeField2.formattedValue>=DateTimeField1.formattedValue);
    xfa.host.messageBox("Incorrect Date range");
    What am I missing? Yes I still struggle with writing scripts!!!!
    thanks

    I have a similar thing on one of my forms, the fields are "Date Submitted" and "Date Needed" and I need to validate that the Date Submitted date occurs before the Date Needed date.  If it does not, it prompts a response dialog box and asks for a new DateNeed to be entered.  Here is the code I used: (I'm by no means an expert at code)<br /><br />//This just sets the values of the date/time fields to variables, and then checks for a null value.  If null, it changes the rawValue to an empty string for inserting into database.  If not null, it leaves the existing rawValue unchanged. Unless you're writing info to a database, you probably wouldn't need this.<br /> <br />var DateSubmit = form1.MainForm.Info.DateSubmitted.rawValue == null ? "" : form1.MainForm.Info.DateSubmitted.rawValue;<br />var DateNeed = form1.MainForm.Info.DateNeeded.rawValue == null ? "" : form1.MainForm.Info.DateNeeded.rawValue;<br /><br />if (DateNeed<DateSubmit)<br /><br />{<br /><br />     var dateResponse = xfa.host.response("The Date Needed date must be later than the Date Submitted date.\nPlease enter new date below: (MM/DD/YYYY format)", "Date Needed Error");<br /><br />     var myDate = new Date(dateResponse);<br /><br />     var myFormattedDate = util.printd("dd mmm yyyy", myDate);<br /><br />     form1.MainForm.Info.DateNeeded.formattedValue = myFormattedDate;<br /><br />}<br /><br />BTW, I have this as code on a submit button that does all of my validations and then writes a new record to a database.  But I think you could also do this on the exit event of the second date/time field if needed. The variable declarations at the top would be slightly different.<br /><br />Lynne

Maybe you are looking for

  • Found a bug in Flashbuilder 4.5, with code to replicate

    I have two classes, which are identical.  One will call the constructor.  The other does not call the constructor.  I think something may have gotten corrupted in the "renaming process" which renders the constructor invisible.  You can see when you r

  • How can I spool file in SQL*Plus using sysdate as filename?

    Dear Oracle Experts, Would you help me to solve following problem? I want spool a file in SQL*Plus but using sysdate as filename. e.g. today is 30-Nov-1999 then the filename is 19991130.lst tommorrow is 1-Dec-1999 then the filename is 19991201.lst My

  • Fixing width of a rtf table having dynamically rendered columns.

    Hi All, We have a rtf table where we are showing/hiding columns conditionally (using 'if@column'). But this is resulting in reduction of table width as well, based on number of columns getting hidden. Is there any way, so that we can keep the overall

  • Problem deleting multiple keywords in lightroom 5

    I am importing about 20,000 pictures from Flickr. they are all creative commons, and the end result will be the use of approximately 4000 of these in an online sign language dictionary. I use Bulkr to import them and this process imports the tags as

  • Variable port in Socket class

    How does the variable "port" in the socket class point to the Network interface?