How can I set an at the entity level validation rule

Hi all
I have a table that contains CompanyId DepartmentId, PostionId and PositionCode etc.
I have to create a form to add new Postions in companies and departments.
And I have to fix a contrint at the level of the entity such as group two number of records in this table have the same companyId and PostionCode information
That's a companyId should not any document which is to have several codes Postion. Always the CompanyId PostionId combinaisondes must be unique.
So I set a constraint in the entity level, I think that Yes...
Please help with this problem...

Thank you and best regards,
Ranjith C

create a key to spare for the CompanyId and PositionCode information...
Have the validation of the key unique to the entity level...
http://www.gabrielsideras.com/2010/09/28/ADF-unique-key-validation/
http://andrejusb.blogspot.com/2011/07/unique-key-validation-for-lov-based-on.html

Tags: Java

Similar Questions

  • How can I set one of the buttons on MS Explorer Touch Mouse double-click?

    I have a MS Mouse older 5000 and there is an option to set one of the two buttons on the side of double click.  I like this feature but can't find a way to do it on the Explorer Touch Mouse.

    Hi Mark,

    Thanks for posting your query in Microsoft Community.

    From the description of the problem, want to set buttons double click of the mouse. I'll be happy to help you on the issue.

    Let us try the steps from the following link:

    Change the mouse settings (to change the operation of the mouse buttons)
    http://Windows.Microsoft.com/en-us/Windows7/change-mouse-settings

    I hope this helps! Let us know if you have problems with Windows in the future.

  • get the entity level validation error after clicking the Cancel button

    Hi Experts,

    JDEV 12.1.3.0

    I have a popup and I create several rows in a table. And when you click on CANCEL, I get the validation error level feature on the home page.

    Cancel call the method below and also set immediate = "true".

    /*

    * return allchanges

    */

    {} public void refreshRemoveNewRow (rank)

    If ((row) .getNewRowState (ViewRowImpl) () == Row.STATUS_INITIALIZED) {}

    Row.Refresh (Row.REFRESH_UNDO_CHANGES + Row.REFRESH_REMOVE_NEW_ROWS + Row.REFRESH_FORGET_NEW_ROWS);

    } else {}

    Row.Refresh (Row.REFRESH_UNDO_CHANGES + Row.REFRESH_FORGET_NEW_ROWS);

    }

    }

    If I try with Rollback I get Transaction has expired. My behavior of workflow is also use existing Transaction if Possible.

    Thank you

    Roy

    Hello

    Try again with

    public void refreshRemoveNewRow(Row row) {
       if (((ViewRowImpl)row).getNewRowState() == Row.STATUS_INITIALIZED) {
             row.refresh(Row.REFRESH_UNDO_CHANGES +  Row.REFRESH_REMOVE_NEW_ROWS);
        } else {
             row.refresh(Row.REFRESH_UNDO_CHANGES + Row.REFRESH_FORGET_NEW_ROWS);
        }
    }
    

    Beside that, can you post the jdev console stack trace, to see which exactly entity and validator is in question...

  • Popup is get closed after the entity level validation error.

    Hello

    I have a requirement where I am creates a line entity in a popup. In the context menu, I have an attribute which is mandatory under certain conditions. To do this, I said that EO level method validator that checks if filed value is entered or not when it is required.

    This validation happens correctly, I am able to see the error message in the user interface. But the problem is, popup closer, when I click on ' save record ' (this button calls the validation logic for the record) button in the user interface. " Becuse in the logic of the 'save' button, I close the popup (appellant hidePopup) after committing the registration. But it should only occur when the validation is successful. But it happens the same validation is not as successful. I mean, after the validation logic that he goes to the next run of line code. And the error message is displayed only after the execution of all the lines inside the method of the Save"" button.

    How can I limit the logic of hide popup on successful validation.

    Jdev version: 11.1.1.7.0

    Kind regards

    Dietsch.

    Hello

    When you run the validation operation programmatically try to see if there are errors;

    .

    .

    .

    operationBinding.execute ();

    If (operationBinding.getErrors () .isEmpty ()) {}

    Without exception, the operation is success

    } else {}

    Exception is thrown by the method, handle it here

    OperationBinding::getErrors() return list of local

    The list of errorList = operationBinding.getErrors ();

    Alternative route ' on error ' go here

    }

    If there is no error not to close the popup while if there isn't one, then close.

  • How can I set size of the document to view in pixels?

    Hello

    I use the version of Photoshop CC 2015.0.0.  I'm working on a .jpg file.  Bottom left of the Photoshop window, the size of this file are displayed in inches.  If I click on this size screen, I get a popup that says the dimensions in pixels, but I really prefer if the dimensions have been displayed in pixels by default.  Can someone tell me if there is a way I can get there?

    Thanks in advance,

    Paul

    Choose View > rules

    Right-click on the rule at the top of the image

    Choose Pixels and the two leaders and the note at the bottom of the image will be displayed in pixels

  • Of the entity-level validation

    Hi all
    At Jdev11g, I put the validation on the level of the attribute to check if a field (example password) contains only alphanumeric.
    I used the rule Type like regular Expression with the value of the regular expression [A-Za-z0-9] +.
    I'm worried, why this validation is not getting fired upward?
    Please help me get around this problem.


    Kind regards
    Bernadette

    Hello

    If you test your expression, he is happy if only one of the input characters is alphanumeric

    Frank

  • Appeal of UI entity-level validation

    Hello

    I use jdev 12.1.3.0

    I have a feature object where I set the unique key constraint and this added to the entity-level validation.

    In my page user interface, I have af:table where I have the button to create a new line. Unique key validation is triggered when I click on validate.

    My requirement is to run this validation on strip off text field.

    Need your help to achieve this.

    Thank you

    Mozakkir

    What is the ChangeEventPolicy iterator in pageDef. ?

    If ChangeEventPolicy = "none" change for ChangeEventPolicy = "ppr" and try.

  • At the launch of Thunderbird, how can I set a password that prevents viewing of my emails if someone uses my computer?

    At the launch of Thunderbird, how can I set a password that prevents viewing of my emails if someone uses my computer?

    100% this addons can help you
    https://addons.Mozilla.org/en-us/Thunderbird/addon/master-password/

    Look at my Thunderbird when I open

  • How can I set the default download locations

    How can I set the default download locations?

    You can watch here:

    • Tools > Options > general: downloads
  • How can I set the zoom of the screen, so that it does not change everytime I open Firefox. Because I see Web pages in smaller characters, and I want the biggest, without having to re-enter zoom everytime I open Firefox.

    I need to know how to set the zoom tab 'View' option, shere I cannot re zoom everytime I open Firefox. I have a wide screen monitor and generally, when you view Web pages, web content on any page is confined to the center of the page, and I was wondering if there was anyway to set preferences to zoom on a permanent basis without having to change them whenever I open a Web page.

    IE 8 and 9 has a function to set the magnification, and I put mine at 150%, which works perfectly for me. I wonder if Firefox has a similar function.

    There are some add-ons that can be used to change the zoom level on all sites, for example:

  • How can I set a password for firefox so that everyone must enter the password before running firefox

    My younger sister run my firefox just to this afternoon (she origin use IE), and she saw something that is not visible. How can I set a password for firefox so that everyone must enter the password before running firefox?

    Another option is the master password + extension.

    You must first make sure that Firefox uses a master password, for more details on how to do that see use a master password to protect stored logins and passwords. Then with the master password + extension in its options, go to the getting started section and make sure that "ask for password at startup" and "Exit if cancelled" is selected both.

    As with all extensions, this protection is quite weak and can be bypassed if start you Firefox in safe mode that disables extensions.

  • How can I set the time axis on my waveform table to show run time that is to say whenever I start the program I should have 0 as the starting point

    How can I set the time axis on my waveform table to show run time that is to say whenever I start the program I should have 0 as the starting point. I've been messing around with the without success. I'm under Labview 2012.

    Thank you!

    Townes wrote:

    I can't understand what you mean. I have no formal training with labview. It took me a long time to write the simple program that I joined. Any guidance would be greatly appreciated!

    Its pretty normal for a beginner to take the time to write code. Right-click the map of waveform > Create > property node > historical data, you will get a property node, keep this at the beginning of the code and create a constant. You can also go to the VI properties and > run and select "clear indicators when it is called.

    I recommend you to go through the basic materials of LabVIEW which will give you an understanding on the basics of bases/components of LabVIEW.

  • How can I set English (United Kingdom) as the language for keyboard

    original title: How can I set English (United Kingdom) as main language so that my keyboard does what it should?

    How can I set English (United Kingdom) as main language so that my keyboard does what it should?

    Monday, April 23, 2012 14:51:19 + 0000, TrevorConn wrote:

    How can I set English (United Kingdom) as main language so that my keyboard does what it should?

    Change the keyboard layout in Control Panel | Tab languages and keyboard language and region | Change keyboards button.

    Ken Blake, Microsoft MVP

  • How can I set up Vista so that the PC does not switch to another window (for example the Spy Sweeper alerts) while I am playing a game?

    How can I set up Vista so that the PC does not switch to another window (for example the Spy Sweeper alerts) while I am playing a game?

    Vista is not in control of this technique. Spy Sweeper needs to have an option to control that. If this isn't the case, then it is badly programmed. Flight of focus (go to another window) when it is actually needed is a big no-no for the design. I find this option, if I were you :)

  • How can I set the camera at 1/125, F11, ISO 100?

    Hello

    Please, someone tell me how can I set my Canon Rebel T5 at 1/125, F11 and ISO 100?

    I tried a lot of things with no success... I can always change 2 settings, but never a 3rd.

    Please help me!

    Thanks in advance

    If the mode dial is set to "M", then you should be able to set one of these three values for everything you want.

Maybe you are looking for

  • M6-1105DX: M6 Envy laptop allows you to quickly switch between classic interface and metro

    My phone starting son suddenly quickly switch between desktops classics and metro when you log on his user account.  When I booted in safe mode it is moved, and I was able to move normally between two desktop computers using the touch pad and start o

  • HP L7680 - display offline with new router Xfinity

    We recently changed to a gateway router Xfinity and our Officejet L7680 is connected via an ethernet cable to the new router.  However, the printer is showing offline on computers that are connected to the wireless network. The Xfinity settings gatew

  • Mix PS6110XS and PS6010 in the same pool?

    Hello We think about the purchase of a PS6110XS for a VDI project. (vmware view 5.1) Currently we have a San with 4 PS6010 (SATA/SAS) in the storage pool. Would you recommend to put the new hybrid matrix in the same pool, or should we configure a new

  • BlackBerry Smartphones PC do not recognize the BB

    Hello I have a BB bold, I download the Desktop ver 4.6 software but unable to make the connection between my BB and the PC, I m Also when I conect BB via USB my PC don't recognize BB, I tried to reinstall the 4.6 software a few times and also open th

  • BlackBerry Smartphones from pc to blackberry mp3 ringtone

    Hello. am a new blackberry torch owner and would like to know how to accomplish the following. I have download a ringtone as mp3 on my pc and I would use it on my torch. I can't find a step by step for this demo. Any help apprciated. TIA