How to stop attribute level validation when entity validator fails?

Hi,
Can you suggest any way to achieve the desired behaviour on the following scenario.
Table contains the following columns
1. Grade
2. Grade Rate
3. Status
Constraints:
1. Grade and Grade Rate together must be unique.
2. Grade and Grade Rate are mandatory fields.
Implementation:
1. Have Mandatory validator at attribute level for Grade and Grade Rate by default.
2. Alternate key is defined based on Grade and Grade Rate and added the same as Entity validator.
User operation scenario:
User adds a row in a table, entered 'GradeOne' as Grade, tabbed out and then entered '5 %' as Grade Rate (Existing row of the VO has a row with similar data already). When user try to navigate to other row, both validation at attribute level and entity level fires and gives the following error messages.
Error Msg 1. Grade and GradeRate should be unique.
Error Msg 2. Attribute GradeRate is required.
Expected behaviour:
I can understand the reason why ADF throws both the errors (coz it didn't consider the invalid value of GradeRate posted into attribute), but the error messages confuses the user. It would be great if he get only one error message in this scenario (i.e. Unique validation alone)
Question:
How can I restrict in such a way that only one error validation happens in a request (i.e. either attribute level or entity level or in a particular order}
Thanks in Advance.

Hi,
the reason ADF does this is for performance. What if you create a custom error handler in the DataBindings.cpx file and use this to suppress all other errors?
See
Decompiling ADF Binaries: Customizing Business Components Error Messages
:http://www.adftutorials.com/adf-custom-error-handler-to-display-custom-message-to-user.html
Frank

Similar Messages

  • How to stop a process chain when its running?

    Dear Experts,
    How to stop a process chain when its running? is it that a chain can be stoppend when we open an info package of that chain ?
    Thank you,
    Raj

    Hi,
    Goto the main menu process chain --> choose the remove from the Schudule...
    Regards
    sathis
    I hope it helps to u... please assign the points

  • Could somebody please advice how to stop the pages dropping ,when l go on ebay ,utube etc

    could somebody please advice how to stop the pages dropping ,when l go on ebay ,utube etc

    could somebody please advice how to stop the pages dropping ,when l go on ebay ,utube etc

  • How to stop iphone from autoplay when plug into car audio system usb?

    how to stop iphone from autoplaying when connected to your car audio USB ?

    You need to remove the association that Windows has with that particular file type. To do that, you need to open Windows Explorer. From there, click on Tools, then Folder options. Click on the tab that is named file types. You then need to find the extension for the photos that appear in the iPhone, then click that registered file type. Once you do that, there is a section to select the program to open that file type with. You can click on the change button, and that will allow you to change the program that it opens with, or restore the default. There is also a box that can be checked to always use the selected program. If you unselect it, it will prompt you next time on what program to use.
    Hope this helps.

  • TS1424 How do u get a refund when the app fails to work and the app knows it but keeps charging???

    How do I get a refund when an app fails and the company knows it but still charges you?

    Go here:
    http://www.apple.com/support/itunes/contact/
    and follow the instructions to report the issue to the iTunes Store.
    Regards.

  • Using ADF BC I wnat to customize error message when entity validation fails

    Hi,
    I am using ADF BC for model.JSF for view-controller
    I want that when entity level validation fails during update of record the error massage should be generate accourding to the values inputed by the user.
    how can i add programatically generated error message.
    Please if possible provide some example.
    Thanks
    ajit

    Try this:
    http://download-west.oracle.com/docs/pdf/B25947_01.pdf
    9.3.3 How to Create an Entity-Level Method Validator

  • How to stop the Flex application when user clicks on Cancel button from JS-confirm message?

    Hi All,
    I use the next code when a user clicks on a link:
    private function clickHandler():void
          ExternalInterface.call('confirm', 'Of course you want to go to the Adobe forums!');
          navigateToURL(new URLRequest('http://forums.adobe.com'), '_self');
    This will show up the javascript confimation box. But when the cancel-button is clicked, the user goes straightly to http://forums.adobe.com...
    How to stop Flex performing the next code when a user clicks on the Cancel button?
    Or, how to catch which button is clicked by a user in Flex?
    Thanks!

    I agree with Mr. Hall that using mx.controls.Alert in Flex may be a better route.
    Show the Alert like this:
    // show an alert with a question and yes and no choices
    Alert.show( "Would you like to go to the Adobe Forums?", "Question",
         Alert.YES | Alert.NO, this, closeHandler, null, Alert.YES );
    Then handle the response in the closeHandler() function:
    protected function closeHandler( closeEvent:CloseEvent ):void
    if( event.detail == Alert.YES )
         navigateToURL( new URLRequest('http://forums.adobe.com'), '_self' );
    else if( event.detail == Alert.NO )
         // they chose no
    The following documentation on Alerts may be helpful:
    http://www.flexafterdark.com/docs/ActionScript-Alert
    Let me know if that helps...
    Ben Edwards

  • How to stop Aperture starting up when iPhone is plugged in?

    Hi all,
    silly question... but Aperture keeps opening whenever my iPhone is plugged in. Does anyone know how to stop this? Not a big deal... but its getting annoying!
    Thanks in advance!
    Lil

    And, if you want Aperture to launch when you connect your camera, but not when you connect your iPhone, open Image Capture when your iPhone is connected, highlight your iPhone in the sidebar, and select the No Application option in the lower left-hand corner where it says "connecting this iPhone opens"
    You can have different options for each device.

  • How to stop suggestions for words when texting

    How do I stop suggestions for words when texting?

    Settings>General>Keyboard>Auto-Correction>Off.

  • TS1702 How to stop an app download when hit accidently

    How do you stop an app download when you accidentally hit the download button on iPad 3?

    I think the question isn't about purchasing but actually downloading. For example if you see that there is an update available and you start to download, lose internet connection, the application will essentially be locked from use until the update finishes.
    I ran into this problem on holiday where I tried to update Camera Awesome but the internet was painfully slow (56k or less speeds). The application started to download but was taking literally hours to complete. In the meantime I couldn't access any of the photos within that application or use it for new pictures.
    In short, any application that is being downloaded, installed, etc will be unavailable until that process completes.

  • HELP - How to stop audio from starting when captivate loads

    Hi there,
    I'm trying to work out how to stop my audio files attached to objects (images) from playing when captivate initially loads.  I have a number of images with audio and when captivate initially loads all of the audios play at once which isn't good.  I only want the audio associated with the object to play when the user clicks the item.   
    I've been researching for days and can't find an answer.  Am I doing something wrong, or am I overlooking something.? 
    Could someone PLEASE help me with this or at least put me in the right direction.  Any suggestions will be appreciated!!!
    Jasmin 

    To achieve that you have to separate the audio from the image. The principle I explained in this article http://lilybiri.posterous.com/audio-objects-control-them
    The audio will play when the object to which it is attached gets visible. If you attach the audio to another object like a non-visible highlight box (that is my 'audio object' but you can use also a non-visible drawing object), you can set this 'audio object' to invisible in its Properties panel. When the user clicks on the click box, execute the action 'Show audio object' and the audio will play. I would even recommend using advanced standard actions over a simple action because you will be able to hide the other audio objects at the same time, and the play head will not be released - see video http://www.youtube.com/watch?v=M3nKi-DB6Fw&feature=plcp
    You have to know that hiding an audio object, will pause the audio. If you show it again, it will continue playing, not restart.
    Lilybiri

  • How to Stop the method Action When an Exception Occur in other Method

    Hi All ,
    public void action( Event clientEvent) {
    startAction();
    JOptionPane.showMessageDialog(null, getDocumnetId());
    how to Stop the method action ( "action" ) if an exception occur in the method ("startAction")
    ( if the exception occur we doesn't need to show the JOption Message )

    Hi,
    try FacesContext.getCurrentInstance().renderResponse();
    Frank

  • How to stop the video buffering when video is paused

    Hi
    I am developing the video player with custom video controls and I want to stop the video buffering when my video is paused. As sson as I play the video the buffering starts from the last bufferring point.
    can any one please help me for doing this i searched lot but not getting the solution please help me out to sort out this.
    Please refer the following link that I want to create the progress bar for my video player.
    http://tv.adobe.com/watch/training-with-trani/shake-detection/
    Thanks
    Sameer

    Hi
        Here is the code i would tried bothe bufferTime and maxBufferTime but not getting the required output.
        please check the code below.
        var _videoInfo = new Object();
        _videoInfo.onMetaData = onMetaDataHandler;
        ns = new NetStream(nc);
        //ns.maxPauseBufferTime = 0;
        ns.client = _videoInfo;
        ns.addEventListener(NetStatusEvent.NET_STATUS,netStatusHandler);
        ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR,asyncErrorHandler);
        sndTransform = new SoundTransform(initVol);
        vid = new Video(stage.stageWidth,stage.stageHeight);
        vid.smoothing = true;
        videoCont.addChild(vid);
        vid.attachNetStream(ns);
        ns.play("video.flv");
        ns.soundTransform = sndTransform;
    Thanks

  • How to stop tposting of documents when there is an error in record

    Hi,
    I have one issue with respect to posting of documents.
    In my Exl sheet there are 1900 records which would split into 950 records during run time.
    For each 950 records a document to be created.  Here the issue, during test run thers is no error where all the validations are done and records in xl sheet are correct.
    However when  posting, i am submitting to to standard program rfbibl01, where it is creating the session and output of the program is not showing any errors - report.
    During execution of  session, it is creating document for 1 set of 950 records and for 2 set it is finding some error and not creating any document.
    Now my requirment is as follows: since there is an error in second set, i don't want to post any record starting from the begining. No document should be created.
    In my program  once i have submitted to standard document i don't have any control over the progam in stopping the creation of session or document creation.
    Any solutions are most welcome.
    Thanks in advance.
    Regards
    Harikrishna
    Edited by: Harikrishna yoganarasimhaiah on Feb 1, 2008 7:46 AM
    Edited by: Harikrishna yoganarasimhaiah on Feb 1, 2008 7:49 AM

    Hi ,
    Use the FirstVisibleRow property of the table , bind with some attribute containing the index of the selected row...
    Regards
    Yash

  • How to stop finder auto slide when click subfolder in columns view

    Hi
    when i use finder in the columns view and click something in the next level at right, the finder will slide right and relocate with the subfolder. how can i stop it.

    You can't. It has to slide over to display the contents of the selected folder or the preview info.
    As long as there is room in the window, nothing will shift.
    You can always use List view if you don't want it to move.

Maybe you are looking for

  • Web interface displays via Portal using Mozilla or Firefox

    We have several web interfaces (BW-BPS) and have created iViews on our Portal (EPP 6.0). These iViews properly execute in IE 6.0. However, when we execute the BPS iViews using Mozilla or Firefox we see significant display discrepancies. For example,

  • 9.3.0 install questions

    I need assistance with several questions & issues regarding SP2 vs SP3 Using my Enterprise Distribution License Agreement (http://get.adobe.com/reader/enterprise/) I am able to download the installer code for Adobe Reader v9.3.0 for Windows XP SP2 an

  • Hidden users

    I've researched the topic 'hidden users' here but all the questions seem to be about how you hide a user. I'd like to turn that round: When I used a freeware app called InforMac I found I had 24 hidden user accounts on my G5. Why? Who are these guys?

  • Weblogic 5.1 Clusters

    I am trying to find out information regarding to the setup of a Weblogic 5.1           Cluster.           I am in the process of reading the online docs as a start....           Base components being currently utilised on 4.5.1 are:           - Solar

  • Convert Numbers to Excel Format

    How do i take a numbers spreedsheet and convert it to Exel so when I send it my buddy how has a pc can read it?