Pop up message / dialog box

Hi,
I need your help to create a message box. In my app I am doing some data validation (Function returning Error Text). It generates messages but upon load of the page, I would like to have popup message box stating that there records which failed the validation. There will be 1 button (OK) in the message box.
Thanks in advance.
Arjay

Hello Arjay,
Following another thread on the forum (Detecting validation errors during accept processing I think I have fairly simple solution to your request.
You should define a hidden item that will serve us as a flag, with default value set to 'False'.
You should define a HTML region, condition by the flag being 'True'. This region should contain similar code to the following:
<script language="JavaScript" type="text/javascript">
<!—Hide
alert('Validation Error on page');
// End Hide -->
</script>You should define a before validation process, that will set the flag to 'True', and another process, after computation and validation, that will set it to 'False'.
The logic is simple. By default, the flag will be set to 'False' so the region with the popup message will not be rendered. Then, prior to validation, you are setting the flag to 'True'. If validation errors were detected, the after validation process will not be fired, and the region with the popup message will be rendered, as the flag is 'True'. If no validation errors were detected, the after validation process will set the flag back to 'False'.
Hope this helps,
Arie.

Similar Messages

  • SQL plus pop up message dialog

    Dear all,
    Did anyone come across any experience like that:
    When I execute a SQL statment that may need return a several thousands line in SQLPlus,
    If I used SQLPlus version 3.3.4.00 (Oracle 7), a pop up message dialog will come up like
    "Query is Executing ..." and a "Cancel" button is available in dialog box also.
    However, If I used SQLPlus version 8.0.5 (Oracle 8 or laster), this pop up won't show up anymore.
    The pop up is useful if I need to break the process and I just want to know if anything is required to configured on latest SQLPlus to activate this!
    Thanks and Regards
    Kenneth

    The removal of the cancel dialog was an unfortunate side effect
    of an internal rewrite of SQL*Plus code in 8.0. The fundamental
    problem still persists into 9i and it is not until 9i release 2
    (being touted on www.oracle.com) that the iSQL*Plus web interface
    (though not the SQL*Plus GUI on Windows) has a cancel button.
    This was spoken about on the OTN iSQL*Pus discussion forum a
    while back.
    -- CJ

  • I just statred Flash CC for the first time and it seems that the text within the pop-up window (dialog box) is mis-aligned and not allowing me access to the command buttons, nor all the text. (ie: the NEW Template Box, can't see but 2/3 of the content)

    I just statred Flash CC for the first time and it seems that the text within the pop-up window (dialog box) is mis-aligned and not allowing me access to the command buttons, nor all the text. (ie: the NEW Template Box, can't see but 2/3 of the content) is there a fix to this problem? using 8.1, Monitor is a high res.2560x1440.

    Another View.
    the GUI is so hard to read (so small) I enlarge my Ps UI by the instructions below...which helped a lot.

  • Need help in makinga message dialog box dissapear automaticly

    hi i have the following code that displays a message dialog box that tells me when a user is online.
    how do i make it disapear automaticly after say, 5 seconds.on msn messenger a similar technique is used where when a user comes online, a message box appears stating who and then dissapears after a couple of seconds..
    i need this to work so that say if a user is away from the pc for such a given time, the message box will just pile up if loads of users have appeared online during the duration that the user was away from his pc..
    here is what i have
    JOptionPane.showMessageDialog(null, "error " + e.getMessage(), "Error", JOptionPane.ERROR_MESSAGE);

    U cant do that using a JOptionPane, use a JDialog instead.
    use dialog.setVisible(true);
    after this start a timertask which executes after 5 seconds and disposes the dialog

  • Displaying selection screen as pop-up from dialog box

    Hi,
          I have a screen which is of dialog-box type. This dialog screen shows an ALV and has a button in the ALV toolbar. On pressing this button, a pop-up screen is to be displayed. This pop-up screen is designed as a selection-screen. Is it possible to display this selection screen as a pop-up from a dialog box screen?
    Regards,
    Suhas

    Hi Suhas,
    Its possible to display selection screen as pop-up from dialog box.....Check the code below...copy paste and execute...
    SELECTION-SCREEN BEGIN OF SCREEN 123 AS WINDOW TITLE text-001.
    PARAMETER p.
    SELECTION-SCREEN END   OF SCREEN 123.
    CALL SELECTION-SCREEN 123 STARTING AT 20 5
                                ENDING AT 80 15.
    The below code might help u to add a button in alvgrid's toolbar......
    *       CLASS lcl_event_handler DEFINITION
    CLASS lcl_event_handler DEFINITION.
      PUBLIC SECTION.
        DATA: wa_toolbar   TYPE stb_button,
              calc         TYPE REF   TO cl_gui_frontend_services.
        METHODS : toolbar_handle FOR EVENT toolbar      OF cl_gui_alv_grid
                                        IMPORTING e_object
                                                  e_interactive,
                  ucomm_handle   FOR EVENT user_command OF cl_gui_alv_grid
                                        IMPORTING e_ucomm.
    ENDCLASS.                    "lcl_event_handler DEFINITION
    *       CLASS lcl_event_handler IMPLEMENTATION
    CLASS lcl_event_handler IMPLEMENTATION.
      METHOD toolbar_handle.
        MOVE   3 TO  wa_toolbar-butn_type.
        APPEND wa_toolbar   TO e_object->mt_toolbar.
        MOVE : 0            TO wa_toolbar-butn_type,
               'CALC'       TO wa_toolbar-function,
               '@0M@'       TO wa_toolbar-icon,
               'Calculator' TO wa_toolbar-quickinfo.
        APPEND wa_toolbar TO e_object->mt_toolbar.
      ENDMETHOD. "toolbar_handle
      METHOD ucomm_handle.
        IF e_ucomm = 'CALC'.   " When button added in toolbar is clicked
          IF calc IS INITIAL.
            CREATE OBJECT calc.
          ENDIF.
          CALL METHOD cl_gui_frontend_services=>execute
       EXPORTING
         application            = 'CALC'.
        ENDIF.
      ENDMETHOD. "ucomm_handle
    ENDCLASS.                    "lcl_event_handler IMPLEMENTATION
    DATA : container    TYPE REF   TO cl_gui_custom_container,
           grid         TYPE REF   TO cl_gui_alv_grid,
           event        TYPE REF   TO lcl_event_handler,
           it_display   TYPE TABLE OF mara,
           wa_display   TYPE mara.
    START-OF-SELECTION.
      CALL SCREEN 100.
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'BASIC'.
      PERFORM build_it_display.
      PERFORM create_objects.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE user_command_0100 INPUT.
      CASE sy-ucomm.
        WHEN 'BACK'.
          SET SCREEN 0.
          LEAVE SCREEN.
        WHEN 'EXIT'.
          SET SCREEN 0.
          LEAVE SCREEN.
        WHEN 'CANC'.
          SET SCREEN 0.
          LEAVE SCREEN.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Form  build_it_display
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM build_it_display .
      SELECT * FROM mara UP TO 15 ROWS INTO TABLE it_display.
    ENDFORM.                    " build_it_display
    *&      Form  create_objects
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM create_objects .
      IF container IS INITIAL.
        CREATE OBJECT container
        EXPORTING
          container_name     = 'CUSTOM'.
        CREATE OBJECT event.
        CREATE OBJECT grid
          EXPORTING
            i_parent         = container.
        SET HANDLER event->toolbar_handle FOR grid.
        SET HANDLER event->ucomm_handle   FOR grid.
        CALL METHOD grid->set_table_for_first_display
          EXPORTING
            i_structure_name = 'MARA'
          CHANGING
            it_outtab        = it_display.
      ENDIF.
    ENDFORM.                    " create_objects
    Cheers,
    Jose.

  • Popping up a dialog box on client side for authentication in a proxy server

    hi all,
    we have wriiten a code for proxy server.now we want to add the authentication code in the same which will authenticate client by popping up a dialog box on the client side.though no code runs on the client side.only the client has to open the browser and enter the credentials.
    we dont know how to pop up this authentication window on the client side when he requsts for the service.
    Its almost like a SQUID where the pop up box appears.
    The code for our proxy server is
    import java.net.*;
    import java.io.*;
    public class BasicProxyServer {
         private static int serverPort;
         private static String primaryServerHost;
         private static int primaryServerPort;
         // 1st arg: port to listen on     // 2nd arg: primary server IP     // 3rd arg: primary server port
         public static void main(String [] args) {
              serverPort = Integer.parseInt(args[0]);
              primaryServerHost = args[1];
              primaryServerPort = Integer.parseInt(args[2]);
              BasicServer bserv = new BasicServer(serverPort,primaryServerHost,primaryServerPort);
    class BasicServer extends Thread {
         private int serverPort;
         private String primaryHost;
         private int primaryPort;
         private ServerSocket servSock = null;
         public BasicServer(int port, String primSrv, int primPort) {
              serverPort = port;
              primaryHost = primSrv;
              primaryPort = primPort;
              start();
         public void run() {
              Socket clientSock = null;
              Socket primaryServerSock = null;
              try {
                   servSock = new ServerSocket(serverPort);
              catch (IOException e) {
                   e.printStackTrace();
              while(true) {
                   try {
                        clientSock = servSock.accept();
                        primaryServerSock = new Socket(primaryHost, primaryPort);
                        PipedInputStream fromClient = new PipedInputStream();
    //BufferedReader br= new BufferedReader(new InputStreamReader(clientSock.getInputStream()));
    //String ipline=br.readLine();
    //History hi=new History();
    //hi.writeHistory(ipline);
    //try{
    //hi.getHistory();
    //catch(ClassNotFoundException cne){
    // System.out.println(cne);
                        PipedOutputStream toMainServer = new PipedOutputStream(fromClient);
                        PipedInputStream fromMainServer = new PipedInputStream();
                        PipedOutputStream toClient = new PipedOutputStream(fromMainServer);
                        Talk clientToMainServer = new Talk(clientSock, fromClient, primaryServerSock, toMainServer);
                        Talk mainServerToClient = new Talk(primaryServerSock, fromMainServer, clientSock, toClient);
                        clientToMainServer.start();
                        mainServerToClient.start();
                   catch (IOException e) {
                        e.printStackTrace();
    protected void finalize() {
    if (servSock != null) {
    try {
    servSock.close();
    } catch (IOException e) {
    e.printStackTrace();
    servSock = null;
    class Talk extends Thread {
         private Socket incoming;
         private Socket outgoing;
         private InputStream in;
         private OutputStream out;
    String urlrequest="";
         private InputStream from;
         private OutputStream to;
         Talk(Socket inSock, InputStream in, Socket outSock, OutputStream out) {
              this.in = in;
              this.out = out;
              incoming = inSock;
              outgoing = outSock;
         public void run() {
              int aByte;
              try {
                   from = incoming.getInputStream();
                   to = outgoing.getOutputStream();          
                   while(( aByte = from.read()) != -1 ) {     //read from socket
                        out.write(aByte);
    if(new Integer("3128").equals(incoming.getPort()))
    urlrequest=urlrequest+out.toString();
    urlrequest=urlrequest+incoming.getPort()+outgoing.getPort();
    // write to pipe`
                        // read the byte from the pipe
                        to.write(in.read());          // write it to the output socket stream
                        to.flush();
    System.out.println(urlrequest);
                   to.close();
                   from.close();
                   if(incoming != null) {
                        incoming.close();
                        incoming = null;
                   if(outgoing != null) {
                        outgoing.close();
                        outgoing = null;
              catch (SocketException e) {
              // there is one for a closed socket. Seems to have no effect.
              //     e.printStackTrace();
              catch (IOException e) {
                   e.printStackTrace();
    waiting for reply.....

    Install a java.net.Authenticator.

  • How can I avoid the Local storage pop-up question dialog box during playing you tube vedios ?

    How can I avoid the Local storage pop-up question dialog box during playing you tube vedios ?

    You might try tweaking your global privacy settings.  I suspect it's set to "always ask."
      Go to this page -- http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager02.htm l -- which contains the settings panel for Flash Player, and click on the various "deny" buttons to disable this.  (It's a good idea to click on all the tabs to check the settings.)
    If this works for you, please post back.  (I know it worked for me.)
    Ortho_Fan
    (not a techie)

  • ITunes keeps popping up a dialog box that says "An update to the carrier settings for your iPhone is available. Would you like to download it?" What is this?

    iTunes keeps popping up a dialog box that says "An update to the carrier settings for your iPhone is available. Would you like to download it?" What is this? When I click on the "Learn More" button in the dialog box it takes me to a generic iTunes support page that has no relevance to carrier settings.

    I got this three times within the last 4 hours and have been getting it almost every day since I use my new iPhone 6 - over a week now. This happens almost every time I connect the phone to my MacBook Pro, although every time I confirm and it indicates successful update.
    It is highly unlikely that my carrier updates settings on daily basis or three times a day. It is almost surely a bug in the Apple system and anything but a timely and effective solution is unacceptable.
    For debugging information, I recovered a backup from my former iPhone 5 onto the new one, using the same carrier and SIM.

  • Validation and  Error Message Dialog Box

    hi,
    I created 2 items DateFrom and DateTo.....when User enter dates into these items I need validate these dates i.e DateTo should be greater than DateFrom
    if it is not so,,,,I need to Popup a Error message in Dialog Box.........
    and this Error should not terminate the Program.
    Thanks in Advanced
    regards,
    Radhika

    Radhika,
    You need to attach PPR event to the Date To column. In the event code in controller, you can validate do the validation and accordingly throw error on the page.
    Why do you need a pop up(javascript alert) for that?
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Using Message Built-In - Message dialog box appears twice

    Hi all,
    I'm using the message built-in to display messages in forms.
    I use the message command twice to make it appear as a dialog box.(Using it once displays it in status bar)
    Eg.
    Message('Hello World');
    Message('Hello World');
    Sometimes, the dialog box appears twice instead of once.
    Is there a way to solve this ?
    Regards,
    Sam

    With an alert, you can write up to 200 characters in the alert box. With a message, you can write up to 255 characters, and if you want the message to pop up in an alert box, you can write a double message. I use:
    Message('Hello World');
    Message(' ',no_acknowledge);

  • JRE 1.6. 0_01 is giving issues in message dialog box size

    Hi There,
    I am displaying message dialog for one of my web application. To resize the dialog automatically, I have set getPrefferedSize() property.
    This is working fine with JRE 1.5.0_11 and all lower version, even ok with 1.4.x. But if I am viewing the applet in a browser having JRE 1.6.0, dialog box size is automatically streatched. Height of the dialog box is increased automatically more than the desktop height. I can not view top & bottom area of the dialog box on my desktop.
    Please guide me why is this issue only with JRE 1.6.0 and what should I do to eliminate & resolve it.
    Thanks.

    Really? I thought all official versions would be downloadable through webstart. I'm curious why would Sun not make them available. Now I need to explain to my higher-ups why I promised to get webstart to automatically update all our user's JRE but now failed to make good. :-(
    Regarding the printing problem: With b105 the printouts would have text that is upside, mirrored and cropped. It was a total mess. The problem is reproducible. We manually upgraded some users to b106 and the problem disappeared completely. I think Sun fixed it in 106 but now the problem is getting all our users onto JRE b106.
    Java Webstart is supposed to do this for me but now it appears to be failing me big time.

  • Cannot send message dialog box is too big to get to the bottom to close

    I tried sending an email to my entire address book. I received the error message "cannot send message". That is not my issue, I can deal with it. What IS my issue is the dialog box contains all the addresses that I tried to send the email to and therefore the dialog box itself is really big. I cannot scroll to the bottom to click on the resend, or edit email choices. I cannot close this particular email. I forced quit email altogether, but when I re-opened the dialog and message came back up. I shut all the way down and it still came up. Does anyone know how to get rid of this unsent email?

    I just went to the Genius Bar with this exact problem. To fix this do the following:
    1. click on the error message (it will select it without showing anything)
    2. press the return key (this should clear it from the screen and it will try to resend)
    3a. turn off your internet connection (wither airport or ethernet)
    3b. go to mail preferences and turn "disable" that particular mail account
    (these 2 steps in #3 will stop mail from its automation and allow you to select the message itself)
    4. Your "outbox should now be present, and you can go into it and select the message
    5. now click on the message tab at the top of your screen and select "send to..." > select "drafts"
    Now you should be able to edit this message or the recipients or just delete it all together and start over. I hope this helps some people out, it was a massive headache for me!
    Message was edited by: rockfountain

  • Webstart Message Dialog Box Woes

    Hello,
    I've created a webstart application. This application can also run as an applet and a stand-alone application. If I run the java program either as an applet or an application outside of webstart, I can get dialog boxes to appear. (The applet is using JRE 1.3 plugin to run, not the standard browser jvm). If I run the application using the webstart platform, the dialog boxes do not appear.
    From reading the developer documentation, all web start does is run the application in a sandbox. However, as I pointed out earlier, the dialogs appear just fine when run in the browser applet sandbox. I'm assuming that webstat uses the same jre as the java plugin.
    What am I doing wrong? I can provide more info such as code snippets if this is not an environmental issue.
    Thanks in advance

    Does the Web Start console (activate it from files->preferences->advanced) report anything fishy?
    Can you run the app from the jar (java -jar ...)?
    Anything special about your dialog (constructed from xml resource)?
    Do you use pluggable look and feel?
    Regards,
    Marc

  • Is there a LabVIEW function that will pop-up a dialog box to prompt the user if he is sure he wants to do when a boolean switch is pressed?

    I want to prompt the user by asking, "Are you sure you want to do this?" when the user presses a switch.  If the user clicks "Yes" then the switch changes state, if the user clicks "No" then the switch retains the current state.  Does such a thing exist or do I have to invent it?  I am new to LabVIEW.
    Thanks.

    You can use an event structures filter event on mouse down for something like this.  Pop up a dialog and invert the logic for the output and sent it to the Discard? modifier on the right side.  See example for assistance.
    Attachments:
    Untitled 1.vi ‏24 KB

  • Verification Message Dialog Box

    How would you create a Push Button that asks you "Are you sure you wish to turn off this pump?" and ask a second time, "Are you REALLY sure you wish to turn off this pump?".

    I have done something similar. I created a switch that was displayed as a check box. When the box was checked a verification popped up (yellow feild under "Action Verification Messages" - on) that provided an appropriate warning. This switch was also connected to a pushbutton's visible datamember. When the check was in the check box (switch=on) the pushbutton was visible. When the pushbutton was depressed another action verification popped up. When the pushbutton was depressed the switch was reset to off. If they decide not to select yes on the pushbutton's action verification message a timer would turn of the check box a few seconds later.
    Try it.
    Regards,
    Tommy Scharmann

Maybe you are looking for

  • IPod touch not recognized after upgrading to Mac OS X 10.5

    Hello I recently upgraded my macbook pro to os x and now my ipod touch is not connecting to itunes. I'v reset my ipod touch and now when i plug it in nothing happens still. This is quite distressing as Im addicted to my ipod. Any help would be greatl

  • External speakers for Mac Mini

    I am new to this. What adapter do I need to use some Imac Flat Panel G4 speakers with my mini? They are Pro Speakers. Another topic- is there a download to make my HP 880c printer operable with this mini? thanks

  • MRP RESULT TABLE

    Hi I am developing a report to display the MRP results collectively. what is the table from which i can get the MRP results like current stock, Purchase requisition and purchsae orders for various time periods. Solai [email protected]

  • Regarding archived sales order

    Hi Friends Sales order has been raised and delivery created without doing pgi when we r try to create pgi in vlo2n, system showing error sales order does not exist when iam trying to open order in va02, its showing error sales order exist i opened vl

  • Can't select layer mask, also some tools not working -- in CS2

    Photoshop 9.0.2 on WinXP Pro (3 GB RAM; Used space: 18.4GB; Free space: 214GB; Video card: 256MB ATI Radeon X1300PRO) Hi, I have a couple image layers (each created by merging several others) that each also have a mask attached. I cannot get the laye