Throw new OAException stops further processing ?

i have a fireAction on a page attribute that i am handling in the processFormRequest. in here i am doing some validation and throwing a OAException with message type OAException.ERROR . my understanding is this should cause the page processing to halt. instead, i see that even tho the error message is displayed on top of the page, further processing happens . also, if say user enters data in that field and instead of tabbing out (which causes the action to fire) just clicks Save, then the action on the field fires first, displays the error msg, BUT then continues with the SAVE.
can someone confirm for me what should be the expected behavior when you throw a OAException and could i be seeing the above behavior because i do not have a EO (page based on just a complex query VO but with enterable fields). ?
thank you.
CORRECTION - the exception does stop the processing for that specific fireaction in which it was thrown, HOWEVER, how do i PREVENT the user from leaving the field until he has fixed the offending data attribute. Like i said earlier after the exception, if the user hits the Save, that goes thru just fine (and the bad data gets saved).....
Edited by: user11972136 on Feb 3, 2013 10:45 AM

Hi,
What you can try is, associate a FIRE ACTION event with your text field and as soon as the user input the value and tab out, do the validation in Process Form Request. If there is any error in the input value, then redirect it to the Process Request, and execute the below code.
OAMessageTextInputBean inputBean = (OAMessageTextInputBean) webBean.findChildRecursive("NameInputTextFieldId");
inputBean.setText(pageContext, "");
OABodyBean oabean = (OABodyBean)pageContext.getRootWebBean();
oabean.setInitialFocusId("NameInputTextFieldId");
The above two statements will actually clear the value of your text field and set the focus on the same field.
Once you have set the focus on the field then you can throw the exception to the user using the "throw" clause.
Regards,
Saurabh Agrawal

Similar Messages

  • How to stop further processing of process chains

    I have process chains running for quite sometime. At the last step i am loading to a ods. i want to stop the last step for some time. I know we do that by placing a red arrow to stop the further processing...but i dont know how to do it ? where from should  i get the red arrow ... ? I looked in process types i couldnt find any connectors
    plz give me step by step navigation..
    points will be assigned for inputs.

    Hi Bhanu,
    I tried doing the remove link, but when i am trying to activate the chain it is giving me a error saying no predecessor exists...which is true...
    my scenario briefly is,
    The process chain is scheduled for tonight. In one of the last steps is loading data in my ods, i want the process chain to go as scheduled ..but it should not execute the load to the ods...how can i achieve that...? plz help me...
    I should be able to activate the chain and let it run as usual without the last step

  • Variable personalization error stops further processing

    Hello,
    I am having problem with variable personalization, we are on BI 7.0 SP 12 with latest frontend GUI.
    The steps followed are :
    1. execute a query in BEx analyzer
    2. In the variable screen, try to personalize by clicking personalization button on the top right corner.
    3. move fields from left ( available variables ) to right ( personalized variables )
    4. Select some value for field from availble values
    5. Also select the check box to show the variables ( bottom left corner) with personalization
    6. Click on 'ok'.
    After this if I try to execute the query I get error 'the value selected for variable is not correct', and if I click on 'personalize' to change/delete personalization, I get same error and basically I am struck there, neither can run the query nor can change the personalization, happening only with BI 7.0 GUI, happens on 2 machines that we installed new GUI .
    I have searched the forum but could not see anything like my problem. Please let me know if anybody has faced the same and found solution.
    Thanks,
    BW_US

    Yes, We are having SAP GUI 710, SAP Netwaever Support package stack (SPS) 12.
    Even then the same issue. The issue is because I am thinking, the new personalization works in such a way that, the personalized variables are no longer seen on the variable screen. So, first if I got error for the personalized field, and the next time I run the query and dialog box appears, the personalized field will not be shown. But it should at least let me go to 'personalization' screen and then be able to change the data for that field.
    Anybody faced the same ?

  • How to stop message processing based on validation?

    Hello experts,
    I have a requirement to stop message processing in the graphical mapping based on validation results. Here is the scenario - messages are translated using graphical mapping and sent to the target system. An RFC lookup will be done to ECC to determine if the data in the message is good. If the lookup returns a negative result, message processing should be stopped right there.
    I guess we can throw an exception from the mapping to force a failure and stop further processing, but that will cause the message to show up as failed on SXMB_MONI and cause alert emails to be sent out in PROD. Another option will be to supress creation of the root node itself, but I think the message will then fail in the subsequent "call adapter" step if the target schema has a min occurence of 1 for the root node (as in the case of IDocs).
    Is it possible to do it without using BPM?
    Thanks,
    Michelle

    Hi Michelle,
       If your requirement, to stop message processing without sending an alert?
    If yes, then you can have a alert rule, not to trigger alerts on a failure (And to raise an exception based on the result from RFC loookup).
    If your requirement is not to make the message fail, then you have to go for the ccBPM route.
    Best Regards,
    Ravikanth Talagana

  • Throw new OAExecption not displaying on Screen

    Hi OAF Gurus,
    I am facing a very strange problem.
    I have a code in AM, that has a try and catch block , in the catch block I throw new OAexcption, this is displayed in the jdev log , but this exception message don’t not come on screen
    code
    public void applyTransaction()
    OADBTransaction oadbTxn = this.getOADBTransaction();
    try
    oadbTxn.commit();
    catch(Exception e)
    throw new OAException(e.getMessage(),OAException.ERROR);
    is there any profile option / diagnostics level to be set for this exception to come on screen .
    or this is any environment settings ?
    Thanks
    Chaitanya

    This problem, I have faced in intial versions of Jdev, Jdev before CU2 for 11.5.10, sometimes, even after recompiling and then re-starting local jdev server, the server took last versions of class file, the problem always solved if we delete myclasses in jdev.
    I remember a few threads where the standard advise was to restart jdev, clear myclasses along with a bunch of other steps. Just misleading :) Even I never had this issue.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Stopping the service order from further processing

    Hi Experts,
    According to my requirement, the service orders will be generated by the call centre agents , then they will release and the technicians will be determined . The pager messages will go to the technicians.
    But the service order whic are generated after 5 PM , we should not send the messages to the technicians althought the service orders are released.
    For this where should I do the coding , which is the exact place to stop the service order from further processing.
    Please help me out in this.
    Thanks in Advance,
    Praveen

    Hi,
    The best way would be to implement a ORDER_SAVE Badi..wherein u can stop a service order for further processing based on the status..
    Regards,
    PePe

  • The backup to my new 5S stopped and won't go any further

    the backup to my new 5S stopped and won't go any further

    clyne wrote:
    Yes Yes i have tried both of these and i had absolutely no luck whatsover, Do you have an other suggestions or any further information to help figure out whats wrong or what to do?
    This is just a data point and may not apply to your MBA but it might point you in the direction of the failure. 
    I have a mid-2011 13" MBA that developed symptoms similar to yours.  As it is still under warranty I called Apple and went through a lot of 'hold these keys on startup' checks and none of them worked so I was asked to take it to an Apple store or an AASP.  I chose the latter because it is only 20 miles away and the nearest Apple store is 70 miles away.  The AASP shipped it to their central repair facility which, coincidentaly, is near the Apple store but their central repair faciltiy couldn't fix it, either, and shipped it to Apple in Houston, TX.
    When I received it back (4 days later--pretty quick turn around especially since going through a middle man) the repair order stated that they replaced the 'logic board, 1.8GHz, 4GB'.

  • Cleanly stop a process in an  XI adapter module

    Hi,
    I have a java adapter module that decides whether the process should carry on or not.
    When I want to stop the process I throw an UnsupportedOperationException that is reported in Runtime Workbench -> system monitoring.
    Are there any other means to stop the process (other exception....) from an adapter module?
    Thanks
    Yann

    Hi,
    I have a java adapter module that decides whether the process should carry on or not.
    When I want to stop the process I throw an UnsupportedOperationException that is reported in Runtime Workbench -> system monitoring.
    Are there any other means to stop the process (other exception....) from an adapter module?
    Thanks
    Yann

  • Problem in stopping the process for a while

    Hi all,
    I am facing problem in stopping the process when i call *.exe from java. here i am explaning my problem in detail.
    main(){
    m1();
    m2();
    m1(){
    Runtime r=Runtime.getRuntime();
    Process p=r.exec("solve1.exe");
    // this exe file will create a text file (temp.txt), and it is creating it with out any problem.
    m2(){
    using temp.txt here.
    problem is when i call m1() it will create temp.txt , but by the time i call m2() temp.txt is saving into the disk and m2() is not able to find the file.
    here what i need is there should be some time gap to before i call m2(); and i tried even with
    p.waitfor(); in m1() -if i use this the program is not exiting out of runtime??
    any one kindly hepl me
    bye.

    A test app(if you don't have sol, then pick another app)
    public class WaitForTest{
        private WaitForTest(){
            try {
                Process p = Runtime.getRuntime().exec("sol.exe");
                System.out.println("Waiting....");
                p.waitFor();
                System.out.println("Done waiting") ;             
            catch(Exception e)
                    e.printStackTrace();
            static public void main(String[] args){
                new WaitForTest();
    }

  • Updating new PID of thr process in SAP MMC

    Hello,
    There was an abrupt shutdown in process of rslgsend and igs*
    I have manually restarted the process and it is working on SAP level,although as a new process is started
    its PID is not updated in SAP MMC and hence it is displayed in grey status even though services are up and working fine
    Can anybody suggest, how to update the process with its new PID in SAP MMC
    regards,
    Dwipam

    thanks for your reply,
    Any other procedure to change the PID of the process associated to new PID. Because, process with old PID is expired and hence in SAP MMC it is displayed in stop mode
    Also if possible can you please provide a doc. which explains how and where PID of process are registered in SAP MMC, so that alter some alterations, we are able to get new status of process
    regards,
    Dwipam

  • How to stop the process chain on every saturday and delay until sunday 6 am

    Hi experts,
    We have a maintanence window on every saturday until 6 am on sunday.
    My question: I don't see any option in the start variant of the process chain under restriction to stop the process chain on saturday and delay the run until sunday 6 am. Any idea?
    Please let me know the steps. Thank you in advance.
    Sharat.

    how to create a event for a process chain? please let me know step by step instructions.
    Also I will schedule the regular process chain until friday and use the new variant to schedule it on sunday at 6:00 pm right?
    Thanks in advance.
    Sharat.

  • Can we stop the process chain in middle of the process ?

    hi experts,
        Can we stop the process chain in middle of the process after scheduled.
        my process chain is like  start--->load>psa>ods1-->further updates--->ods2. In this case I have already scheduled but i want to stop the process how can i. After rectifying the error I want to restart again.
    if it is possible what are the steps we fallow pl give me step by step procedure.
    thanks & regards.
    venkat

    stopping the process chain is pretty simple. you just need to kill the jobs associated to them as mentioned by other folks.
    for restarting, have a look at this blog.
    Restarting Processchains
    there he explains how to restart a stopped process chain.
    Raghav

  • An error has occurred which stopped the processing of the PDF. Trying to convert a .tif file

    I'm new to this conversion system.  I tried several times to convert a .tif file to a .pdf file.  I got the same message every time: "An error has occurred which stopped the processing of the PDF".  What am I doing wrong?

    Hi stefan235235,
    I'm sorry that you're having trouble combining PDF files using Adobe PDF Pack. Does the error occur with all files that you try to combine, or just a select few?
    Make sure that the files you're trying to combine aren't secured, password protected, 3D, or part of a PDF portfolio, as these types of PDFs can't be combined.
    If you're combining supported file types and still getting that error, please try the following:
    Log out and clear the cache. Then log back in to https://cloud.acrobat.com/combinepdf using a supported web browser (see  System requirements | Acrobat.com).
    Try combining smaller groups of files, to see if you can narrow the error down to a specific file or files.
    Please let us know how it goes.
    Best,
    Sara

  • Downloads stop at processing file with no error

    Have latest update of system and itunes, and i'm trying to download some new songs and they all stop at processing file. i can't seem to buy or download more than one at a time, and i'm not getting an error sign or anything. if i quit itunes and reboot it, the song will have downloaded completely, but as soon as i try to buy and download another song, the same thing happens. Suggestions?

    YEP.
    If you google this issue, you'll see people have been struggling with this for years.
    I just bought an album from iTunes today and have the same problem.
    Screenshot: http://dl.dropbox.com/u/51836583/Screenshots/l4.png
    Notice how it keeps redownloading the tracks every time I reboot iTunes.
    And as I was typing this, one of the files actually completed processing: http://dl.dropbox.com/u/51836583/Screenshots/l5.png
    I guess the joke is on us for buying music from iTunes.

  • Add a shared table into rules without stop any processe,How can I get error

    I have a Single-Source Environment,and want to add a new shared table for replication.
    Where I add capture rule,PROPAGATION rule and apply rule without stop capture process, propagation process and apply process,The replication will not process in this table ,and other replicated tables are OK.I can't find any error in the Environment,
    While it done well when I stop these processess before add rules.
    If this happened,How can I detect this failure?

    Thanks for your reply!
    But I find no error however
    In Streams Replication Administrator's Guide,I find follow word's:
    If you perform administrative steps in the wrong order, you can lose LCRs. For example, if you add the rule to a capture process rule set first, without stopping the capture process, then the propagation will not propagate the changes if it does not have a rule that instructs it to do so, and the changes can be lost.
    I think it is the matter "lose LCRs",but how could I know whether LCRs are losing ?
    thanks again!
    Message was edited by:
    xyz_hh
    Message was edited by:
    xyz_hh

Maybe you are looking for