Error message customization in BC4J

Is it possible to customize messages (eg. translate them) in order to make them more clear for users ?
TIA
Tullio

See the following set of topics in the Online Help:
Developing Business Components
Working with View Objects, View Links, Application Modules and Clients
Creating and MOdifying View Object, View Links and Application Modules
Ways to Handle Errors

Similar Messages

  • Error message customization issues

    Hi ppl,
    This is with regards to the issue with customization error messages, I have already gone through the following,but haven't been able to achieve what i want:-
    "Chapter 8.2-8.3" "Business Rules in ADF Business Components".( white paper )
    ADF Faces: How suppress item validation on partial submit ( Frank's blog entry )
    So im extremely dull or have been looking at the wrong place ( or both :( )
    my jdev version :-10.1.3
    My use case is follows, extremely simple form page for creating a user log in along with other information like passwords,description etc.
    I have certain basic validations
    -should contain one numeric
    -must not be less than 8 charecters etc
    i can do the following:-
    make my own customized message bundle and successfully throw it when my custom method validator fails , i do so by using the command:-
    throw new AdminJboException (AdminMsgBundle.USER_ID_NO_SPACE,params);
    where AdminMsgBundle is my customized bundle message class and AdminJboException is a custom class that extends JBo exception ( for conveniance ).
    What i can't do is this :-
    my error logs:-
    JBO-27024: Failed to validate a row with key null of type ........
    User Id cannot contain spaces ( my validation message )
    User ID - JBO-27025: Failed to validate attribute UserId with value .....
    User ID - JBO-27014: Attribute UserId in AdminAppModule.UserViewObj is required
    At validation ( i presume at validateEntity() ), my exception gets thrown ), but before that the JBO-27024 gets thrown (because the data doesnt get validated and hence not stored and hence null), following which the required error is thrown , following which the 27025 and 27014 are thrown. Is there anyway i can suppress the JBO default error messages ONLY when i know for sure that my validation error message has been thrown. I was able to suppress the JBO-27014 exception altogether from the EntityModelImpl ( out of frustration ) , and it worked , but obviously it hampered proper functioning in other areas.
    My question is :--
    Which is the simplest cleanest way of throwing only your customized message and ignoring the default JBO ones when your exception is thrown , and letting things go normally if your customized exception is not thrown... ?
    P.S i can even override the "content" of the message being thrown from 27014 etc, but thats not what i want .
    Thanks in advance !

    See the following set of topics in the Online Help:
    Developing Business Components
    Working with View Objects, View Links, Application Modules and Clients
    Creating and MOdifying View Object, View Links and Application Modules
    Ways to Handle Errors

  • Pass thru authentication error message customization

    Dear All,
    I'm trying to customize the error messages displayed during the authentication failure.
    Users are authenticated against the AD i.e. pass thru authentication.
    I'm not able to customize the error messages.
    I have searched in WPmessgaes and RAMessages file. no success.
    following is error:
    AD (Windows Active Directory):Error: missing required authentication information: 'password'
    new error msg that I want to display:
    Error: Invalid login credential, please try again.
    Kindly share your ideas and experience on same.
    Thanks in advance.
    Cheers:
    Amar

    We've had that problem. We opened a ticket with Sun and they confirm it as bug in 7.1.

  • Odbc error message customization

    Hi,
    I need to customize the message that Answers shows when an ODBC error happens. I saw in OracleBI\web\msgdb\l_en\messages\odbcaccessmessages.xml the error kmsgOdbcAccessOdbcException:
    <WebMessage name="kmsgOdbcAccessOdbcException"><TEXT>Odbc driver returned an error (<sawm:param insert="1"/>).</TEXT></WebMessage>
    I can change the message for all the Odbc errors, but is there a way to change it depending on the error that happens (for example, when error nQSError: 10058, it must give a different message)? (depending on the parameter). Where is this message called from? Where is the param set to a value?
    Thank you

    I am getting the error message "The ODBC data source returned the following error; (internal error:data not found)" when I try to import photos.
    I can view the photos (and tags) I have moved, but cannot add to that collection.
    I have seen in these forums (below)solution is to Remove Windows XP service pack 2, and re-install it. BUT I think I can only remove Serice Pack 3 from my version of Windows.
    Will the fix work by removing and re-installing SP3? Or is there a better fix? HELP!
    I am really keen to get a FIX for this as my wife needs access to the photos for her artwork.
    I have just moved about 10,000 pictures (in Adobe Photoshop Album Starter edition) from an old PC (failing hard drive) to a new one.
    >>>>>>>>
    narya - 10:09pm Apr 7, 05 PST (#1 of 2)
    Please try reinstalling the Service Pack 2 according to the instructions in this Adobe techdoc:
    http://www.adobe.com/support/techdocs/331094.html
    The document is written for PSElements 3, but we have reason to believe it also applies to PSAlbum (SE).
    >>>>>>>>>
    Will the fix work by removing and re-installin SP3?

  • BP603 Budget exceed error message customization

    Hi,
    I have set the error message BP603 from error to warning in Tcode OBA5, still i am getting the error message.
    Can somebody provide input on this.
    regards,
    Khan

    Hi,
    Please select the following path in your customizing transaction SPRO:-
    Controlling
      Internal Orders
        Budgeting and Availability Control
          Define Tolerance Limits for Availability Control
    Here you can see the Controlling Area and Profile information, you will also be able to see a column called 'Actn' in which you probably have a value of '1' or '2' which represents 'Warning' or 'Warning with MAIL to the person responsible' respectively, the third option here is '3' 'Error message', these are usually set depending on the Usage percentage that is defined.
    regards
    Waman

  • EVS Error Message Customization

    Hi,
    i am using EVS. when i entered something in input box and clik on the next button then if the string does not match the enumeration then this error message is displayed.
    <b>String "XXXXXX" does not match the enumeration</b>
    is there any way to modify this error message.

    Hi Bunny,
    this is the generic validation error message given by the Data Dictionary Runtime. You cannot modify this error message with a custom error message unless you deactivate the generic validation with a non-validating action. But then you must implement the complete type validation on your own, only for displaying another validation error message. I do not recommend this approach. Why does the generic message not fulfill your requirements.
    Regards, Bertram
    Message was edited by: Bertram Ganz
    Valery gave the same answer on this issue
    Checking date format

  • Customized error message for MethodValidator

    Hi,
    I coded a validation method and attached it to an entity attribute through the MethodValidator of the Entity Object validation tab.
    When I test it in the application module tester, it works fine. Just the error message produce by BC4J is too generic, like "JBO-27013: Attribute set validation method validateIsSoldTo failed for attribute IsSoldTo in Customer".
    Is there anyway that I can provide a more meaningful customized error message?
    I am using JDev 3.2.2 for a JSP application using Data Tag.
    Thanks!
    Dawson

    short of coding the dml procs yourself and trapping those error messages that way, i don't think we offer you a good way currently to trap and translate error messages coming out of our automatic DML processes. i've just logged the enhancement request to facilitate this, but for now i'm pretty sure you'd have to code that dml and trap your errs yourself.
    regards,
    raj

  • How to customize the error messages in web analysis reports

    Does anyone know how to customize the error messages that web analysis shows ,
    I want to customize the below error message with a custom error message
    "Document does not exist or no authorization to open document.Error occurred while loading document"
    Does anyone know how to do this ?

    Rajesh,
    you may want to check these links
    How to the Change the Application Stopped Message
    How to Change the Dispatcher Running, No Server Connected Message
    http://help.sap.com/saphelp_nw70/helpdata/en/65/18fc3f9ec4e669e10000000a155106/frameset.htm
    Thanks
    Bala Duvvuri

  • How to Customize Error message in JXL

    Hi All,
    I want to customize error message in JXL. I.e. When we apply number validation to a cell and if you enter invalid data MS-Excel shows error message saying that "The value you entered is not valid". But I want to customize this message to "Data should be a decimal number". Can anyone help me how to acheive it. Thanks in Advance.
    Thanks
    Venkat.

    Thx alot...!! for all your valuable replies.
    And, I found a way to achieve my requirement in a declarative way.
    I just created an entity validator on EmployeeEO.
    - Rule_Type: Key Exists
    - Rule Definition:
    - Validation Target Type: Entity Object
    - Association Name : <Select Assiociation created > "EmpDeptFK"
    - Failure Handling:
    - Error Message: "Invalid Deparment ID {0} Entered. Please enter a valid Department ID."
    - Message Token for "0": Department ID
    And It fulfilled my requirement.

  • Error message when trying to view a VO in the BC4J viewer

    Below is an error message I am getting when trying to run my Application Modual in test mode via the BC4J viewer. When I click my VO I get this message. I only get this when my VO is tied to a EO that has data in the table. I have created a VO based on a custom sql statement and that one does not give an error when I select it in the BC4J viewer to look at. Any ideas what I am doing incorrectly?
    (oracle.jbo.RowCreateException) JBO-25017: Error while creating a new entity row for TpcApInvoices.
    ----- LEVEL 1: DETAIL 0 -----
    (java.lang.InstantiationException) null
    oracle.jbo.RowCreateException: JBO-25017: Error while creating a new entity row for TpcApInvoices.
         at oracle.jbo.server.EntityDefImpl.createBlankInstance(EntityDefImpl.java:1054)
         at oracle.jbo.server.ViewRowImpl.createMissingEntities(ViewRowImpl.java:1532)
         at oracle.jbo.server.ViewRowImpl.init(ViewRowImpl.java:236)
         at oracle.jbo.server.ViewDefImpl.createBlankInstance(ViewDefImpl.java:1050)
         at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:1007)
         at oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java:2643)
         at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:2547)
         at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:1891)
         at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:1745)
         at oracle.jbo.server.QueryCollection.get(QueryCollection.java:1257)
         at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:2850)
         at oracle.jbo.server.ViewRowSetIteratorImpl.doFetch(ViewRowSetIteratorImpl.java:2495)

    I am using Flex. Through normal programming via JavaScript I have corrected this on some other websites I manage. Is there a way to embed Javascript to the page of Visual Composer?

  • How to customize an Error Message

    Hi Gurus,
    Does anyone knows how can I customize the error messages?
    In example, I'm getting the "???en.DOBJ.UPDATE_PERMISSION_DENIED???" error message when a user try to change the user details and do not have permission. But I would like to show a friendly message like "You do not have permission to change this object" or something else.
    Thanks in advance.

    Hi bigboss,
    Thank you for your help. But in which format I need to input the error translation in xlWebAdmin.properties? Something like "DOBJ.UPDATE_PERMISSION_DENIED = You do not have permission to update this object" ?
    Just to let you know, I need to show more user friendly error messages for OIM default error messages.
    Cheers.

  • Still Error Message: JBO-33001 though bc4j.xcfg is in classpath

    I'm running JBoss-2.4.4_Tomcat-4.0.1 with Windows 98, JDK is J2SDK in C,
    ( C:\j2sdk1.4.0_01 )
    I put a war file (Request.war) into the deploy folder
    ( C:\JBoss-2.4.4_Tomcat-4.0.1\jboss\deploy )and successfully being deployed but it shows the error when i try to access to the JSP file:
    Application Error
    Error Message: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-33001: Cannot find the configuration file /Request/common/bc4j.xcfg in the classpath
    Error Message: JBO-33001: Cannot find the configuration file /Request/common/bc4j.xcfg in the classpath
    For your info., I have checked the war file and the filebc4j.xcfg is in the correct path. And another pc (win2k, jdk1.3 and same version of Jboss and tomcat with mine) in my company is able to deploy and access to the jsp well without any problem. Anyone have the solution on this? Your help is very much appreciated.

    I'm running JBoss-2.4.4_Tomcat-4.0.1 with Windows 98, JDK is J2SDK in C,
    ( C:\j2sdk1.4.0_01 )
    I put a war file (Request.war) into the deploy folder
    ( C:\JBoss-2.4.4_Tomcat-4.0.1\jboss\deploy )and successfully being deployed but it shows the error when i try to access to the JSP file:
    Application Error
    Error Message: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-33001: Cannot find the configuration file /Request/common/bc4j.xcfg in the classpath
    Error Message: JBO-33001: Cannot find the configuration file /Request/common/bc4j.xcfg in the classpath
    For your info., I have checked the war file and the filebc4j.xcfg is in the correct path. And another pc (win2k, jdk1.3 and same version of Jboss and tomcat with mine) in my company is able to deploy and access to the jsp well without any problem. Anyone have the solution on this? Your help is very much appreciated. For the 9.0.2 release, you need to use JDK 1.3.1 with BC4J. The problem is JDK 1.4, and it's fixed in the 9.0.3 preview release that is now available.
    Hope this helps,
    Rob

  • Customize Portlet consumer error message

    Hi,
    I want to customize the error message "Portlet Consumer error" that is displayed in portlet.
    Can you please let me know how can i have a custom message there ?
    Thanks

    Hi Vijai,
    We are implementing LSO in our company. We are getting this error on training activities , when a user click on training activities on portal sometimes get a message  while the Loading content, Please be patient and followed by  a system failure message . So we get a System Failure error message on Portal is there anyway to customize this message on Portal?
    Hers is the Short dump for your reference
    Short text
                                                                                    Exception condition "SYSTEM_FAILURE" raised.
    What happened?
                                                                                    The current ABAP/4 program encountered an unexpected
      situation.
                                                                                    What can you do?
                                                                                    Note down which actions and inputs caused the error.
      To process the problem further, contact you SAP system
      administrator.                                                                               
    Error analysis
        A RAISE statement in the program "SAPLLSO_FRONTEND" raised the exception 
        condition "SYSTEM_FAILURE".  
        Since the exception was not intercepted by a superior                                        
         program, processing was terminated.

  • Customize standard portal error message

    Hi,
    How to customize below sap standard error message with meaningful user defined message.
    com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException
    Appreciate your quick help.
    Thank you,
    dev

    Hi Dev,
    In order to customize the error message, you'll have to catch the exception in your WD component.
    Please use Try Catch Block and there within the catch block you can specify your custom error message. 
    BR,
    Anurag

  • Customize infopath error message for sharepoint list

    Hi Everyone,
    Is there anyway of replacing the written content in the generic "InfoPath Error Message Dialog"?
    I
    would like to replace the written content with something that is more specific
    and relevant to my form

    Hi,
    I would advice you to create data validation rule and display error message as per your requirement instead of using required fields
    here are some links for your reference-
    http://blog.parkercomp.com/2009/05/how-to-customize-infopath-error-dialogs.html
    http://support.microsoft.com/kb/822032/en-us
    http://www.bizsupportonline.net/infopath2007/infopath-basics-3-ways-validate-data-infopath.htm 
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

Maybe you are looking for