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

Similar Messages

  • When sending e-mails, how can I show only the name and not include the e-mail address?

    When sending e-mails, how can I show only the name of the recipient and not include their full e-mail address?

    Hi beverlyfromnull,
    Have you added the recipients to your address book?

  • How can I show only text edits and not text formatting when using print comments summary?

    Acrobat 9.3.0 for Mac.
    Here is the scenario: I used the Compare command to see the changes between 2 PDFs. The resulting file some edits are inserts and some are deletions. I want to print a comments summary only showing the text edits. In the Compare Option pane, I select Text and deselect Images, Annotations, Formatting, Headers/Footers, and Backgrounds. Now on the screen I see inserts are highlighted in blue and deletions are marked with sort of a caret and vertical bar symbol. So all looks good at this point. However, when I show the Comments List, I see addtional comments that indicate "Replace - The following text attributes were changed: fill color." Those comments do not appear in the page view unless I check the Formatting check box to show them. With Formatting unchecked, I print a comments summary and all of the "Replace - Fill Color" comments" appear on the resulting comments summary.
    I only want to show text edits, not text formatting changes. So questions are:
    1. Why, when the Formatting checkbox is unchecked, do the text formatting comments still appear in the comments list when they do not appear on the page display.
    2. How can I print only the text content edits and not show the text formatting changes when using Print Comments Summary.

    Hi,
    You can set ExecuteWithParams as default activity in the task flow then method activity to return total no of rows passing to Router activity if your method has value 0 then call Create insert operation else do directly to page.
    Following idea could be your task flow
    Execute With param (default) > SetCurrentRowWithKey > GetTotalNoOfRows (VOImpl Method)
    |
    v
    Router
    1. If pageFlowScope outcome is 0 then call CreateInsert > MyPage
    2. if pageFlowScope outcome > 0 then MyPage
    hope it helps,
    Zeeshan

  • How can I deal with error 200621 and 200279?

    Hi, I am new to Labview. I was asked to use Labview to do some basic frequency-domain analysis for my homework. The hardware I use is myDAQ student instrumentation device. Basically, I am asked to transfer audio signal from MP3 to Labview by using the audio in jack on myDAQ, and transfer the editted signal to a speaker by using the audio out jack. Also, I was asked to have a toggle to let users alter from music to white noise. 
    Here's the problem. If I do not switch between white noise and music, it works well. But as long as I click the toggle, either error 200621 or error 200279 will appear. And I referred to the help file (http://digital.ni.com/public.nsf/allkb/AB7D4CA85967804586257380006F0E62), but I still have no idea how to solve the problem. Could anybody give me a detailed instruction, thanks.
    vi file mentioned above is attached 
    Attachments:
    HW1.vi ‏197 KB
    Vm495+HW_1.pdf ‏153 KB

    Take a look at:
    Getting Started with NI-DAQmx: Getting Started with NI-DAQmx Programming in LabVIEW
    Learn 10 Functions in NI-DAQmx and Handle 80 Percent of Your Data Acquisition Applications
    You can also find a lot of DAQmx examples with Find Examples under the Help menu.
    Also, if you right click on a DAQ assistant and choose Open Front Panel, it turns it into a subVI where you can look under the hood and see how the DAQ assistant is doing its job with the basic DAQmx functions.
    For queues, look for examples for that as well.  And also look for the design templates under File / New... for Producer/Consumer architecture.  Also do more searching on the forums for questions and answers about queues and producer/consumer.

  • How can I fix the error image and get the regular image to load?

    Ever since the recent big update for Firefox I've been getting some sort of error for loading certain images.
    Here: http://tinypic.com/r/103bf3l/8 I have put one of those sites that give that error
    --The original image that is supposed to show is also available in that image
    Certain sites give a different size of that error image, but it looks the most like an error triangle
    I've already tried the troubleshoot of not loading images and none of the options worked
    If someone has this problem or knows how to fix it, it would be a great help

    Solution found:
    The addon "Stylish" with the theme "Google two themes" interfered with the image loading of the sites. Disabling the theme was the solution.

  • How can I Show PDF in C# and disable user interaction

    I am testing the C# example project BasicIacOCX. I can run the project and there I can hide the toolbar of the Acrobat-control (pdfWindowLeft.setShowToolbar(false);). But if I press F8 the toolbar is visible again. Now I found out nothing how I can disable that the user can press F8.
    Any ideas?

    Correct, there is no support for permanent hiding of the toolbar.  Also, with Acrobat X, the whole idea of a "toolbar" has changed.

  • How can I show the "file," "view," and "format" drop down menus on my tool bar?

    I am a new mac and Pages user.  So far, I think I have a handle on the inspector, but a lot of what I have been looking up requires clicking on the "insert" drop down menu...I don't show that on my screen.  How do I get those menus to appear?  I have discovered how to place the different icons on the tool bar, just not those drop downs.
    I took a screen shot of how it looks.

    For details of how to restore it, see the [[menu bar is missing]] article.

  • How can I withdraw my rss feed and cancel my podcasts?

    I've got a podcast series that I want to withdraw.  How do I cancel it?

    Method 1: add the following tag to the feed between the 'channel' tag and the first 'item' tag:
    <itunes:block>yes</itunes:block>
    If you have access to the server where the feed is held you can simply download it, add the tag in a plain text editor such as TextEdit on a Mac (it must be in plain text mode, not Rich Text which is often the default), then re-uploaad it.
    if you have made your podcast in one of the online services you may not have access to the feed to edit it, so:
    Method 2: I quote -
    If you are no longer creating a podcast and you want it removed from iTS, you should:
    Log into iTS.
    Find and select your podcast.
    Click on Report a Concern under the Links heading on the far left.
    Select "Remove a Podcast" from the Choose a Reason menu.
    Explain why you want the podcast removed.
    In most cases, we will remove the podcast from iTS, especially if we find that the podcast is no longer available at the feed URL.
    That's the official method, though there have been cases of Support simply telling people to add the blocking tag, even though they don't have access to the feed.

  • 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

  • OSX sometimes places 31 character limit on file names. How can I get this error to stop?

    This error notice doesn't make sense, since many of my file names exceed 31 char. This error message pops up when saving documents, esp. web pages. As a consequence, OSX will refuse to let me save the file, until I shorten the name and so remove informative identifying features of the file name. But most of the time, OSX is perfectly happy to save files with names longer than 31 char. How can I get this error notice and block to turn off?

    I have also seen this issue it occurs regularly when transferring word documents files from my Macbook Pro running OSX 10.5.8 to my iMac running 10.9.4.
    My iMac HD should be formatted to factory standards as well since I have not mucked around with it since I bought it.

  • HT4743 I just purchased an iTunes TV show and it successfully downloaded. It is now saying that I do not have the proper version of QuickTime on this version of iTunes (10.6.3). How can a show I purchased be incompatible with the latest version of iTunes?

    I just purchased an iTunes TV show and it successfully downloaded. It is now saying that I do not have the proper version of QuickTime on this version of iTunes (10.6.3).
    How can a show I purchased be incompatible with the latest version of iTunes?
    I want a refund, but I can't even figure out how to request one through support. Super frustrated and long time Apple customer.

    After a day of trying, both iTunes and my Apple TV are telling me that the episodes of Scooby Doo I purchased are incompatible due to QuickTime. I still don't understand how I purchased something from iTunes that doesn't work with iTunes.
    the exact error I receive when I try to play an episode is the following:
    "This movie requires QuickTime, which is not supported by this version of iTunes."
    Any advice would be great!

  • If you log out of your apple ID on your iPad and let someone else use it and they use facetime.  How come it shows my facetime history and not theirs?   I do not want them to have access to my history.  How can I prevent that and they can see their own?

    If you log out of your apple ID on your iPAD mini and let someone else use it and they use facetime.  How come it shows my facetime history and not theirs?   I do not want them to have access to my history.  How can I prevent that and they can see their own?  Or is the history associated with the iPAD mini itself and not the actual icloud user account?

    You are logging out from
    Settings -> FaceTime, right?
    My guess would be though, that the FaceTime history is stored locally on the device, so anyone using it will see the entire device history (I cannot imagine that FaceTime uploads the history to an Apple server anywhere - I'm sure it is just logged locally on the device - based on my iPhone and iPad show completely different histories, for example).

  • I am running Windows 7 64Bit system and everything was working normal.  However, I am now getting an error message stating objc.dll is missing.  I've re-installed Itunes but to no avail.  How can I get this error message corrected?

    I am running Windows 7 64Bit system and everything was working normal.  However, I am now getting an error message stating objc.dll is missing.  I've re-installed Itunes but to no avail.  How can I get this error message corrected?

    See this User Tip by turingtest2
      https://discussions.apple.com/docs/DOC-6562

  • Using Mountain Lion (OS 10.8), in Contacts, how can I show a count of number of contacts total and/or number of contacts in a group?

    Using Mountain Lion (OS 10.8), in Contacts, how can I show a count of number of contacts total and/or number of contacts in a group?

    If you scroll the list to the bottom, there might be a count. I haven't figured out why you sometimes get a count and other times you don't.

  • What is this Configuration Error: 1  = I must reinstall the AI every time again and again and loose so much time! How can I solve this error?

    What is this Configuration Error: 1  = I must reinstall the AI every time again and again and loose so much time! How can I solve this error?
    please answer on my email too
    [email protected]

    Nobody can tell you anything without proper system info or other technical details. The simply answer probably is that you are running your system with insufficient user privileges and system restore or some security tools are blocking stuff/ erasing your install.
    Mylenium

Maybe you are looking for

  • I can't deinstall iTunes due to error 0x80070091.

    I can no longer access iTunes from Windows 7. Following the support protocol I am deleting all Apple related software,but cannot delete the iTunes folder. It says the folder is empty but when i try to delete, it reports an unexpected error is prevent

  • Filling a text field in Safari and saving the page as 'save as'

    My telephone system creates a call log and I like to automate downloading it weekly. In order to get in it needs to enter a password (there is also a user name field but that is left blank by me). Once in is should safe a 'Save as" copy to my desktop

  • Suggest a good database?  (criteria within)

    I currently use a Microsoft Access to store data, which I then use to generate a static website using a Java application I wrote. The reason I use Java so heavily is that it is platform-agnostic; I hate losing code when a platform (DOS, Windows 3.1,

  • Pen Pressure on Monoprice tablet

    So I'm trying to get pen pressure to work in Adobe Photoshop. I'm running Windows 8, PS CS6. Most answers provided say to update driver but mine is up to date. Pen pressure works fine in ArtRage and the Test panel of the software settings:  http://i.

  • Microsoft ISATAP and 6to4-Adapter yellow triangles in device manager

    Hello, we´ve disabled IPv6 via Registry. Now we noticed that the ISATAP and 6to4-Adapter have yellow triangles in device manager. My question is: is that normal behavior, when disabling IPv6? Can we remove this adapters without no issues? Or schould