JDev 11.1.2.1 custom Popup to display the error message

I'm able to programmatically display a popup when an error condition occurs. However, I can't understand how to complete the popup with a simple message such as:

"0001 b bank account is overdrawn"

It occurs when I have to fill in the popup with the number of account and then display the pop-up window for the user.

Thanks for your help, Steve
    public String Ok() {
        // Add event code here...
        BindingContainer bindings = getBindings();
        OperationBinding operationBinding =
            bindings.getOperationBinding("calling method which is wrote in Application Module");

        Object result = operationBinding.execute();

        String docNo = operationBinding.getResult().toString();  //here
        if (!operationBinding.getErrors().isEmpty()) {
            FacesContext ctxs = FacesContext.getCurrentInstance();
            FacesMessage fms =
                new FacesMessage(FacesMessage.SEVERITY_WARN, "Doc are not Created Sucessfully",
                                 "");
            ctxs.addMessage(null, fms);
        } else {
            FacesMessage fm =
                new FacesMessage("Doc is created Successfully" + " - " + docNo); /here
            fm.setSeverity(FacesMessage.SEVERITY_INFO);
            FacesContext context = FacesContext.getCurrentInstance();
            context.addMessage(null, fm);
        }
        return null;
    }

just give me a sample. You can change the code snip you want. and one not enough information from your post. When you get 0001 'b' and also no version jdev

Tags: Java

Similar Questions

  • Custom workflow activity regarding the error message.

    Dear Experts,

    I customzed a workflow to call a procedure and within this procedure, I have my custom validations.

    If any validation fails, then I want the validation error message to be printed in the acitvity of workflow.

    I tried to convey this error message in wf_core. CONTEXT and also to the result parameter out, but I do not see this error message.

    Can you please provide some input.

    Thank you

    Neeraj.

    Have you tried using WF_CORE. TOKEN & RECOVERY?

  • How to display the error message by supporting the bean class - Jdev 10.1.3.4

    Hi people.
    I have a page with a form of adf and some text entry fields
    A text entry field is based on a transitional attribute.
    I created a validation in a bean class of support to do some calculations. If the user type a wrong number in this field, I need to validate the number in my support bean method (which is ok)
    and show a validation error, like this validations of EO. Is this possible?
    Willian thanks

    Hello

    Yes, it is, try something like the following:

    FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_ERROR, "some message summary", "some message detail");
    FacesContext.getCurrentInstance().addMessage(null, message); // Null for global message
    

    Kind regards

    ~ Simon

  • Jdev11g; Customizing the Error Messages from the Business components

    Hi all

    Using Jdeveloper 11.1.1.2. I customized the BC error message using message bundle. My bundle of message class is

    SerializableAttribute public class MessageBundle1 extends ListResourceBundle {}
    private static final Object [] [] sMessageStrings =
    New String [] [] {}
    {"Houston-26048',"child records exist against the selected record"},
    {"EMP_JOB_FK", "there are the child records to selected record" ""},
    {"Houston-25013',"record already exists"},
    {"JOB_ID_PK", "' Job ID already exsist" "}
    };

    / * Return string identifiers and the corresponding Messages in a two-dimensional array.
    */
    protected Object [] [] getContents() {}
    Return sMessageStrings;
    }
    }


    Need help on two or three issues, I am confronted with this: -.

    (1) although I gave the error message for Houston-25013 and JOB_ID_PK, always I get after the error message on the user interface, when you save the new record
    "Too many objects correspond to the oracle.jbo.Key [AD_PRES primary key]."?
    (2) why do I get "Attribute in HrModule.JobsView1 JobId is required." with above the error message in the error popup window?
    "(3) when removing the record, even though I'm getting desired error message on UI ' oracle.jbo.DMLConstraintException: there are the child records to selected record", why the error message is prefixed by "oracle.jbo.DMLConstraintException".?
    (4) how can I locate the error messages in another language?

    Thank you
    Vikram

    Published by: Vikram K on March 22, 2010 15:23

    Hello

    Just put the number of the error, instead of Houston-25013 1), try with 25013

    For 4) you must create a second resource group with the locale in his name. ex I have a BCBundle.java for English and a BCBundle_fr.java for the French
    Check the guide FusionDev and WebDev guide for information on the locale and the beams of the resource.

    HTH

    Concerning
    Paul

  • How can I display an error message on the listening port close popup without closing the popup.

    Hi Experts,

    JDeveloper 12.1.3.0.0

    How can I display an error message on the listening port close popup without closing the popup.

    Thank you

    Roy

    As its name suggests, close listener of popup is called when popup is closed so you can not do this.

    If you want to display the popup message, use your own buttons instead of the ok/cancel default buttons and close the popup programmatically.

    Dario

  • AfterEffects CS6 will not show on my Adobe Creative cloud. I work in a school district. The error message is: ' we are currently experiencing some issues, please try again later. " If the problem persists, contact customer service. "It is to go

    AfterEffects CS6 will not show on my Adobe Creative cloud. I work in a school district. The error message is: ' we are currently experiencing some issues, please try again later. " If the problem persists, contact customer service. "This has happened during about two weeks, give or take. Everything is displayed. Are there patches? Thank you

    You MUST have a 64-bit computer and operating system... What is your computer?

    -Programs are supposed TO not view or download if they are not installed on your computer

    MINIMUM for After Effects and Premiere Pro http://helpx.adobe.com/premiere-pro/system-requirements.html

  • I'm trying to download the free track of After effects.  Keep the error message and get the ' we are currently experiencing some issues, please try again later. " If the problem persists, contact customer service. »

    I'm trying to download the free track of After effects.  Keep the error message and get the ' we are currently experiencing some issues, please try again later. " If the problem persists, contact customer support. "what I'm doing. I have tried for 2 hours and need to complete course work.

    you use the cc desktop app to download?

    If not, https://creative.adobe.com/products/creative-cloud

  • Error message Popup Wuauclt.exe has encountered a problem and need to close. Send the error message or not. I've done both and can't get this popup go away

    A few days ago, I downloaded SP3 on my windows XP computer. and update the windows installer, eversince, then I have a reception an annoying popup message, which reads as follows: Wuauclt has encountered a problem and needs to close > we're sorry for the inconvenience. SEND a MESSAGE ERROR / DON "T SEND I have highlighted both send and not a thousand times and can't get rid of this annoying popup."
    What can I do

    Hi AgnesBradshaw,
     
    Follow the steps in the article to resolve the problem:
     
  • Possibility to get a popup to display the display value "" and not the "return value".

    Version - Application Express 3.2.1.00.11

    I have a list of values that exceed 1500 files and am so impossible to use a Select list.

    When you use a popup lov after choosing the recording, apex displays the return value (in my case a number). Is it possible to let him use the display value (in my case, a text string).

    Concerning

    Ben

    Benton says:

    Version - Application Express 3.2.1.00.11

    I have a list of values that exceed 1500 files and am so impossible to use a Select list.

    When you use a popup lov after choosing the recording, apex displays the return value (in my case a number). Is it possible to let him use the display value (in my case, a text string).

    See limiting the number of values in a LOV

    If it comes to a page element, and then change the type of Popup LOV key.

    If there is a control in a table, it's another reason to upgrade to a supported version, or the tabular form will need to be converted to be manually generated and processed in order to allow the appropriate control be returned using the apex_item.popupkey_from_lov method

  • Display the success Message in a Popup Style

    Apex 4.2

    Is it possible to display success messages in a popup style.

    For example, as the apex notification plugin

    Gus

    Hi Gus,

    Gus C wrote:

    Hello

    I got this job using the third link above

    Process using notification plugin success message

    I have a few questions.

    When I save the changes, the notification appears, but is the standard message.

    If I uncheck the display success message box in the branch, or poster then.

    How can I just have the display of notification

    How can I get this to work, when you use the Skillbuilders Page modal plugin

    Gus

    Do not turn off the indicator of successful display, instead of this message you can remove the standard success message by adding the following to your Page-> Execute attributes when the charges article page:

    $("div#success-message").hide();
    

    More better if you add this to zero page if you prefer to use throughout the application.

    About, Skillbuilders Modal plugin Page I would say please submit more information or if possible set up for example in apex.oracle.com.

    I hope this helps!

    Kind regards

    Kiran

  • When I click on Define Custom Shape, I get an error message: "could not complete your request because of a program error."

    I use Photoshop CC 2014. When I click on Define Custom shape, there is an error box that says: "could not complete your request because of a program error."  How can I fix it or work around it? I have looked on the internet for answers, but could not find any solution to this. The custom shape tool is 99% of what I use!

    Well, now it works. It was a particular path that generated the message. Other forms custom records.

  • When installing CC, I get the error message 'download error. Please contact customer support.

    Today, I'll try to install Adobe CC, so I have error message "download error. Please contact customer support. I search the Internet, and nothing has been useful.

    Hello

    Please refer to the threads below where this issue was discussed:

    Creative cloud "Download error" message

    Persistent Cloud error - error download - creative

    Kind regards

    Sheena

  • Add a custom class to display the list

    Hello

    IM new in flex.

    In a mobile project from flex im tryin to add my class custom in my opinion:

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:fx s:View ' http://ns.Adobe.com/MXML/2009 "
    xmlns:s = "library://ns.adobe.com/flex/spark" title = "HomeView" creationComplete = "complete (event)" >
    < fx:Script >
    <! [CDATA]
    import of GridView;
    import the model;

    Import mx.events.FlexEvent;

    private var grid: GridView
    private var: model

    protected function complete(event:FlexEvent):void {}
    model = new modele()
    grid = new GridView (model)
    gr.contentGroup.addElement (grid)

    }

    []] >
    < / fx:Script >
    < fx:Declarations >
    <! - Place non-visual elements (e.g., services, items of value) here - >
    < / fx:Declarations >
    < s:BorderContainer id = "gr" >

    < / s:BorderContainer >

    < / s:View >

    but I get this error:

    1067: constraint implied a value of type: GridView to a type unrelated to mx.core:IVisualElement.

    is not possible to add a pure actionscript class?

    Thank you very much

    Probably your GridView class does not implement the IVisualElement interface. UIComponent implements this interface. I recommend you create a UIComponent, which add to the BorderContainer and then add your GridView to the UIComponent.

    In addition, do not add the UIComponent to contentGroup of the BorderContainer. Just add it directly to the BorderContainer.

    var uic:UIComponent = new UIComponent();

    gr.addElement (uic);

    uic.addChild (grid);

    Jason

  • Custom button that displays the operating range

    I have created an indicator button for a controller of pan/tilt. It has two needles. It indicates the current position of the Pan and the other the position of the unit was ordered to kill. In addition, I want to set limits of pan that will display on the indicator, as a colored strip between the start and end limit. The range may include zero - that is a legal range could be from 320 degrees to 15 degrees. Any ideas on how to proceed?

    Hello,

    You want certainly is possible using the colorimetric scale integrated and property [] MarkerVals-you just need to follow or not your valid range through 360 degrees and to update her varies as appropriate.

  • How to jump the popup to display the workflow control?

    Since we found that the logon session can be maintained correctly, and workflow control screen can not be popped up after several series of operations as "a new pop - up workflow control window".

    Our workaround, is that... to convince the user to close the review workflow each time at the end, and this may cause inconvenience. Some users have complained.


    Could an expert please how I can work around advice?

    IndiFailure wrote:
    Since we found that the logon session can be maintained correctly, and workflow control screen can not be popped up after several series of operations as "a new pop - up workflow control window".

    Our workaround, is that... to convince the user to close the review workflow each time at the end, and this may cause inconvenience. Some users have complained.

    Could an expert please how I can work around advice?

    As expected from the point of view of Content Server. The review of the Workflow page will always open in a new tab/window when click on "review of workflow" under the actions button.
    You can only claim an improvement to initiate the development of oracle.

Maybe you are looking for