Label on custom validation message

Hi,
I�m trying to display a the label of a input on a custom validation message using h:messages, for example:
"The field Email is required"
I don�t want to use the requiredMessage attribute of the outputText because I wish to apply it for all fileds on my application.
I�ve tried something like that:
On the jsp:
<h:outputLabel for="email" value="Email" />
<h:inputText value={bean.email} required=true />On the bundle:
javax.faces.component.UIInput.REQUIRED=The field {0} {1} is requiredBut, the {0} parameter is the component ID, and the {1} parameter resolves to null.
Please help, this is very important to me.
THanks

The {1} should resolve to the label of the inputText component. Note that here (and in the documentation) 'label' refers to the value of the label attribute on the inputText component itself. It does not refer to the value of an outputLabel component that is 'for' the input component.
So you want the following:
<h:outputLabel for="email" value="Email" />
<h:inputText id="email" value="#{bean.email}" required="true" label="Email" />Note I also added an id to pair with the for attribute.

Similar Messages

  • Custom validation Messages printed more than once :-(

    Hi,
    I have added a Custom Validator to a drop down list box (h:selectOneMenu) and for a text field. and i bound these form elements to the corresponding UIComponent Object in the becking bean. The backing bean is in session scope I have a link which will forward to a different page and i disabled the validation on this link by setting immediate as true.
    But when the user clicks the command link goes second page and then comes back to the first page and click the submit button, the validation error occurs. But to my surprise i am getting the same Validation error message printed twice or thrice (as when we are going to the second page and then comes back and submits).
    If I am correct the Validator corresponding to the component keeps the old error state and then add the new error state.
    I tried to remove one FacesMessage object which i got from Iterator of FacesContext.getMessages() and then tried. but hence also i was getting the same result.
    When i looked at the log, i foud my validator class being invoked twoce (or thrice depending upon the no. of times i went to the secoond page).
    Can you please help me out from this problem?
    Thanking you,
    Sudheesh

    If it is indeed 1.1, I'd recommend trying 1.1_02 [1] and trying again.
    [1] https://javaserverfaces.dev.java.net/servlets/ProjectDocumentList?folderID=5225&expandFolder=5225&folderID=5220

  • Sun JSF 1.1 or MyFaces Custom Validator Messages.

    Hello i must use JSF 1.1 version for some old project. The problem is that NOW i must use localization and internationalization API to make it "good" in my own language - Bulgarian ( Cyrilic language)
    The problem is that input components for 1.1 doesnt have attribute "label" i have defined in my resource bundle file the keys for standart validators such as this for example:
    javax.faces.component.UIInput.REQUIRED={0} \u041F\u043E\u043B\u0435\u0442\u043E \u0435 \u0437\u0430\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E
    but the {0} parameter is aways - null ( and is not showed ) or is equal to the ID of the component which is English (ASCII) and it is not usable .. becouse it is ugly .
    Can i make not so user friendly think like label but Something ?
    can i pass some value to the validator ? ( which can be unicode )
    Message was edited by:
    JOKe

    part of faces-config.xml:
    <application>
         <message-bundle>com....resources.Messages</message-bundle>
         <locale-config>
              <default-locale>de_DE</locale-locale>
              <supported-locale>en_GB</supported-locale>
         </locale-config>
    </application>This works for us.

  • ICSS label values and validation messages

    Hi All,
    Can someone please let me know
    1. Where are the label values stored for ICSS (i.e. is it in some properties file/ xcm config or CRM backend)
    2. Where the validation error messages for ICSS stored.
    Thanks,
    Nikhil

    Solved myself.

  • Problem: custom validator messages internationalized

    Hello everyone,
    I am trying to have a message that may be issued by a validator internationalized.
    Unfortunately I have no idea how to retrieve the appropriate bundleName (see comment in code below).
    It would be nice if someone could give me a hint how to solve the problem.
    Is there a nicer, more object orientated way of using Resource Bundles from Java?
    In the validator I am using the following code (taken in parts from Core JSF):
    public void passwordField_validate(FacesContext context, UIComponent component, Object value) {
    UIViewRoot viewRoot=context.getViewRoot();
    Locale locale=viewRoot.getLocale();
    ClassLoader loader=Thread.currentThread().getContextClassLoader();
    Application app=context.getApplication();
    String bundleName=app.getMessageBundle();
    if(bundleName==null) {
    // Since this is null I have a problem: How do I find the correct bundleName?
    ResourceBundle bundle=ResourceBundle.getBundle(bundleName,locale,loader);
    String incorrectPassword;
    try {
    incorrectPassword=bundle.getString("incorrectPassword");
    } catch (MissingResourceException mre) {
    // error handling
    // more code
    My faces-config.xml looks like this:
    <faces-config>
    <application>
    <locale-config>
    <default-locale>en</default-locale>
    <supported-locale>de</supported-locale>
    </locale-config>
    </application>
    </faces-config>
    and my Bundle.properties looks like this:
    incorrectPassword=Incorrect Password.
    similarly I have Bundle_de.properties, etc.

    I found a solution myself.
    The only drawback is that you need to fill in the name of the project.
    I used the code below:
    static public String getBundleString(FacesContext context, String key) {
    String text=null;
    try {
    ResourceBundle bundle =
    ResourceBundle.getBundle("<project_name>.Bundle",
    context.getViewRoot().getLocale());
    text=bundle.getString(key);
    } catch (Exception e) {
    text = "???" + key + "???";
    return text;
    }

  • How can i get localecontext within customer validator?

    Hi,
    I want to localize my error message ,so I need to get entity attribute label
    within customer validator,I write code as follows( eo is entityImpl object eo=valCtx.getSource();)
    String attributeLable=eo.getStructureDef().findAttributeDef(tempAttrName).getUIHelper().getLabel();
    but getLabel need localeContext parameter,How can I get it or where can set it ?
    thanks very much
    lixz
    2006/12/5

    Hi,
    try this:
    DefLocaleContext dlc = new DefLocaleContext();
    String attributeLable=eo.getStructureDef().findAttributeDef(tempAttrName).getUIHelper().getLabel(dlc);

  • Overwrite Standard Validation message to Custom message

    Hello Gurus,
    I searched and have gone through lot of resources but did not find solution and came up with this question.
    I have a scenario where I can not make action(Save) as validation independent. So, I tried using IF_WD_MESSAGE_MANAGER methods in WDDOBEFOREACTION as below.
    1) Used HAS_VALIDATION_ERRORS If true got all the messages using method GET_MESSAGES.
    2) Loop through messages of perticular attribute and deleted message based on MSG_ID using REMOVE_MESSAGE.
    3) And tried to set custom error message using REPORT_ATTRIBUTE_ERROR_MESSAGE.
    But to my suprise IF_WD_MESSAGE_MANAGER->GET_MESSAGES is not returning any messages even though there exists a validation erro, though HAS_VALIDATION_ERRORS returning TRUE.
    Cant we make use of GET_MESSAGES in WDDOBEFOREACTION or anything wrong in my logic.
    Any inputs would be appreciated!
    Thanks a ton in advance!
    Regards,
    Pavan.
    Edited by: Pavankumar Adiraju on Aug 1, 2011 6:42 AM

    Thanks for the response!!
    @ Srinivas: Sorry, I missed one more step wherein I use message object(MSG_OBJECT) of messages returned by GET_MESSAGES to get the specific message using GET_TEXT.
    So, to rephrase I will only overwrite specific error message with my custom message.
    @ Kranthi : Before posting the question I found the forum suggestion you mentioned but did not find a way to get reference to it.
    Please tell me if you know how to get reference of IF_WD_VALIDATION in WDDOBEFOREVALIDATION to use it.
    Regards,
    Pavan.

  • Pop up error messages for failed custom validation

    I am using jdev-10.1.3.4
    My application is in ADF BC
    I am writing custom validation through managed bean, I want pop-up error message for this failed validation.
    My problem scenario is:
    I had some list box as "status"-when this status changes to failed then the other field namely "closed date" should become madantory and also date in closed date field can't be in future.I am able to have all this validation through managed bean and also able to use af:messages through which i am able to print error message on the top of the form, but i am not able to give pop up error message for this failed validation.
    I had gone thru jdev guide but there is nothing like what i am asking.
    it would be of great help if someone can give me some example also.
    thanks in advance.

    ADF has global setting where you can configure the way messages are shown to user:
    You can make this setting in adf-faces-config.xml
    The <client-validation> element controls how client-side converters and validators are run.
    Three values are supported:
    "INLINE": validation is shown inline in a page (the default)
    "ALERT": validation is shown in an Javascript alert
    "DISABLED": validation is only handled on the server
    IN your case, set it to 'ALERT'.

  • Oracle Devs -  "Customizing a Standard Validator Message" tutorial moved?

    Guys and Gals,
    Page 366 of the Oracle JDeveloper 11g Handbook: A Guide to Oracle Fusion Web Development references a "Customizing a Standard Validator Message" tutorial on java.sun.com.
    It is nowhere to be found. Java.sun.com redirects to another oracle webpage, and the JDev tutorials do not seem to cover this material.
    I'm not looking to add my own custom validator, but rather modify the default JSF error message. i.e. Change standard validator text from "Too many objects match the primary key oracle.jbo.key[<mypart>]" to "Part <mypart> already exists.".
    Can anyone reference another tutorial for this topic?
    Thanks in advance.

    HaHa! Finally found something similar. Sweet sauce.
    http://netbeans.org/kb/docs/web/convert-validate.html#08

  • Customizing EO validation messages

    Example use case (JDeveloper 11.1.1.6):
    - I have one EO that maps to one VO that is displayed in two different jsff tabs (tab1, tab2).
    - The EO has an attribute (say Myint of type oracle.jbo.domain.Number that corresponds to a NUMBER(10,0) db type).
    - Myint appears in both tabs, however in tab1 it is referred as"int1" and in tab2 as "int2".
    - The attribute has a validation rule (at EO level) based on the corresponding db type (basically requesting that it is an integer).
    I read/believe that validation, if possible should be done at EO level (and it makes sense as you define once and reuse in all screens).
    Here are my questions:
    1) In the 'Edit Validation rule ' pop-up (EO) I can define an error message based on an key from a rb.
    In my case, I have a generic message like 'An integer value is required for the 'Myint' field.'
    How can I customize the messages for the specific jsff tabs, e.g., get messages like:
    An integer value is required for the 'int1' field.'
    An integer value is required for the 'int2' field.'
    I want to avoid client validation; however I would like to be able also customize my error message. Is there a way to do this?
    I know I can pass a expression to the message text, but still this does not really help me.
    Now if I cannot do this, does not this limits the usability of EO validation?
    2) Is there a way to have ADF create the red box around the erroneous field. In my view this is nice to have as it directly identifies the issue.
    Thanks

    Hi,
    I am using JDev 11g R2 and it has a red box highlighted for any validation failure of attribute (your point#2) but not sure if it's there in your jdev version :)
    Coming to your issue,
    For EO, it is always the same field irrespective of it coming from vo1 or vo2 and you don't have control of validation messages of vow/vo2 directly on EO however you can achieve your requirement in couple of ways
    Option#1. You can have a custom entity level validation (invoke your custom method with what ever message you want to throw)
    Option#2: You can create a transient attribute in your EO of String type and update your VO1 and VO2 to add the new transient attribute and always keep that transient attribute with int1 or int2 (based on your VO usage)
    and now in your validation error message of attribute you can use place holder to read the value from transient attribute
    for e.g. you error message looks like "Please fill the value for field {field}"
    and it will populate field in token list in the same editor window, there in field value give it as Attribute name of transient attribute.
    Regards,
    Ravi Nuka.

  • Custom error messages on while validating User profile

    Hi,
    I have developed a valadation handler to validate data of a user while creating/updating.
    If any of the attribute valation failed then my ValidationFailedException is getting triggered but it is showing my custom message on the server logs and on UI console i am getting "Server error occured" message. It is not display my custom errror message on the ui console.
    Please let me know the steps to perform to show my custom error messages on ui console.
    Below are the steps I followed.
    1) Develeped a class which implements ValidationHandler.
    2) Imported plugin into MDS database
    3) Imported EventHandler xml into MDS database.

    {thread:id=2256511}
    -Bikash

  • Usage of ADF's validation and custom validation together ??

    Hello all..
    My apologize if this query already in place...
    Well, I've a situation where which I need a way to combine/club my application specific validation error messages with the ADF component's messages.
    For example:
    1) ADF's component validator:
    <af:selectInputDate label="#{msg.dob}" value="#{bean.DOB}" showRequired="true" >
    <f:convertDateTime type="date" pattern="yyyy-MM-dd"/>
    <af:validateDateTimeRange minimum="#{action.minDate}" maximum="#{action.todayDate}" notInRangeMessageDetail="#{msg.dateRange}" />
    </af:selectInputDate>
    2) Also, I've my business specific custom validations perfomed on click of action button on my form. Where I use ..
    public void addFacesMessage(Severity msgSeverityType, String message)
    FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(msgSeverityType, message, message));
    for adding the error messages to context -
    As part of the life cycle, the validators in the form level is fired first and I don't have scope for the request processing/action in order to run thru my buisness method. So always my component's error messages are fired alone - This way my custom validations are not invoked. Is there a way that we can combine both set of error messages together and render them as a common error msg list using <af:messages> tag ?
    If so, please provide me the link to the article!!!
    Your help on this context will be very helpful....Thanks in advance!!!

    Hello all..
    My apologize if this query already in place...
    Well, I've a situation where which I need a way to combine/club my application specific validation error messages with the ADF component's messages.
    For example:
    1) ADF's component validator:
    <af:selectInputDate label="#{msg.dob}" value="#{bean.DOB}" showRequired="true" >
    <f:convertDateTime type="date" pattern="yyyy-MM-dd"/>
    <af:validateDateTimeRange minimum="#{action.minDate}" maximum="#{action.todayDate}" notInRangeMessageDetail="#{msg.dateRange}" />
    </af:selectInputDate>
    2) Also, I've my business specific custom validations perfomed on click of action button on my form. Where I use ..
    public void addFacesMessage(Severity msgSeverityType, String message)
    FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(msgSeverityType, message, message));
    for adding the error messages to context -
    As part of the life cycle, the validators in the form level is fired first and I don't have scope for the request processing/action in order to run thru my buisness method. So always my component's error messages are fired alone - This way my custom validations are not invoked. Is there a way that we can combine both set of error messages together and render them as a common error msg list using <af:messages> tag ?
    If so, please provide me the link to the article!!!
    Your help on this context will be very helpful....Thanks in advance!!!

  • Catch datetime exception and custom error message in SSRS

    I currently working on create report by using SSRS. I have 2 parameters: [Start date] and [End date] to filter data from database and show it on report. I want to validate 2 datetime parameter as describe above. Please tell me a solution to do this.
    For example:
    When user type the text like: 4/15/2014mmm => System validation thrown a message: [The From Date not correct type]
    But in my case, I want to receive a custom error message by myself.(Look like: [Date Invalid!])

    Hi Brain,
    According to your description, you have a report with two parameters for user to input. Now you want to validate these two parameters and display custom error message when the date is invalid. Right?
    In Reporting Service, it doesn’t provide any interference for us to modify the system error message (the text in grey color). That means we can’t modify the system message when error occurs. However we can create a textbox in this report, use custom code
    and expression to display the custom error message. But this all based on the report is successfully running. So if error occurs during report processing, all the custom code and expression will not work. In this scenario, we find a workaround for you. We
    use custom code to judge if the date is valid, if the users type an invalid date, we return a default value to make sure this report can successfully run. Then we use expression to control the visibility of tablix in this report and create a textbox to show
    the custom error message. Your case has been tested in our local environment. Here are steps and screenshots for your reference:
    Go to Report Properties. Put the code below into custom code:
    Public Shared a As Integer=0
    Public Shared Function IsDate(d1 As String,d2 As String) as Integer
            Try
               FormatDateTime(d1)
               FormatDateTime(d2)
            Catch ex As Exception
                       a=1
            End Try
    return a
    End Function
    Create two parameters. One is StartDate, the other is EndDate. Set the data type of these two parameters Text.
    Create a filter for StartDate, put the expression below into Value:
    =IIF(Code.IsDate(Parameters!StartDate.Value,Parameters!EndDate.Value)=0,CDate(IIF(Code.IsDate(Parameters!StartDate.Value,Parameters!EndDate.Value)=0,Parameters!StartDate.Value,"1/1/2012")),CDate("1/1/2012"))
    Create a filter for EndDate, put the expression below into Value:
    =IIF(Code.IsDate(Parameters!StartDate.Value,Parameters!EndDate.Value)=0,CDate(IIF(Code.IsDate(Parameters!StartDate.Value,Parameters!EndDate.Value)=0,Parameters!EndDate.Value,"1/1/2013")),CDate("1/1/2013"))
    Ps: In step3 and step4, the date(“1/1/2012”, “1/1/2013”) in the expression are the default we set to make sure the report can successfully process. You can set any date existing in your dataset.
    Use the expression below to set the visibility of the tablix:
    =IIF(Code.IsDate(Parameters!StartDate.Value,Parameters!EndDate.Value)=0,false,true)
    Create a textbox, put the expression below into it:
    =IIF(Code.IsDate(Parameters!StartDate.Value,Parameters!EndDate.Value)=0,"","Date invalid")
    Save and preview. It looks like below:
    Reference:
    SSRS Calendar and Date Restriction
    Errors and Events Reference (Reporting Services)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou
      

  • How to create Custom error message in SharePoint 2013

    Hi,
    I have created one document library.On uploading the same file SharePoint throws error as"server error.The same file exit".
    But my requirement is not to show the SharePoint default message.I wanted to create custom message and show the pop up for the same file upload.
    Is there any way to create any custom error page or can I manipulate SharePoint default error page?
    Any help?
    Thank you

    Hi,
    You can create an event receiver to set the validation error messages.  One such post to redirect the custom error page is as follows
    https://social.msdn.microsoft.com/Forums/office/en-US/2bc851f6-e04b-4550-b87f-9b874a290482/sharepoint-event-receivers-and-custom-error-messages?forum=sharepointdevelopmentlegacy
    Create custom error page for SharePoint event receiver
    Please mark it answered, if your problem resolved or helpful.

  • How to show custom error message in WebADI Excel template?

    Hi,
    I've  created a custom Web ADI integrator and associated it with a 'Procedure' based custom interface.
    WebADI Interface API Returns is set to  "Error Message".
    I'm using  raise_application_error(-20001, "Actual Error Message") for invalid rows,but custom error message from PL/SQL  is not populated on the excel template.
    Instead it is showing "SQL exception occurred during PL/SQL upload".
    Am I missing anything? How to show custom error message from Pl/SQL procedure to WebADI Excel template?
    TIA
    Narasimha

    The custom API errors are visible in the BNE log but not on the Excel.
    BNE Log=>
    12/10/13 2:52 PM Web ADI Upload Job 13008 ERROR          BnePLSQLUpload.doUpload: Exception while uploading to PL/SQL API.  Error Code: 20001, Message: ORA-20001: -Please enter CONTAINER_ID -  Enter PO_NO -
    ORA-06512: at "APPS.XXPO_COSTFACTS_WEBADI_PKG", line 264
    ORA-06512: at line 1
    12/10/13 2:52 PM Web ADI Upload Job 13008 ERROR          BnePLSQLUpload.doUpload: Stack trace: java.sql.SQLException: ORA-20001: -Please enter CONTAINER_ID -  Enter PO_NO -
    ORA-06512: at "APPS.XXPO_COSTFACTS_WEBADI_PKG", line 264
    ORA-06512: at line 1
      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:439)
      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:395)
      at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:802)
      at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:436)
      at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:186)
      at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:521)
      at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:202)
      at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:1005)
      at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1307)
      at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3449)
      at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3550)
      at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4710)
      at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1374)
      at oracle.apps.bne.integrator.upload.BnePLSQLUpload.doUpload(BnePLSQLUpload.java:284)
      at oracle.apps.bne.integrator.upload.BneSAXUploader.processDeepestLevel(BneSAXUploader.java:2346)
      at oracle.apps.bne.integrator.upload.BneSAXUploader.startElement(BneSAXUploader.java:1182)
      at oracle.xml.parser.v2.XMLContentHandler.startElement(XMLContentHandler.java:181)
      at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1288)
      at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:336)
      at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
      at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:234)
      at oracle.apps.bne.integrator.upload.BneUploader.processUpload(BneUploader.java:301)
      at oracle.apps.bne.integrator.upload.BneAbstractUploader.processUpload(BneAbstractUploader.java:114)
      at oracle.apps.bne.integrator.upload.async.BneAsyncUploadThread.run(BneAsyncUploadThread.java:140)
    12/10/13 2:52 PM AJPRequestHandler-HTTPThreadGroup-5 WARNING        BneOracleWebAppsContext.getTimeZone CLIENT_TIMEZONE_ID has not been set
    12/10/13 2:52 PM AJPRequestHandler-HTTPThreadGroup-5 ERROR          BneOracleWebAppsContext.getExtraJDBCConnection recieved the same connection as the base connection.  There may be transaction problems.
    How to show the same error in the excel template?
    Here is the package:
    CREATE OR REPLACE PACKAGE BODY APPS.XXPO_COSTFACTS_WEBADI_PKG
    AS
       PROCEDURE upload_data (
                              P_CONTAINER_ID IN VARCHAR2
                            , P_SAIL_DATE IN DATE
                            , P_PO_NO IN VARCHAR2                     
                             ) IS
        --declare
        lv_err_msg      VARCHAR2(240);
        lf_err_flag     NUMBER := 0;
        ln_temp         NUMBER;
        BEGIN
        --------------------- checking for mandatory parameters---------------------------
          IF (P_CONTAINER_ID IS NULL) THEN
             lf_err_flag := 1;
             lv_err_msg := lv_err_msg||'-'||'Please enter CONTAINER_ID - ';
          END IF;
          -------------Validation for Sail Date Format----------------------
          IF (P_SAIL_DATE IS NULL) THEN
             lf_err_flag := 1;
             lv_err_msg := lv_err_msg || ' ' || 'Enter Sail Date - ';
          ELSE
             BEGIN
                SELECT 1
                  INTO ln_temp
                  FROM DUAL
                 WHERE P_SAIL_DATE =  TO_DATE (TO_CHAR (P_SAIL_DATE, 'DD-MON-YYYY'), 'DD-MM-YYYY');
             EXCEPTION
                WHEN NO_DATA_FOUND THEN
                   lf_err_flag := 1;
                   lv_err_msg := lv_err_msg || ' Enter Sail date in DD-MON-YYYY Format';
                WHEN OTHERS THEN
                   lf_err_flag := 1;
                   lv_err_msg := lv_err_msg || ' Enter Sail date in DD-MON-YYYY Format'|| SQLERRM;
             END;
          END IF;
          -------------Validation for PO_Number----------------------
          IF (P_PO_NO IS NULL) THEN
             lf_err_flag := 1;
             lv_err_msg := lv_err_msg || ' ' || 'Enter PO_NO - ';
          ELSE
             BEGIN
                SELECT count(1)
                  INTO ln_temp
                  FROM PO_HEADERS
                 WHERE Attribute4 =  P_PO_NO;
             EXCEPTION
                WHEN NO_DATA_FOUND THEN
                   lf_err_flag := 1;
                   lv_err_msg := lv_err_msg || ' No Oracle PO for Biceps PO#'||P_PO_NO;
                WHEN OTHERS THEN
                   lf_err_flag := 1;
                   lv_err_msg := lv_err_msg || ' Error getting the Oracle PO for Bicpes PO#'||P_PO_NO||' Error-' || SQLERRM;
             END;
          END IF;
         -----------------------Insert Record----------------------------
         IF lv_err_msg is NULL THEN
         BEGIN
             INSERT
              INTO XXP2P_HW_COST_FACTORS_STG
                     CONTAINER_ID
                    ,SAIL_DATE
                    ,PO_NO
                    , ERROR_FLAG
                    , ERROR_MSG
                   ,CREATED_BY
                    ,CREATION_DATE
                    ,LAST_UPDATED_BY
                    ,LAST_UPDATE_DATE
                    ,LAST_UPDATE_LOGIN              
                VALUES
                     P_CONTAINER_ID
                    ,P_SAIL_DATE
                    ,P_PO_NO              
                    ,lf_err_flag
                    ,lv_err_msg
                  ,FND_GLOBAL.USER_ID
                    , trunc (sysdate)
                    ,FND_GLOBAL.USER_ID
                    , trunc (sysdate)
                    ,FND_GLOBAL.LOGIN_ID              
                  --  commit;
                  DBMS_OUTPUT.put_line
                    '-' || 'After ap_invoices_interface'
            EXCEPTION
            WHEN OTHERS THEN
              ROLLBACK;
              lf_err_flag := 1;
              lv_err_msg  := lv_err_msg || ' ' || 'error loading CONTAINER_ID-' || P_CONTAINER_ID || SQLERRM;
              raise_application_error(-20001, lv_err_msg);
            END;
        ELSE
              raise_application_error(-20001, lv_err_msg);
        END IF;
      END upload_data;                        
    END XXPO_COSTFACTS_WEBADI_PKG;

Maybe you are looking for

  • When Flash Builder 4.6 for PHP is released will it support AIR 3.2 ???

    We've all been waiting a long time since last November's Private Beta of Flash Builder 4.6 which was released shortly thereafter, for the Flash Builder 4.6 for PHP version. However, Flash Builder 4.6 for PHP (The one with Zend Studio included in it)

  • Special characters in passwords

    Where can I get documentation for restrictions on passwords. Like what special characters can be used in passwords? Maximum length etc?

  • IWS60SP4 Additional Document Directories Problem with Web Application

    We have iPlanet/Sunone WebServer 6.0 Service Pack 4 installed. I have deployed a web application using the wdeploy command line. I have defined an additional document directory that is outside of the web application and document root. No matter how m

  • Sound bar in IPad3 dissapeared?

    Hello everybody. The sound bar in my IPad2 has dissapeared. At first it happened from time to time but now and I believe that this is something that have to be with any update has dissapeared. Can somebody help me?

  • How to convert a String which contains integers to an integer

    Hi, I'm doing a simple user-interaction program. For example I ask how many people are in a group. and they give me an answer with a integer number. But how can I convert the System.in to an real integer value, i.e. How can a String value which conta