Error messages and cancel navigation - questions about concept

Hello experts,
I have a very simple Web Dynpro component:
- 2 views
- First view has an input field that is linked to a date field in the context and a button to navigate to the second view
- Second view has a button to navigate back to the first view
- There are no individual field validations implemented
If I now enter a date in a wrong format and press the button, the program navigates to the second view and displays an error message in the Message Area (comes from the WD4A framework). And in this second view the navigation is cancelled and I can't get back to the first view to correct the date.
Is this the correct behaviour? This does not make any sense to me. I would have expected that the navigation is cancelled in the first view so that it is not possible to leave the screen with the faulty data.
Referring to the book "Web Dynpro for ABAP" by Ulli Hoffman the validation of type definitions is the very first step in the phase model of the request/response cycle. But it seems as if navigation comes first and validation of type definitions comes second.
Is there a way to start the standard field validation earlier (for example in the wddobeforeaction method) so that navigation is stopped in the first view until the user enters a correct date?
Thanks, Karsten

I'm sorry, now I read better your question.
What about getting the instance of the message manager and verify if it is empty?
get message manager
  DATA lo_api_controller     TYPE REF TO if_wd_controller.
  DATA lo_message_manager    TYPE REF TO if_wd_message_manager.
  IF sy-subrc EQ 0.
    lo_api_controller ?= wd_This->Wd_Get_Api( ).
    CALL METHOD lo_api_controller->GET_MESSAGE_MANAGER
      RECEIVING
        MESSAGE_MANAGER = lo_message_manager.
  IF lo_message_manager->is_empty( ) IS initial.
  fire your plug <-------
Sergio

Similar Messages

  • How can I show a error popup and cancel navigation?

    I am using JDeveloper 11.1.1.6 with WL 10.3.5. I am new to ADF / JDeveloper...
    My use case is as follows:
    I have a bounded task flow with two view activities linked by a control flow case. The from activity is a simple table that allows a user to click a commandLink to go to a details page to modify the record (the to activity in described task flow).
    When a user clicks the commandLink to edit the record I need to execute a AM method that returns a boolean based on a PL/SQL procedure. If this AM method returns false I need to inform the user that the record is ineligible for editing and cancel navigation to the details page (stay on the current page). If true is returned I need to allow the user to proceed to the edit page.
    What is the best way to accomplish this? I have looked at http://andrejusb.blogspot.com/2011/10/how-to-disable-action-conditionally.html but I kept getting "navigationContext resolved to null". I have also tried inserting a method call activity in the task flow between the two view activities. Using this approach I am able to execute the AM method but I cannot figure out how to route the user based on the return.
    Am I even close? Any pointers?
    Thanks.
    Edited by: errodr on Apr 18, 2013 12:00 PM

    Hi,
    As another option you can try this way as well,
    1. From View Activity2, put a return control flow case saying "back" to View acitivity1 (this output will be used to go to first view activity from either view activity2 (back button) or loop inside view activity 1
    2. On your command button, in Action property (not Action listener), create a managed bean method and use it to drive the navigation (it expects a string return value)
    3. Inside your managed bean, invoke your AM method and based on true/false of AM value you return either "Back" or <viewactivit2 outcome>
    4. If giving "Back" doesn't work, try to return null and see if that works.
    Ravi Nuka

  • I have just bought an iPhone 5 and it won't sync to iTunes.  It says it needs  iTunes 10.7, which I have downloaded and installed.  I still get the error message and looking at "about iTunes" it says 10.6.3.  What do I do??

    I have just bought an iPhone 5 and it won't sync to iTunes.  It says it needs  iTunes 10.7, which I have downloaded and installed.  I still get the error message and looking at "about iTunes" it says 10.6.3.  What do I do??

    Perhaps check to see if you're accidentally running two different versions of iTunes. There's some information on troubleshooting that in the Opening iTunes section of the following document:
    Troubleshooting iTunes installation on Mac OS X

  • Can't download mountain lion from app store, shows error message: retry/cancel and starts from begining

    can't download mountain lion from app store, shows error message: retry/cancel and starts from begining,
    I alreasy paid for it
    Can I get a direct download link other than from app store

    Try opening the Terminal utility in your system and running the following command to open the system's caches folder:
    open $TMPDIR../C
    Then locate and remove the folder called "com.apple.appstore" and then try relaunching the App Store and downloading the installer again.

  • I rented a movie about 45 mins ago. It stopped downlaoding at 20 mins of the movie. It gives me an error message and wont finish downloading.

    I rented a movie about 45 mins ago. It stopped downlaoding at 20 mins of the movie. It gives me an error message and wont finish downloading.

    It gives me an error message and wont finish downloading.
    What does the error message say? Include error message numbers if you're getting any, please.

  • I have had an eMac for a few years. I don't know any of the specs. Every time I try to download or install a new version of itunes or OS I get any number of error messages and cannot complete.  Help!!!!

    I have had an eMac for a few years. I don't know any of the specs. Every time I try to download or install a new version of itunes or OS I get any number of error messages and cannot complete.  Help!!!!

    It's best to start with figuring out your eMac model and OS in order to answer the question. This article will help you determine your model:
    How to locate the serial number and identify your model
    And to get the version of Mac OS that's installed:
    From the Apple Menu at the left end of your menu bar, select "About this Mac..."
    In the resulting Window, you can see the Mac OS version just under the big "Mac OS X":
    If the eMac is older and you have never upgraded the system software, it's possible that your OS version is too old to run the current iTunes. The current version requires OS 10.5 (Leopard)or higher, which is a pay-for system upgrade.

  • Why am I receiving the "Unfortunately, Messaging has stopped" error message and how do I fix it?

    Why am I receiving the "Unfortunately, Messaging has stopped" error message and how do I fix it?

    I am so upset. Please read my messages from my postings. This has nothing to do with SIM Card, Hard Reset, Apps, Google Gmail Account, nothing. I have gone thru all of this and NOTHING has fixed this. I went to the store today and spoke to the manager on duty. He said he had to try and duplicate the problem before he could help me. I showed him "screen captures" I did, told him it's out here on the board, etc. etc. Needless to say I ended up coming home with the same phone, "he" erased the phone and started over again. Well guess what, it's not a error with "MY" Gmail account being corrupted because if that is the case Mrs. Hayden14 has a bad Gmail account too. If you guessed it, the phone just crashed again! I was able this time to capture a report with ALL the history in it and saved screen captures to PROVE to him this is not a joke. Even the report says "Crash". This time it was something else I don't even or ever have used. I have also wasted over a day , yes a full work day on this without question.
    I have had to get the run around for the last day. This is totally ridiculous, including them putting me on hold for 55 min. Oh, that's another funny story. Anyways, tomorrow morning I am going to the Verizon store one last and final time and I hope they decided to do the right thing and give me a phone that does not crash and works. It would be handy at work for me, especially where I work at. I hope hope hope someone listens to and helps me. I would love for them to see me walk in, take my phone and say to me were going to get you another phone, hand it to me, see if it works and prove it's the device. I don't hear anyone having this issue on other phone types so sounds like its the phone type.
    I have had 3 phones now in the matter of 2 weeks. I am sure the FedEx charges will add up to a cost of a new phone at some point and start to outbalance your requirement to give me the same phone when it has the same problem.
    Can't wait to see what happens tomorrow.

  • I just downloaded the trial of Photoshop.  Every time I try to open it, it comes up with an error message and closes less than 5 seconds into being opened.

    I just downloaded the trial of Photoshop.  Every time I try to open it, it comes up with an error message and closes less than 5 seconds into being opened.  Does anyone know how I can fix this?  I tried rebooting my computer and reinstalling photoshop.  Thank you!

    i7 is quite fast. that's what i am on too. You may need to
    It would be necessary that you have to use "Adobe Creative Suite Cleaner Tool". (see Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6 )
    The order varies depending on your individual needs:
    1. Maybe you have to activate/deactivate, so please have a look there:
    http://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html
    2. Sometimes, we know in the meantime, the "opm.db file" is the culprit. In this case you should delete it.
    3. Did you already try "uninstalling and re-installing"? Be careful with (de)installing aso. by (de)installing by your own resources. As much as I regret it and as strange as it may seem I fear it's a challenge for Adobe's Creative Cloud Cleaner Tool. Sometimes - for whatever reasons - CC doesn't "want" to work. In this case you should CC completely delete and reinstall by help of Adobe Creative Cloud Cleaner Tool. (A try to uninstall by own resources is not enough!)
    I quote: Adobe Creative Suite Cleaner Tool helps resolve installation problems for Adobe Creative Cloud and Adobe Creative Suite (CS3-CS6) applications. The tool removes installation records for prerelease installations of Creative Cloud or Creative Suite applications. It does not affect existing installations of previous versions of Creative Cloud or Creative Suite applications.
    Please use: http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html   and follow the prescribed sequence of operations
    4. If necessary and for further questions click through http://helpx.adobe.com/contact.html or http://helpx.adobe.com/de/contact.html or
    Det finns också ett svenskt språkiga chatt. http://helpx.adobe.com/se/contact.html and if "open" please use chat, I had the best experiences. I quote from Adobe's employee Preran: The chat button is activated as soon as there is an agent available to help.

  • I cannot download a movie i rented. i keep getting an error message and it says retry  and doesn't download.

    Help. I cannot download a movie i rented. I get an error message and says retry. I retry and it says retry again.

    Hey 321Tammy,
    Thanks for the question, I can definitely understand how frustrating this situation can be. What is the error message you receive when you attempt to download the movie? You can check the following resource for possible errors and solutions:
    iTunes: Possible iTunes Store errors
    http://support.apple.com/kb/TS1424
    Additionally, you can report a problem with your purchase:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBooks Store purchase
    http://support.apple.com/kb/HT1933
    Thanks,
    Matt M.

  • I cant access my bank account since having firfox always get error message and it now says retail.santander.co.uk : server does not support RFC 5746, see CVE-2009-3555 does anyone know what i need to change thanks

    i keep getting an error message and i know its to do with firefox but have also gone into one of the settings and it says the following retail.santander.co.uk : server does not support RFC 5746, see CVE-2009-3555 but not what to do now??

    Clear the cache and the cookies from sites that cause problems.
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    See also:
    * http://kb.mozillazine.org/Error_loading_websites
    The message about CVE-2009-3555 is meant for webmasters to make them aware that they need to fix their servers and visitors like you can ignore that warning.<br />
    Firefox 3.6 versions can detect such a misconfiguration and displays a warning in the "Tools > Error Console".
    * http://wiki.mozilla.org/Security:Renegotiation

  • Mail Error Messages and continually saving email in Drafts Folder

    I am having problems attaching and sending Jpegs from within iPhoto. (4 images & 2 images all rescaled). I keep getting the Error message "Some actions taken while the [email protected] was offline could not be completed online" It then goes into a loop saving numerous drafts, (24 on 1 occasion) which I try to delete. It does not seem to be an ISP fault as the message appears whilst I am typing the text within Mail (this often disappears and has to be re-typed!)
    I have already spent 2 hours on the phone talking to Support, so very disappointed that this has not been resolved. However I am about to upgrade to Leopard so hoping this may cure the Error - time will tell!

    I wondered whether you had any luck with the error message and getting rid of it? My boss is having the same problem with his laptop but it's saying that the drafts have been saved in his "on my mac" but he doesn't have any folders..........

  • So I download photoshop cc (2014) and when I go to open the program, it gives me an error message and shuts the program down. It says," A problem cause the program to stop working correctly. Windows will close the program." Can someone help me please?

    So I download photoshop cc (2014) and when I go to open the program, it gives me an error message and shuts the program down. It says," A problem cause the program to stop working correctly. Windows will close the program." Can someone help me please?

    I've got the same issue and it affects all my adobe software.  You are not alone as I have seen several postings looking for the answer to this help request.

  • ITunes will not open (no error message and not running Norton 2005)

    I have recently upgraded to iTunes 7 and I now cannot get it to open after clicking on the icon. The iTunes.exe process comes up in the task manager briefly then disappears. There is NO accompanying error message and I am NOT running Norton Antivirus 2005. I have already tried reinstalling the standalone version of quicktime and I have used msconfig so that I essentially have only the necessary iTunes/quicktime processes running (no antivirus/antispyware/anti-popup software is running in the background). I have Windows 2000 and I have never had a problem with iTunes until now. Somebody please help me out here.

    wapierce,
    It looks like we have covered all the bases here. Unfortunatly it looks like The computer cannot run iTunes or the OS has an issue that may require a reeinstall.
    Lets verify the Hardware and OS one more time. Click Start> right click My Computer> Properties(you can also open My Computer then click view system information on the left side of the window.) What does the processor and Memory say here? Also what is it saying aout Windows.
    Make sure there are no upadtes available for the computer.
    When you installed iTunes did you make any registry changes? It sounds like the next step would be doing a restore or re-install of Windows on the computer.
    Jason

  • HT204088 The directions you provided above doesnt even work!  when I selected "Click to open your account", there is an ERROR message and takes me to no where!  when I try to access my itunes account, it says I have no history?

    The directions you provided above doesnt even work!  when I selected "Click to open your account", there is an ERROR message and takes me to no where!  when I try to access my itunes account, it says I have no history?

    You are not able to view purchase history on your iOS device.  You may only re-download previous purchases from the iOS device.
    To review your iTunes Store account's purchase history, follow the steps in this article from a computer only:
    Seeing your iTunes Store purchase history and order numbers
    http://support.apple.com/kb/HT2727

  • My iPhoto won't open keeps on giving me an error message and my microsoft office two

    my iPhoto won't open keeps on giving me an error message and my microsoft office two

    There are 9 different versions of iPhoto and they run on seven different versions of the Operating System. The tricks and tips for dealing with issues vary from version to version and OS to OS. So before anyone can help, they need information to work with. Basic stuff:
    - What version of iPhoto.
    - What version of the Operating System.
    - Details. What were you doing when the problem arose?
    - Did it ever work properly?
    - Are there error messages?
    - What steps have you tried already to solve the issue.
    Anything else you can think of that might allow someone else to understand your issue.
    With this kind of information somebody can develop a starting point for troubleshooting the issue.
    Posts that consist of "iPhoto doesn't work. Help" or "iPhoto won't print" or "Suddenly I have no photos!!!!!!!!!!" mean that any helper is simply guessing. More information means you get better assistance. (And no, more exclamation marks do not get help faster or make your issue seem urgent. They just make it seem like you have a stuck key )

Maybe you are looking for