End_date to be after than From_date

Hi,
I have to design a simple OAF page with two fields From_date and End_date which are to be input
by the user.The requirement is that From_Date and End_date text boxes should have icon of calendar next to it(if it is possible) and the user should enter From_date first and the page should be able to select the End_date in the calendar which has to be after From_date.
I am new to OA Framework.Can you please guide me on this?
Regards

Hello,
There is no standard feature available in OA Framework which will internally handle the validations of the From Date and To Date Fields.
You will have to handle the validations externally in ur Controller class(CO).
Refer the below code for your reference
public Boolean isSatrtDateGraterInEmployer()
Boolean flag = Boolean.FALSE;
//OADBTransaction txn = getOADBTransaction();
KoelHrPreEmpVOImpl empVO = getKoelHrPreEmpVO1();
KoelHrPreEmpVORowImpl row = null;
if(empVO.getFetchedRowCount()>0) {
row = (KoelHrPreEmpVORowImpl)empVO.getCurrentRow();
Date sysdate = null;
try {
sysdate = (Date)Date.getCurrentDate();
catch(Exception e) {
e.printStackTrace();
Date startDate = (row.getStartDate() != null)? row.getStartDate() : sysdate;
Date endDate = (row.getEndDate() != null)? row.getEndDate() : sysdate;
int isGrater = 0;
isGrater = endDate.compareTo(startDate);
flag =Boolean.TRUE;
if(isGrater > 0) {
flag =Boolean.FALSE;
return flag;
Thanks & Regards,
Raj Papdeja

Similar Messages

  • How to pass value standard program to Workflow after than to call Transaction

    Hi Experts..
        While We are Cancel any PO in Me29n, it will Pass values(Like reason for cancel With PO No) and Send a mail (User name whose reject the cancel against Release of PO No) in workflow inbox(workplace) After than getting a mail any particular User, they will See the Message of  Purchase  order against  Canceled. After then they will double click on that message it will trigger ME29N Tcode with the particular PO.
            Using with Badi in Me29N we have to Passed  Values and sent a Mail in work place but When  Double click on Message I Dont Know HOw to Call ME29N in work place....
         Cancel Po in Me29N-->WORK PLACE --> Double click on message,will call ME29N
       So, please help me how to i can Rectified this.
    Regards,
    kumar

    hi Kumar
    BUS2012 is a business object, see it in tcode SWO1.
    You can try blow code:
    INCLUDE <CNTN01>.
    DATA: OBJ TYPE SWC_OBJECT.
    DATA: PO_ITEMS TYPE TABLE OF BAPIEKPOC.
    DATA: PURCHASEORDER     TYPE     BAPIEKKO-PO_NUMBER VALUE '4500000004'.
    SWC_CONTAINER CONTAINER.
    SWC_CREATE_OBJECT OBJ 'BUS2012' ''.
    SWC_CREATE_CONTAINER CONTAINER.
    SWC_SET_ELEMENT CONTAINER 'NotificationType' 'S1'.
    SWC_SET_ELEMENT CONTAINER 'PurchaseOrder' PURCHASEORDER.
    SWC_CALL_METHOD OBJ 'Display' CONTAINER.  " call method 'Display' show ME29N.
    Infact, you can achieve all your requirment in workflow, don`t need implement BADI.
    The trigger event is event 'rejection_start' in BUS2012. Create a user decision(which will show in workplace) and create a task bounding the 'Display' method of BUS2012.
    There are so many detail content in scn or wiki. thanks.
    hope can help you.
    Regards,
    Archer

  • I'm using iPhone 4S and it was working fast once I purchased and after few months I update my phone since to 7.0.1 since then neither my wifi is working nor my Bluetooth and even my phone is working slow, after than many new updates came I did but nothing

    I'm using iPhone 4S and it was working fast once I purchased and after few months I update my phone since to 7.0.1 since then neither my wifi is working nor my Bluetooth and even my phone is working slow, after than many new updates came I did but nothing works. Kindly help me out how to solve this problem.

    Hi Sameer alamgir!
    Here are two articles that can help you troubleshoot these issues with your Wi-Fi and Bluetooth connections:
    iOS: Troubleshooting Wi-Fi networks and connections
    http://support.apple.com/kb/ts1398
    iOS: Troubleshooting Bluetooth connections
    http://support.apple.com/kb/TS4562
    Take care, and thanks for visiting the Apple Support Communities.
    -Braden

  • Hello dear sir I have iPad and I upgrade it after than it couldn't find my location by map

    Hello dear sir I have iPad and I upgrade it after than it couldn't find my location by map?

    You don't have to have the sim for the GPS unit to work. Go outside where there are no obstructions, Reset your iPad (hold down the sleep and home buttons, wait for the Apple logo, let go of the buttons) and then try it again.

  • HT1430 my iphone 4 turn off after appearing message "temprature high, need to be cool down after than doesn't becoming turn on"

    my iphone 4 turn off after appearing message 'temprature high, need to be cool down' after that does not getting turn on by anyhow.

    Hello vijaypatel,
    Thanks for the question. The following article outlines the temperature warning that you experienced:
    iPhone, iPad, and iPod touch (4th generation): Keeping device within acceptable operating temperatures
    http://support.apple.com/kb/HT2101
    If the iPhone is no longer powering on, we will need to isolate this issue to determine if it is hardware related.
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/TS2802
    Will not turn on, will not turn on unless connected to power, or unexpected power off
    - Verify that the Sleep/Wake button functions. If it does not function, inspect it for signs of damage. If the button is damaged or is not functioning when pressed, seek service.
    - Check if a Liquid Contact Indicator (LCI) is activated or there are signs of corrosion.
    Learn about LCIs and corrosion.
    - Connect the iPhone to the iPhone's USB power adapter and let it charge for at least ten minutes.
    - After at least 15 minutes, if:
                   - The home screen appears: The iPhone should be working. Update to the latest version of iOS if necessary. Continue charging it until it is completely charged and you see this battery icon in the upper-right corner of the screen . Then unplug the phone from power. If it immediately turns off, seek service.
                   - The low-battery image appears, even after the phone has charged for at least 20 minutes: See "iPhone displays the low-battery image and is unresponsive" symptom in this article.
                   - Something other than the Home screen or Low Battery image appears, continue with this article for further troubleshooting steps.
    - If the iPhone did not turn on, reset it while connected to the iPhone USB power adapter.
                   - If the display turns on, go to step 4.
                   - If the display remains black, go to next step.
    - Connect the iPhone to a computer and open iTunes. If iTunes recognizes the iPhone and indicates that it is in recovery mode, attempt to
    restore the iPhone. If the iPhone doesn't appear in iTunes or if you have difficulties in restoring the iPhone, see this article for further assistance.
    - If restoring the iPhone resolved the issue, go to step 4. If restoring the iPhone did not solve the issue, seek service.
    Thanks,
    Matt M.

  • Installed Apps No Longer Work After 3.1.3 Upgrade

    Last night I upgraded to 3.1.3, and since then NONE of the Apps that I installed works... Each time I try to open any of them, it will open and stop just as quickly, taking me back to the Home screen...
    I thought at first it was only the Apps that required Internet Access (IM and/or Email Apps)... However, I was able to open a web page using Safari, and the Email App included in iPhone STILL works... And, like it would normally do, it would check first for a local wireless network, and switch to 3G if it does not find one... However, in this case, when trying any of the Apps I've installed, it does not even check at all for a network or 3G, the Apps just shut down just as quickly as I launch them...
    Since then I've discovered that ALL the Apps I've downloaded and installed prior to the upgrade no longer work...
    I have cycled the power on the iPhone (Turning it OFF by means of the SLEEP button, and then back on minutes after than), but that doesn't solve the problem...
    Any information would be appreciated...
    Thanks for your time...

    TainoV2 wrote:
    I have cycled the power on the iPhone (Turning it OFF by means of the SLEEP button, and then back on minutes after than), but that doesn't solve the problem...
    Did you try a reboot (by means of BOTH the Sleep and Home buttons and holding both IGNORING the slide to turn off, and keep holding until you finally see the Apple Logo?)
    Message was edited by: DaVBMan

  • Oracle Alert: Access before and after update values of a table column

    We have a requirement where a notification needs to be sent when 'END_DATE' attribute (column in a table X) is set, in an Oracle Applications form.
    I have defined an Event based Oracle Alert which fires 'On Update' of the table X.
    Could anyone please let me know as how to access the value of 'END_DATE' before and after update (i.e :new.END_DATE and :old.END_DATE) in the sql query of the alert.
    The need to use the before update and after update values of the attribute 'END_DATE' is that if we add the condition END_DATE is not null, the alert is sent even if any other attrbutes are updated in the Oracle form which is not the intended behavior.
    Appreciate any help.
    Thanks

    Hi
    use selectionlistener for your first table then add clientlistener and serverlistener so that you will get the rows on click in back bean.
    then get second table vo and and create and add row for that view object. add partial target to refresh your second table from back bean.
    on click of save call commit operation.

  • Can't open Integration Builder Repository in SAP XI 7.0 after CodeMigration

    We had Communication Channel code change , for which the cache in the adapter engine was failed up update automatically. I rebounced the Web AS SAP Server ( Java stack only) and after than point I cannot launch Integration Builder Tool( Repository) in SAP XI 7.0.All other message are processing fine.Only we cannot open the Integration Buildter tool using URL
    http://<hostname>:58900/rep/start/index.jsp
    500 Internal Server Error
    Exception
    An internal error occurred. Contact you XI administrator
    java.lang.NoClassDefFoundError: com.sap.aii.ibrep.server.transport.impl.service.InternalRepTransportServiceImpl (initialization failure)
    Error Details, Error History, Build Info, Generic Application Info
    Any take on this one?Please help. This is our Production Server.
    Thanks
    Satpal Singh

    Praveen,
    Restarted both ABAP and JAVA , but did not helped.We did that as first step.
    We are unable to launch the Integration Server Repositorty Tool.
    We get following detail on the Error info of the page that shows up.
    500   Internal Server Error
    Exception Details
    Exception class: java.lang.NoClassDefFoundError
    Message
    java.lang.NoClassDefFoundError: com.sap.aii.ibrep.server.transport.impl.service.InternalRepTransportServiceImpl (initialization failure)
    Stacktrace
    Thrown:
    java.lang.NoClassDefFoundError: com.sap.aii.ibrep.server.transport.impl.service.InternalRepTransportServiceImpl (initialization failure)
         at java.lang.J9VMInternals.initialize(J9VMInternals.java:130)
         at com.sap.aii.ibrep.server.transport.api.RepTransportServiceStartup.startupIbrepTransportServices(RepTransportServiceStartup.java:22)
         at com.sap.aii.ibrep.server.applcomp.StartupCodeEntry.startup(StartupCodeEntry.java:442)
         at com.sap.aii.ib.core.applcomp.IStartupCodeEntry.startupIfNotAlreadyDone(IStartupCodeEntry.java:33)
         at com.sap.aii.ib.core.applcomp.ExplicitApplicationComponentImpl.startup(ExplicitApplicationComponentImpl.java:116)
         at com.sap.aii.ib.core.applcomp.ExplicitApplicationComponents.startup(ExplicitApplicationComponents.java:383)
         at com.sap.aii.ib.core.applcomp.ApplicationComponent.startup(ApplicationComponent.java:209)
         at jsp_Main1203628046558._jspService(jsp_Main1203628046558.java:21)
         at com.sap.engine.services.servlets_jsp.server.jsp.JspBase.service(JspBase.java:112)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:544)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(AccessController.java:215)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

  • Found some severe issues with my Xperia mini after ICS update

    Hi,
    I am a application and game tester from India and i am using Xperia mini for 7 months, last month i have upgraded my mini with ICS. But the update is not so good as i am facing many problems after updating. I am listing few of my problems below, i dont know this is for my set or with all:
    1. If i am forwarding any message and selects 'Add Recipient' option then the phone get stuck in the Contacts list and fails to respond the back button. Also on returning to Home screen and selecting message option after than then Contact list opens instead of Message and to rectify this issue i have to restart my mobile.
    2. For my Calenders(i have sync with Facebook) there are lots of event marked on the days but on selecting the particular dates no name is displayed just blank tabs are displayed.
    Please reply me is this the problem with all Xperia Minis(ICS)? or i am the lucky one . If this is with all then please fix the issues and make a new update available.
    Regards,
    Touseef

    Hi guys, well as a matter of facts, yes, I have a similar problem, amongst other...
    -This feature I use a lot: in GB, when i open conversation, on the top the contact`s name and phone appears, i tap on it and make the call, in ICS, when i tap on it, it opens Contact list from the begining, so i have to find the contact which i want to call. And on the end, back and menu buttons don`t work in that case (like  toseefb2 problem), so i have to press the home button....
    Maybe, just maybe this happens because i installed Skype, because, after its installation, when i wanted to send an SMS, it asked me which will the messaging app  going to be used, Skype or Messaging. I`ve chosen the Messaging and my problem appeared. Only Contacts with picture can be called, and only if i tap the picture...
    Please solve this, i don`t want to uninstall Skype, nevertheless, the phone should work regulary even with 3rd party apps.

  • Date should not be  less than current date.

    Hello, I have a form.It has an item called end_date. I want to have validation of end_date in such a way that "end_date should not less than current date". Any tips would be helpful.
    Thanks in advance.

    jwellsnh wrote:
    Pravish,
    A dynamic action executing JavaScript can do this:
    Create a Dynamic Action:
    Event Before Page Submit
    Condition JavaScript Expression
    Value $v('P1_END_DATE')<$v('P1_BEGIN_DATE')In this scenario; P1_BEGIN_DATE would need to default to sysdate and could be a hidden item on the page.
    Jeff
    Edited by: jwellsnh on Jul 19, 2012 9:50 AMMaybe I'm missing something but isn't this just a use case for a common-or-garden validation? Would be interested to know why you thought of javascript rather than normal built-in functionality (not meant as a criticism incidentally!) - is javascript your first port of call when it comes to APEX?
    I'd also watch out for comparisons to SYSDATE - remember that SYSDATE includes the current time, so you'd need to take that into account (maybe you could make use of the TRUNC function to remove the time element?). Indeed, would javascript evaluate that expression as comparing two dates (I know Javascript evaluates variables byDuck Typing but does this work in practice)?

  • AE CS4 crashes after 'Initializing Animation Presets'.

    Hi,
    I have suddenly started experiencing AE crashes.This wasn't the case till even last week.I have been using AE CS4 with the latest update applied.
    I got XP SP3,
    4 GB RAM
    560ti 1GB graphic card
    Core 2 Duo
    My AE even renders psunami plugin with good decent settings, without even the need to purge all or something before starting the render.
    But a few days back I launched AE and after the progress bar of 'Initializing Animation Presets', it hanged.I clicked in the preview window, or tried opening the file and it said not responding.It hangs and nothing happens but as soon as I click somewhere it says not responding.
    Then I tried opening an AE project directly and it worked.But then if I try opening AE project some other time, it crashes again, as in not responding.Tried opening twice, thrice and what not!Same thing.Sometimes out of the blue it doesn't crash.
    I only remember installing ffdshow.I uninstalled it.Restarted, ran registry cleaner and everything but still the same problem.I updated QT but quite some time ago.After than I worked on two AE projects.Just last week worked with psunami plugin.Everything was fine, until tried opening AE this day before yesterday, monday.If I turn off PC and directly launch AE after restarting, then it works sometimes.I was trying and it didn't crash and then loaded BCC flickr fixer and it said invalid error however I had just used it last week to fix flicker in my timelapse.I have made no changes in any of the folders whatsoever.But then I restarted pc and tried loading the filter, it worked fine.Just in case this thing about BCC filter matters.
    Please help?

    If all of the trouble happened after ffdshow, then try using System Restore to go back to a date before you installed that. Note: I said system restore and not system recovery. System restore just fixes Windows and won't mess with your files or anything.
    If that doesn't work, you may need to uninstall your Adobe software, run the Adobe Cleaner, and reinstall your Creative Suite.
    If that doesn't work, you may need to format your computer and start over. (Backup your files first, obviously.)

  • HP Laser 2055dn is offline after duplex setting

    Hi Anyone
    Could you help me. I bought HP Laser Jet 2055dn Printer. I join in my network the IP address 192.168.1.8/24.
    I can print with this IP address. One my user want to print Duplex side by side (Print on both side) Automatic.
    So I click on and apply in Print on both side (auto) check box. after than My printer is offline. But I can access printer's
    web management pages, I can ping printer's ip address. But the printer is offline in status. when i check in printer's
    port number and IP, the all information are correct. I don't know why showing offline.
    Please kindley help me urgently because my boss is asking for the solution.
    Thanks and regards,
    Update

    Hi Anyone
    Could you help me. I bought HP Laser Jet 2055dn Printer. I join in my network the IP address 192.168.1.8/24.
    I can print with this IP address. One my user want to print Duplex side by side (Print on both side) Automatic.
    So I click on and apply in Print on both side (auto) check box. after than My printer is offline. But I can access printer's
    web management pages, I can ping printer's ip address. But the printer is offline in status. when i check in printer's
    port number and IP, the all information are correct. I don't know why showing offline.
    Please kindley help me urgently because my boss is asking for the solution.
    Thanks and regards,
    Update

  • Bizarre: iPhone Apps rearrange themselves aphabetically after 3.1!!!!

    Since installing 3.1 (3G, not jailbroken, many apps), everytime I update apps through the phone, EVERY application icon is moved - over multiple pages - into alphabetical order! I know a lot of folks would like that, BUT, I keep my app icons arranged into related groups on each page, with a specific order on each page, so I regard this as a MAJOR BUG!!!
    Anyone else run into this????? Anyone got a workaround?

    TainoV2 wrote:
    I have cycled the power on the iPhone (Turning it OFF by means of the SLEEP button, and then back on minutes after than), but that doesn't solve the problem...
    Did you try a reboot (by means of BOTH the Sleep and Home buttons and holding both IGNORING the slide to turn off, and keep holding until you finally see the Apple Logo?)
    Message was edited by: DaVBMan

  • App Store broken after updates

    OSX 10.9.5, App Store Version 1.3 (201.7)
    After updating some software, the App Store broke, looks like the CSS is not loading. Furthermore, "Some updates could not be installed automatically" - the App Store icon shows "1" in red circle, in it the Update part also shows "1", but clicking on Updates icon displays nothing.
    I've sign out of App Store, and after than i cannot sign in back (connection failed).
    Also, the suport page in safari looks broken too:
    Please advise
    Marcin

    Following the updating of a number of iPad apps on my MacBook Pro today (April 18) I had EXACTLY the same problems occur as mzagor described in an earlier post. Everything seems identical in my screen displays to the screen shots shared by mzagor, with the addition in my case of the iTunes Store not loading and throwing up error message windows stating that,  "iTunes can't verify the identity of the server "init.itunes.apple.com". The certificate for this server is invalid. ..."   7 additional similar certificates follow as iTunes attempts to log in to other Apple servers.
    I spent over an hour on the phone with an Apple tech, not knowing that others were having a similar issue as I. We almost got to the point of reinstalling Mavericks - but I balked at that. The well meaning tech suggested that this could be a hardware issue and that I should have the computer checked at an Apple Store (90 minutes away). 
    HOWEVER!  on this same MacBook Pro, I can, using a DIFFERENT User login (which had been previously created) successfully log into;
    -  the iTunes Store,
    - the App Store, and get to
    - the Apple web site Support section through Safari,
    without any issues or error messages and with the each of the screen displays showing up as they should. I can log into my Apple ID account without issue.
    It would appear that there is a connection to the stated difficulties I am experiencing, with the act of updating apps using the App Store in Mavericks (v10.9.5)
    Hopefully, the issue will be acknowledged and a solution will be found and shared quickly.

  • MSI GT70 audio (headphone) jack makes weird noise after a few seconds

    I recently got my laptop its an MSI GT70, i plugged in my headphones to the correct jack, and the laptop detects it and all is fine, but then when i play something with audio, it starts playing normally for a few seconds then the audio goes to a weird sound, kind of like everything turns to like an echo sound, i have tried multiple things, like changing the default format (the bits and HZ), and every time i do change it, it goes ok for a few seconds and then turns back to the echo-ish sound. i don't think something is wrong with the drivers tough.

    i know it' been a while, but i resolved the problem finally, it wasn't anything with the drivers or hardware, i few days ago, i wanted my laptop be loud, but i raised the volume and it wasn't really loud as most laptops, so i checked around my laptop then i went to my icons i clicked sow hidden icons to see what was related to my sound i found thx tru studio pro settings in there, i double clicked it, clicked on speakers and realized they were on low that's why my laptop had low sound, so after i resolved it, i went to settings to see what it had to offerm i saw select your speaker setup, it had headphones, external speakers,and built in speakers, i automatically got my headphones and plugged them in, the thx turned from built in speakers to external speakers, then i listened to something and it was still bad, so i changed it to headphones, and it was perfectly fine after than,    , but i still dont know why it turns to external speakers, i think it has something to do with realtekhd, but it's a start, thanks to everyone for the replies

Maybe you are looking for