End date should not less than Start date, else CLEAR it

Hello
I put CONTRACT START DATE and CONTRACT END DATE fields on the form. These 2 objects (Date/Time objjects) i pulled them from Satndard tab of pallette and dropped on my layout page design, fine.
Now, am trying to put a validation that the end dat eshould not lower than start date, so, i got a thread as below from Niall,
http://forums.adobe.com/message/1909551
and i did my FormCalc coding under EXIT event of END DATE field as below,
// Pls. note this FormCalc
// End date should not less than Start date, else CLEAR it - Begin
var stDate
var endDate
stDate = xfa.resolveNode("CUSTOMER.Page31_Contracts.Con_Whole_Page.CON_Basic_Info.CON_START_DATE") .rawValue
endDate = xfa.resolveNode("CUSTOMER.Page31_Contracts.Con_Whole_Page.CON_Basic_Info.CON_END_DATE").r awValue
if (stDate > endDate) then
    xfa.host.messageBox("End date is lower than Start date! End date is cleared")
    xfa.resolveNode("CUSTOMER.Page31_Contracts.Con_Whole_Page.CON_Basic_Info.CON_END_DATE").r awValue = null
endif
// End date should not less than Start date, else CLEAR it - End
I tried in VALIDATE, CALCULATE, CHANGE events of END DATE, but nothing working!!
PLs. let me kow how can i achieve my requirement? I am anewbie,
Thank you

If you use the exit event, you will probably have to have the same code on both the start and end date fields since they have a dependancy on each other. Maybe better to try the validate event of the end date so that if either field is changed the event gets fired. You can try the following for validate event
// Pls. note this FormCalc
// End date should not less than Start date, else CLEAR it - Begin
var stDate
var endDate
stDate = CON_START_DATE.rawValue
endDate = $.rawValue
if ( HasValue(endDate) ) then
    if (stDate > endDate) then
        xfa.host.messageBox("End date is lower than Start date! End date is cleared")
        $.rawValue = null
    endif
endif
1
// End date should not less than Start date, else CLEAR it - End

Similar Messages

  • Contract End date should not less than Start date, else CLEAR it

    Hello
    I put CONTRACT START DATE and CONTRACT END DATE fields on the form. These 2 objects (Date/Time objjects) i pulled them from Satndard tab of pallette and dropped on my layout page design, fine.
    Now, am trying to put a validation that the end dat eshould not lower than start date, so, i got a thread as below from Niall,
    http://forums.adobe.com/message/1909551
    and i did my FormCalc coding under EXIT event of END DATE field as below,
    // Pls. note this FormCalc
    // End date should not less than Start date, else CLEAR it - Begin
    var stDate
    var endDate
    stDate = xfa.resolveNode("CUSTOMER.Page31_Contracts.Con_Whole_Page.CON_Basic_Info.CON_START_DATE") .rawValue
    endDate = xfa.resolveNode("CUSTOMER.Page31_Contracts.Con_Whole_Page.CON_Basic_Info.CON_END_DATE").r awValue
    if (stDate > endDate) then
        xfa.host.messageBox("End date is lower than Start date! End date is cleared")
        xfa.resolveNode("CUSTOMER.Page31_Contracts.Con_Whole_Page.CON_Basic_Info.CON_END_DATE").r awValue = null
    endif
    // End date should not less than Start date, else CLEAR it - End
    I tried in VALIDATE, CALCULATE, CHANGE events of END DATE, but nothing working!!
    PLs. let me kow how can i achieve my requirement? I am anewbie,
    Thank you

    http://forums.adobe.com/message/4264933#4264933

  • PR Date Should be less than PO date

    Hi
    I have done the change in message type to control PO date at the time of creation, now PO can be created only in current date but if at a later stage somebody has been created one more PR and change the PO and add one more line item from this PR then PR date is greater than PO date.
    So this is objectionable and I want to control this i.e. PR date should be less than PO date.
    Please guide how can i achieve this?
    Regards
    Ajay Goel

    Hello,
    Ajay if u you want to restrict the PO can be created only in current date then u can take help of your ABAPER because its possible through BADI.
    If you want to add the other line item in PO Or Use Tcode Me22n you can not change the document date that time bcoz its disable check it.

  • Windows 8.1 Error (Blue Screen) DRIVER IRQL NOT LESS THAN OR EQUA

    i need help with this its been very annoying every time i try to play a game after few minutes win 8 show and error and blue screeen apprear's
    sorry we have encountered a problem DRIVER IRQL
    NOT LESS THAN OR EQUAL please help  me fix this
    my laptop
    HP Pavilion 15-n216se Notebook

     We do need the actual log files (called a DMP files) as they contain the only record of the sequence of events leading up to the crash, what drivers
    were loaded, and what was responsible.  
    Please follow our instructions for finding and uploading the files we need to help you fix your computer. They can be found here
    If you have any questions about the procedure please ask
    Wanikiya and Dyami--Team Zigzag

  • How to use not less than or equal to in condition

    I written a querry based on the below condition in sql querry
    b.key <= a.key
    Based on this it will return records.
    I need remaining records that not satisfy the above condition.
    That means not less than or equal to records...

    937506 wrote:
    I written a querry based on the below condition in sql querry
    b.key <= a.key
    Based on this it will return records.
    I need remaining records that not satisfy the above condition.
    That means not less than or equal to records...you mean
    b.key > a.key?

  • SQL query to populate the records, the maximum processed should be less than 10 records per week.

    Dear All,
    I have a requirement, to write a SQL query to populate the records which are inserted less than 10 no of records.
    The tables has the cretaed_date column and along with other key column which will have unique values.
    Ex1:  The user might have inserted records from application, per week basis, between the date range '01-jun-2013' - 08-jun-2013  , the no of records created by the user during this week may be less than 10 records or more.
    But I want to populate the records by giving date range that too, it should pick the records the count which fall with in 10 records.
    I dont want the query to populate the records if the user has inserted more than 10 records in a week.
    Ex2:
    User 1 has created 15 records during the week 1 ( the query should not populate this ).
    User 2: has cretaed less than 10 records from the UI during the week 2. ( This details should get populated ).
    Thanks

    Use COUNT to find how many rows where inserted in a week.
    If this does not answer your question then please read Re: 2. How do I ask a question on the forums? And provide necessary details.

  • Beginning_date should be less than end_date

    Hi,
    I have made a concurrent program(using shell script) which takes 2 parameters namely beginning_date and end_date.Now the problem is
    that i want that the user should not be able to submit this concurrent program until end_date is greater than beginning date.I can handle this scenario once the concurrent request is submitted but I want that user should get an error and should not be allowed to submit concurrent program if end_date is before than beginning_date.Can you please throw light on how can I do this?

    Hello,
    Ajay if u you want to restrict the PO can be created only in current date then u can take help of your ABAPER because its possible through BADI.
    If you want to add the other line item in PO Or Use Tcode Me22n you can not change the document date that time bcoz its disable check it.

  • Order QTY should not exceed than reference document

    Dear Gurus,
    I am creating a Release order with reference to Contract. Ex. order qty is 100 in Contract, while doing sale order it should not allow to change the order qty more than 100 [not more than Ref. document qty]. I have tried in VTAA, completion rule.. but it still allows.
    Pls thro some light on this.
    Regards
    Praveen...

    Hi Sreebha,
    DO NOT COPY PASTE OTHERS STATEMENT
    Check the below link from where it is copied:[Lock Quotation Changes when Sales Order is already Created;
    Regards,
    Amitesh Anand

  • GRN Qty should be less than Sub contracting Challan Qty

    Hi Friends,
    When we put Sub Contract Challn at the time of receving Sub Contract material MIGO, system should pick up challn Quty, or System should accept less qty than Challan Qty.
    Can we do the same ?
    Please help me.
    Thanks in Advance
    Yogesh

    HI,
    Yes GRN Qty should be same or less  than Sub contracting Challan Qty, system will allow you do the reconcilation with J1ifq or if the challan qty less then GRN quantity at the time system wont allow you to do the reconcilation
    Regards
    Pramod

  • Restrict Yield to be confirmed should not less then operation GR quantity.

    Dear Sap Gurus,
    I have an issue. I want to restrict Yield to confirm quantity should not be more or less then operation GR quantity.
    I am doing production order confirmation through Co11.
    How can i restrict it ? or please guide user exit for that.
    Regards
    rvyas

    Hi
    You can use implicit enhancement to restrict the confirmation in CO11N screen.
    Check with your ABAPer to use it.
    Regards
    Bala

  • Constraint for insertion in a table if inserted rows should not more than 2

    Problem: A Teacher only can assigned for maximum 2 Subjects in the same class Standard.
    actually i want to create a table like following
    create table teaches
    teacherid int,
    standard varchar(10),
    subjectcode varchar(10),
    constraint cpk_teaches primary key(teacherid, standard, subjectcode)
    and i want that when any data inserted in the table,
    a constraint will work in the manner that there is
    NO POSSIBILITY TO INSERT the data for
    (teacherid, standard) columns THRICE (3rd time)
    actually i want that only maximum of 2 different data will insert in
    (subjectcode) for the same (teacherid, standard)

    Thanks for the suggestion,
    But, my original problem remains on the same stage.
    Actually this table has all the keys as foreign key of other tables.
    Why?, is not necessary this time.
    If you don't mind kindly give me the code of constraint, if any to solve my problem.
    Problem: I want to insert only maximum of two different Subjects for same Teacher and Standard and not more.
    In real life like following.
    Mr. TCHR-1 is teaching subject SUB-1 in standard STD-1.
    Mr. TCHR-1 is teaching subject SUB-2 in standard STD-1.
    But, can't Mr. TCHR-1 is teaching subject SUB-3 in standard STD-1.
    My table structure is not in the state of changing due to some reasons.
    It is, as previously described.
    create table teaches
    tchrid int,
    std varchar(10),
    subcode varchar(10),
    constraint cpk_teaches primary key(tchrid, subcode, std)
    )

  • How comes that, having everybody issues with infinitely long backups (combining mountain lion on new imac and time capsule) apple doesn't fix it? (my time machine forecasts not less than 6/8 days to complete the first one, 350 gig transferred from a pc,).

    Within 6 days someone will switch off the machine, or power will go off, or some error will occur. I will have a backup when I'll have to replace this new Imac....

    Always do the first backup at least over ethernet.. even if you have to use the TC in complete isolation from the network. You should be able to do that backup in about 6-8hours, ie overnight.
    The setup is easy.. in complete isolation.. if you have no ethernet from the imac.. just use a short patch lead.. plug LAN port of the TC into the iMac. Turn off wireless in the imac. Make sure the airport utiity can locate the TC, if not press reset on the TC and it will go back to router mode.. ignore all the errors .. just locate the hard disk is working.. start up TM and point it to the TC.. do the backup.
    Once this backup is done.. the hourly incrementals over wireless should take just a couple of minutes. Although if you are manipulating very large files then you may need to consider getting better connection, either using 5ghz wireless which is much faster but might need extender.. or ethernet or ethernet over power type adapters.

  • Need to check GR quantity should be less than PO quantity

    Hi,
        We have to make sure that the net GR quantity shouldn't be greater than PO quantity (considering one PO line can have more than one GR and GR returns) . Can we achive this by configuration?  I tried using Tolerance limits, but it didn't work as I expected, but not sure what values / percentage to be maintained to make it work, if it is for this purpose.
    If it is not possible by configuration, I am thinking of using user exit for the same. If anyone knows, please let me know. Thanks,
    Regards,
    Sundar.

    if you have a overdelivery  tolerance set in the PO then remove it
    if you have a flag for unlimted overdelivery, then remove this one too.
    try MIGO for a quantity that will exceed PO quantity.
    you shuold get an error message.
    if it is a warning, then you might need to change the attributes of teh message to error.

  • IRQL Not Less Than Or Equal To [ B.S.O.D. ]

    Okay, I really hope this is the right place for help, because I'm growing increasingly frustrated. Where to begin?...
    Ah, alright. So, I just recently bought this computer in Janurary, and it was working fine until a few weeks ago.I shut the laptop and when I turned it on, it gave me the Blue Screen of Death. I started it up in Safe Mode, and found that this was the problem.
    " Files that help describe the problem:
      C:\Windows\Minidump\032812-54335-01.dmp
      C:\Users\name\AppData\Local\Temp\WER-92992-0.sysdata.xml
    I cleaned my temp files, but had to allow administrative permission to delete the latter. I'm not sure if I took care of the first one, but I went in and deleted stuff in the Disk Cleanup, and 'minidump' was in there...So maybe?
    And I was hoping it would be okay. WELL, it was for an hour, but then I shut the laptop again and it brought the B.S.O.D  up yet again, only with the IRQL etc thing.
    I...don't have any idea about how any of that coding information, whatever it is, so...I ...Just have no idea.
    Help. ;

    1. Which computer? There is a label on the bottom.
    2. Please attach the 032812-54335-01.dmp file from the C:\Windows\Minidump folder to your reply.
       Bug Check 0xA: IRQL_NOT_LESS_OR_EQUAL
    -Jerry

  • PO qty Should not more than PR qty

    we Have configured  For controlling Multiple Pos for same PR,  error message 06-076.
    It is working fine for Materials PR/PO. But for service PO, Item Qty is AU always and
    item detail screen having Service tab having Multiple services.In this case even though
    less qty is converted to Po,for remaining qty conversion to Po, system giving this error message. can any body give idea?
    thanks
    ramitreddy

    When it comes to service you need to make message number 438 and application area SE error in the below config
    spro>MM>external service management-->define attributes of system messages
    Regards
    Antony

Maybe you are looking for