How to remove errorMsg given by jdeveloper & add the new custom error msg

Hi
I dropped a table in panel collection layout.on the table i have unique constraint on combination of all the columns to avoid the insertion of duplicate row.when i try to insert duplicate row ,it is giving the following two errors in a popup window automatically by jdeveloper at runtime.
Messages for this page are listed below.
Error     
Constraint "DB_UNIQUE" violated during post operation:"Insert" using SQL Statement "BEGIN INSERT INTO DASHBOARD_SECURITY_TAB(LOGIN_USER_ID,GROUP_NAME) VALUES (:1,:2) RETURNING ROWID INTO :3; END;".
Error     
ORA-00001: unique constraint (SCOTT.DB_UNIQUE) violated ORA-06512: at line 1
for the above error message i added the message "Duplicate rows not allowed" using Managed Bean method.
the code for this is
public String commandButton_action2() {
BindingContainer bindings = getBindings();
OperationBinding operationBinding = bindings.getOperationBinding("Commit");
Object result = operationBinding.execute();
if (operationBinding.getErrors().isEmpty()) {
FacesContext ctx = FacesContext.getCurrentInstance();
FacesMessage saveMsg = new FacesMessage("Record Saved Successfully");
ctx.addMessage(null,saveMsg);
if (!operationBinding.getErrors().isEmpty()) {
FacesContext ctx = FacesContext.getCurrentInstance();
FacesMessage saveMsg = new FacesMessage("Duplicate rows not allowed");
ctx.addMessage(null,saveMsg);
return null;
i want to show only "Duplicate rows not alowed".i want to remove the first two messages given by jdeveloper.
and also i want to display this message at the statusbar below the page.not in popup window.
can anyone help me what i need to do.

Hi John,
As you told i created the mesageBundle by following the steps described in the Fusion Developer's Guide section 33.8.3, "How to Customize Error Messages for Database Constraint Violations".now i am able to suppress the first error "
Error
Constraint "DB_UNIQUE" violated during post operation:"Insert" using SQL Statement "BEGIN INSERT INTO DASHBOARD_SECURITY_TAB(LOGIN_USER_ID,GROUP_NAME) VALUES (:1,:2) RETURNING ROWID INTO :3; END;".
and displaying my user friendly message like "Duplicate rows not alowed". using the following code
private static final Object[][] sMessageStrings = new String[][] { {"DB_UNIQUE","Duplicate Rows not allowed"},{"ORA-00001"," "},{"ORA-06512",""}
Here i want suppress the ORA errors also.but using above code only first error got suppressed.not the ORA errors.
Here please tell me what i need to do suppress the ORA errors in the popup window.
The errors i am gertting in popup window are given below.
*Messages for this page are listed below.*
*Error     *
*Constraint "DB_UNIQUE" violated during post operation:"Insert" using SQL Statement "BEGIN INSERT INTO DASHBOARD_SECURITY_TAB(LOGIN_USER_ID,GROUP_NAME) VALUES (:1,:2) RETURNING ROWID INTO :3; END;".*
*Error     *
*ORA-00001: unique constraint (SCOTT.DB_UNIQUE) violated ORA-06512: at line 1*
I appreciate your time and suggestions .
And also i want to display my userfriendly custom error message in the Status Bar of Panel collection not in a popup window.Is it possible?
Sailaja
Edited by: sj0609 on Mar 15, 2009 5:54 PM

Similar Messages

  • How do I tell Time Machine to add a new external drive to be backed up?

    How do I tell Time Machine to add a new external drive to be backed up?  I have an external drive with data I need to add to my overall back up with what's on my mac.  I have a separate drive already active as the Time Machine backup disk.  I can see how to EXCLUDE disks, but how do I ADD that new external drive to regular backups?
    I have 10.8.5 system on my Mac laptop.

    Remove the drive from the list of items set to be excluded. It needs to be formatted as Mac OS Extended (Journaled) for this to be possible.
    (110504)

  • How to add the new dep area in existing cod

    Dear all,
    how to add the new dep area in existing cod we are planing to implement the IFRS by using leading ledger and non leading ledger present we are using OL leading ledger
    present we are using dep area 01 ,15
    how to achive the parallel accounting in asset accounting how to add new dep area 30 in existing COD
    if any document plz refer me  

    Hi Bhayyapu,
    Please refer to the links given below.
    New Depreciation area
    Adding a New Depreciation Area to Existing Assets - Financial Accounting (FI) - SAP Library
    Hope this will help you.
    Regards
    Eugene

  • How to add the new tab in Quotation VA21

    Hi,
    How to add the new tab after Addition data B in line item in Quotation VA21?
    Please help me for this query.
    Devendra

    Dear Devendra,
    Use the program SAPMV45A & the screen number provided by SAP is 8459.If you activate this screen and include the screen in 4462.
    PROCESS BEFORE OUTPUT.
    *                            Verarbeitung vor der Ausgabe
       MODULE VBAP_BEARBEITEN_VOR.
       CALL SUBSCREEN KUNDEN-SUBSCREEN_8459 INCLUDING 'SAPMV45A' '8459'.
    PROCESS AFTER INPUT.
    *                            Verarbeitung nach der Eingabe
    * Hier weitere Prüfungen
       CALL SUBSCREEN KUNDEN-SUBSCREEN_8459.
    Regards,
    Anand

  • How to add a new custom paper size? I am using a HP Deskjet 1000 J 110a printer.

    How to add a new custom paper size? I am using a HP Deskjet 1000 J 110a printer. I am using Windows XP home edition. The Custom option itself is not appearing in the process of selecting paper sizes in Printing preferences. I have installed this printer just today, but I bought it eight months back in Dubai. Could there be chance that since I purchased it in Dubai and I am using it in India, the software's not functioning properly. 
    Can you please help me with this problem immediately? Reply soon...

    Hi RajeshPujara,
    Please refer the link below to know the paper size supported by this printer.
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02231304&tmp_task=prodinfoCategory&cc=us&dlc=en...
    May I know the size of paper you are trying to print.
    Although I am an HP employee, I am speaking for myself and not for HP.
    --Say "Thanks" by clicking the Kudos Star in the post that helped you.
    --Please mark the post that solves your problem as "Accepted Solution"

  • How do I get numbers to automatically add the next date down a column in numbers?

    How do I get numbers to automatically add the next date down a column in numbers?

    Hi Dd,
    If you want the next date automaitcally  filled in when you add a row to the bottom of the table, you can use a formula.
    Here's an example, done in Numbers 2.3 (Numbers '09). The method is basically the same in Numbers 3.
    Formulas in row 3:
    B3: =B2+1
    C3: =C2+7
    D3: =D2+14
    These have been filled down to the last row of the table.
    The same table is shown below after three rows have been added by dragging the Row control handle (below the tab for row 7) down. No changes other than adding thse three rows were made by the user.
    Note that rows 1 and 2 are header rows, and that row 2 contains the starting date for the seraies of date in each column. In the formula, the number at the end tells Numbers how many days to add to the previous date to get the next date.
    Autofill of the formula requires that every non-header cell located above the cell into which the formula is to be filled contains the same formula.
    Regards,
    Barry

  • How can I add the new AP license to HA 5508 WLC?

    Hi,
    My customer has two 5508 WLC in HA mode and these devices have 250 AP license. Customer bought 50 AP and 50 AP license. But I could not add the license to WLC! When I check the Management>Software Activation> tab there are only two options under the tab these are "Licenses" "License Usage". There is no "Command" option in there. Also I tried add on CLI but this error log appeared " !!!! Blocked: Changing License configurations on Secondary unit is blocked !!!! " 
    I think this is possible when disable the HA but is there anybody know this how can I add the new 50 AP license to HA WLC without disable the HA?
    Thanks,
    Burhan

    Hi,
    Thank you for your reply. 
    Yes I know the controllers synchronize with the enabled license and the 250 AP license bundled with two device there is no problem.
    I want to add new 50 AP license in addition 250 AP license. Because customer has 300 AP's.
    As I said, When I check the Management>Software Activation> tab there are only two options under the tab these are "Licenses" "License Usage". There is no "Command" option in there.
    Thanks,

  • Why can't anyone tell me how to remove all those little "!" in the left column all at once or at least sort them so I can mark them and then delete them?

    Why can't anyone tell me how to remove all those little "!" in the left column all at once or at least sort them so I can mark them and then delete them?

    This happens if the file is no longer where iTunes expects to find it. Possible causes are that you or some third party tool has moved, renamed or deleted the file, or that the drive it lives on has had a change of drive letter. It is also possible that iTunes has changed from expecting the files to be in the pre-iTunes 9 layout to post-iTunes 9 layout,or vice-versa, and so is looking in slightly the wrong place.
    Select a track with an exclamation mark, use Ctrl-I to get info, then cancel when asked to try to locate the track. Look on the summary tab for the location that iTunes thinks the file should be. Now take a look around your hard drive(s). Hopefully you can locate the track in question. If a section of your library has simply been moved, or a drive letter has changed, it should be possible to reverse the actions.
    Alternatively, as long as you can find a location holding the missing files, then you should be able to use my FindTracks script to reconnect them to iTunes.
    If, on the otherhand, you've been cleaning up your media from Explorer rather than iTunes and just want to eliminate the now broken links, use Tunes Folder Watch with its option to check for dead tracks on startup.
    tt2

  • How to remove photoshop elements 3 from being the default program to open photos

    how to remove photoshop elements 3 from being the default program to open photos in iMac 10.6.8; want to use Preview 5.0.3 as before. Somehow I clicked an "ok" to a question asking if I wanted photoshop e 3 to be the default program (NOOOO - too slow, too cumbersome just for viewing pix) What was I thinking????

    This might help just found googling http://www.bittbox.com/os-x/how-to-set-the-default-program-to-open-a-certain-type-of-file- in-mac-os-x
    Try once please.
    Thanks,
    Garry

  • How to add a new custome tabs in 11.5.10 to Home Page

    Hi All
    can any one tell me how to add a new custom tab(top level menu tab) along with an exsiting standard tabs in 11.5.10 home page.
    Thanks in Advance
    Vikram

    Query for your responsibility in Oracle Apps., and grab the Menu attached to it.
    Query for this menu in Oracle Apps, can view its sub-menus and page functions attached. You can also view the hierarchy tree.
    Now in this tree, position your new menu (that you want to create). Query to the parent menu (to which you want this new menu to be a child of) and create the new menu into it. Attach the page function/sub-menu to your new menu.
    For a better understanding, look into the section "Implementing the View" (Menus and Page Security part) of the Dev. Guide.

  • [svn:fx-trunk] 13304: When updating to TLF 584 forgot to add the new rsl and remove the old one.

    Revision: 13304
    Revision: 13304
    Author:   [email protected]
    Date:     2010-01-06 07:59:22 -0800 (Wed, 06 Jan 2010)
    Log Message:
    When updating to TLF 584 forgot to add the new rsl and remove the old one.
    QE notes:
    Doc notes:
    Bugs:
    Reviewer:
    Tests run:
    Is noteworthy for integration:
    Added Paths:
        flex/sdk/trunk/frameworks/rsls/textLayout_1.0.0.584.swf
    Removed Paths:
        flex/sdk/trunk/frameworks/rsls/textLayout_1.0.0.571.swf

    iTunes needs QuickTime to work.
    I think you will be all set if you install QuickTime standalone, not regular
    http://www.apple.com/quicktime/download/standalone.html
    Download the isntall file to your hard drive - don't install it over the internet.
    If you are running anything Norton, turn that completely off before installing.

  • HT201269 I purchased an iphone 5s, replacing my iphone 4.  I purchased it at Verizon wireless store and theyactivated the phone for me there. Do I need to remove my old iphone and add my new one to my itunes and apple account?

    I purchased an iphone 5s, replacing my iphone 4. I purchased the new iphone at a Verizon store and they activated my new iphone there. Do I need to remove my old iphone from my itunes/ apple account and add the new phone ? I do not see the iphone 5s listed on the devices in my itunes yet.

    speck1 wrote:
    I purchased an iphone 5s, replacing my iphone 4. I purchased the new iphone at a Verizon store and they activated my new iphone there. Do I need to remove my old iphone from my itunes/ apple account and add the new phone ? I do not see the iphone 5s listed on the devices in my itunes yet.
    Connect your new phone to your computer using the USB cable and it should appear in iTunes. If it doesn't you will need to troubleshoot. Then see: http://support.apple.com/kb/ht2109

  • How do I add the new tab icon to the Yosemite toolbar?

    How do I add the New Tab icon to my Safari toolbar?--it disappeared after I upgraded to Yosemite.

    To show your favourites bar where they were previously choose View>Show Favourites Bar. To add a page to your favourites. Click the share button right hand top, square with arrow pointing up. Choose Add bookmarks then adjust to add to favourites.
    If you just mean a new tab hit the + button.
    PJRS

  • How can I add the new project? (for mac)

    I can't add the new project. Who can help to do this action?

    You have opened the Render Engine. Either you clicked on the wrong app or you have a fouled up text file in preferences. There are several threads on this forum that point to the solution.

  • I have my iphone 5 set up with Itunes on one computer, but I recently just bought my own computer. How do I set up my Iphone with the new Itunes account? Its telling me it can only be set up with one account. Do I have to delete the other account?

    i have my iphone set up with itunes on one computer, but i recently bought my own computer. How do I set up my iphone with the new itunes account? It says my phone can only be set up woth one itunes account. How do I remove the previous account?

    ThisGal_Drea wrote:
    i have my iphone set up with itunes on one computer, but i recently bought my own computer. How do I set up my iphone with the new itunes account?
    Do you mean iTunes library?
    iTunes account is what you use to make iTunes purcahses.
    iTunes library is what is on your computer.
    It says my phone can only be set up woth one itunes account. How do I remove the previous account?
    No, it tells you it can only be sync'd with one iTunes library.
    Simplest way is to copy the entire /Music/iTunes/ folder (thisis the iTunes library) from old computer to new computer.

Maybe you are looking for

  • Business catalyst won't open in dreamweaver

    When I click the Get Started button or try to open a New Business Catalyst site from the site menu, the dialog box flashes but nothing else happens. I can open it on my other computer, but on my laptop. it's not working. Is there a setting I need to

  • Will My PSU Be Good Enough?

    Ok so my current motherboard has finally lost its will to live and i'm looking at upgrading my system to something like this: MSI P6N Diamond Motherboard (Or Similar) Intel Quad Q6600 BFG 8800GTX 4GB DDR2 667mhz RAM The rest of my system (In Sig) wil

  • Dual Graphics?

    HI. i have a Lenovo G50-70 intel i5 8gb ram, and AMD r5 230 graphics card. but when i use it it show that i have also an Intel HD graphics card. i tried intalling the latest AMD catalyst driver but unfortunately when i play DOTA2 the display crashes.

  • Xcode installing problem

    The system extension "/System/Library/Extensions/CDSDAudioCaptureSupport.kext" was installed improperly and cannot be used. Please try reinstalling it, or contact the product's vendor for an update. I was installing Xcode on Lion and I have found thi

  • MacBook Pro Fan Compatability

    I have a MacBook Pro 2 GHz Intel Core Duo (the first model to have Intel chips) and my fan just stopped working yesterday. My friend has a PowerBook G4 that he doesn't use any more (because he's got a unibody MacBook Pro) and I was wondering if I cou