Make modal dialog box "Always on Top"

i know there has been discussion about Frame always on top etc. but i have a slightly different problem.
I have a Modal Dialog box which goes to the background when the parent window loses focus and gains it back.
i am working on java version1.4. So the new methof in 1.5 version is of no use. Also i am working on Windows XP SP1.
Do i have to make the dialogbox extend OptionPane instead of JDialo, which i am doing rt now?
but OptionPane comes with a baggage and unnecessary code which i have to implement etc.
Is there any easier way to solve this issue.
Thanks
PM

This solution works for me under J2SDK v1.4.2_03. If you were to use it on a large scale, you'd probably want to develop a bit more of a formalized framework for it.
        final JFrame test_frame = new JFrame("Test");
        test_frame.getContentPane().setLayout(new BoxLayout(test_frame.getContentPane(), BoxLayout.Y_AXIS));
        JPanel panel = new JPanel(new FlowLayout());
        test_frame.getContentPane().add(panel);
        final JDialog[] modal_dialog = new JDialog[]{null};
        final JDialog d = new JDialog(test_frame, "Bah", true);
        JButton close = new JButton("Close");
        d.getContentPane().add(close);
        close.addActionListener(new ActionListener()
            public void actionPerformed(ActionEvent e)
                d.setVisible(false);
                modal_dialog[0] = null;
        FocusListener fl = new FocusAdapter()
            public void focusGained(FocusEvent e)
                if (modal_dialog[0]!=null)
                    modal_dialog[0].requestFocus();
        test_frame.addFocusListener(fl);
        JButton open = new JButton("Open");
        panel.add(open);
        open.addActionListener(new ActionListener()
            public void actionPerformed(ActionEvent e)
                modal_dialog[0] = d;
                d.pack();
                d.setLocationRelativeTo(test_frame);
                d.setVisible(true);
        test_frame.pack();
        test_frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        AWTUtilities.centerWindow(test_frame, null);
        test_frame.setVisible(true);

Similar Messages

  • Print Progress Dialog box always stays on top

    Since upgrading to InDesign CC I have noticed that all print progress dialog boxes stay on top of all windows, even after switching apps. I find this highly annoying and want it to go away. Is there a preference I can change to make it NOT be on top, especially when I've switched to a different application?

    (I am OP, having account issues)
    Trashing preferences wouldn't help if it is a default behavior, which I think this is since it's been happening since the beginning with CC. I was wondering if this was a behavior that I can change with a preference or if I'm just stuck with it.

  • Can I make the TestStand Properties dialog an 'always on top' window?

    I am having window Z order problems, such that calling PropertyObject.DisplayPropertiesDialog() sometimes sends the window behind the my application window. This causes people to think that the application has crashed (it's only waiting for them to dismiss the properties dialog), and often results in the fatal three finger salute.
    This problem cannot be solved by setting Engine.AppMainHwnd, or using the PropDlgOption_ModalToAppMainWind option - it's a long story. Is there a way to set the Z-order priority of TestStand dialogs? If I could set the dialog to 'always on top', all my problems would be solved.
    Thanks,
    Aaron Stibich
    Senior Engineer
    Innovative Technologies Inc.

    Hi Aaron,
    Unfortunately there is no way in TestStand to set the Z order property. You may be able to use Windows API calls though to accomplish the same goal. I will however put in a product suggestion for you so that this request may be looked at.
    Thanks,
    Caroline
    National Instruments
    Thanks,
    Caroline Tipton
    Data Management Product Manager
    National Instruments

  • Standard 'X' in a modal dialog box not working

    Hi,
    I have created a module pool and calling screen from main screen using Call screen.... Starting... ending... statement.
    It is a modal dialog box screen. As a standard a [X] appears on top right corner. But when I click it doesn't work. it does not even fire PBO. How can I make it work?

    Hi,
    Set next screen as 0, not the screen itself. Then you are able to close it this way.
    Regards
    Marcin
    I was wrong, this will only close the modal box each time after the dialog step is completed. To activate this magic 'X' (allow closing the window with ALT+F4) in PBO set status (type dialog box ) and activate CANCEL and CONTINUE buttons. Now when you try closing the window either by CANCEL button or using X, sy-ucomm (ok_code of the screen) will store CANCEL function code. This way you can simply say LEAVE SCREEN . That works fine, I checked.
    Regards
    Marcin
    Edited by: Marcin Pciak on Mar 17, 2009 11:16 PM

  • Making a Message Box always on top

    Hi all,
    I want a solution so that the message box I show on the screen should remain always on top of all the windows. Just like the common windows operating system modal dialog boxes so that the user cannot proceed unless and untill he closes the message box.
    I have tried with the JDialog by calling the method
    setModal(true);
    but unable to fix it.
    Thanx in advance,
    With regards
    Yuvraj
    Mumbai.

    If you instanciate your JDialog with the parent Frame, it will be always on top of it.
    JFrame fra = new JFrame();
    fra.setVisible(true);
    JDialog dia = new JDialog(fra);
    dia.setModal(true);
    dia.setVisible(true);
    Happy programming !

  • Unable to close Modal dialog box

    Hello Friends,
    I am displaying a list in a Modal Dialog box. When I try to close the Modal dialog box. It is not getting closed.I have defined a gui status for this modal dialog box. PBO and PAI Coding is given below .
    module STATUS_0300 output.
      SET PF-STATUS 'STATUS_300'.
    SUPPRESS DIALOG.
      LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0 .
      IF p_week IS NOT INITIAL.
        WRITE : text-009 COLOR 1.
      ENDIF.
      IF p_month IS NOT INITIAL.
        WRITE : text-010 COLOR 1.
      ENDIF.
      LOOP AT g_t_wkmon_error INTO g_s_wkmon_error.
        WRITE :/ g_s_wkmon_error-matnr,
                 g_s_wkmon_error-period,
                 g_s_wkmon_error-quantity.
      ENDLOOP.
    LEAVE SCREEN.
    endmodule.  
    module USER_COMMAND_0300 input.
    CASE ok_code.
      WHEN 'OK'.
       LEAVE PROGRAM.
    ENDCASE.
    endmodule. 
    Thanks in Advance.
    Hari

    Hi,
    Check the below thread
    Re: Unable to close modal dialog box
    " Make sure you select the Radio Button DIalog BOX Typ while creating the Status in PBO
    You can use SET SCREEN 0 In the above Thread
    MODULE user_command_0100 INPUT.
      CASE ok.
        when 'CANCEL'. " You Standard GUI options shown in The GUI Screen
          SET SCREEN 0.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    module STATUS_0100 output.
    SET PF-STATUS 'ABC'. " This is of type Dailog Box type
    *  SET TITLEBAR 'xxx'.
    endmodule.                 " STATUS_0100  OUTPUT
    Hope this would resolve your Issue.
    Cheerz
    Ram
    Edited by: Ramchander Krishnamraju on Apr 16, 2010 1:16 PM

  • Is it possible to call a subscreen/modal dialog box from the global class

    Hi,
    Is it possible to call a subscreen or modal dialog box from the global class ..
    or is there any option to display a pop screen or subscreen in order to get the values from user which as to be implemented
    in the global class..
    thanks and regards,
    Poornima.

    Hi Poornima,
    you should follow Uwe's suggestion. The only alternative I can imagine is dynamic document in a dialog container. But I don't know any standardized classes to make use with minimum effort. Have a look at report DD_ADD_FORM_INPUT. Here they put the input field in a container control in a screen; you can put the container control on a dialog container (CL_GUI_DIALOGBOX_CONTAINER).
    We will not get rid of any screen for the time being, but if your application is started from any screen, the DIALOGBOX_CONTAINER can start from there.
    Regards,
    Clemens

  • Modal Dialog box in Dialog Programe

    I have create one Modal Dialog Box in Module Pool.
    when i click on the 'X' on the top right side of that screen the Dialog box is not closed.
    Can any one help on this?

    For the Modal Dialog box you need to create the Status, while creating the status Choose the Status for Dialog box. that time you it will show different Status Options.
    you need to set the status to the CANCEL(X) button , Then handle the Function in the PAI user_command module.
    CASE sy-ucomm.
    when 'CANCEL'.
    leave to screen 0.
    endcase.

  • How to remove the default icons from the toolbar of modal dialog box screen

    Hello Friends,
    Iam calling a screen from function module using CALL SCREEN statement.
    The screen is of type Modal Dialog Box. I created some input fields and buttons in the screen. When the screen is displayed, I can see the tool bar at the bottom along with the input fields and buttons in the screen.
    These icons are Continue(Enter), Check, Cancel. How can I supress this??
    I mean in my screeen I want only my input fields and buttons but not the default toolbar. How to do that?
    Regards,
    Raju

    Hi Raju,
    Try this...
    First try to capture the F-codes of ur button apppearing on the dialog box and then exclude it from the PF-status by passing it to itab.
    types: begin of tab_type,
            fcode like rsmpe-func,
           end of tab_type.
    data: tab type standard table of tab_type with
                   non-unique default key initial size 10,
          wa_tab type tab_type.
    clear tab.
    move 'DELE' to wa_tab-fcode.
    append wa_tab to tab.
    move 'PRIN' to wa_tab-fcode.
    append wa_tab to tab.
    set pf-status 'STA3' excluding tab.
    Cheers,
    Simha.
    Reward all the helpful answers..

  • ALV in modal dialog box

    Hi,
    I have an ALV on suppose screen 3000, I have created a button in the tool bar to call another ALV, but my question is, can we display ALV in modal dialog box screen(because the requirement is to display ALV as a popup)
    So when i changed the screen type to normal screen, my alv is coming,,but when i change the screen type to modal dialog box, then no ALV is being displayed in the output. Only blank screen is displayed.
    Can you please help me.
    Thanks.

    Hello
    The problem is that you have to take into account that the ALV in the popup (or modal dialogbox) is displayed on a different screen level:
    level 0 = main screen
    level 1 = 1st popup
    level 2 = 2nd popup
    We have up to 9 screen level available.
    The following sample report ZUS_SDN_ALV_IN_POPUP is a variant of my sample report ZUS_SDN_TWO_ALV_GRIDS.
    Depending on whether you mark P_POPUP or not the second ALV grid is additionally displayed on a popup.
    *& Report  ZUS_SDN_ALV_IN_POPUP
    *& Thread: ALV in modal dialog box
    *& https:||<a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="762642"></a>
    *& Screen '0100' contains no elements.
    *& ok_code -> assigned to GD_OKCODE
    *& Flow logic:
    *  PROCESS BEFORE OUTPUT.
    *    MODULE STATUS_0100.
    *  PROCESS AFTER INPUT.
    *    MODULE USER_COMMAND_0100.
    REPORT  zus_sdn_alv_in_popup.
    TYPE-POOLS: abap.
    DATA:
      gd_okcode        TYPE ui_func,
      gd_repid         TYPE syst-repid,
    " containers and ALV grids for main screen
      go_docking       TYPE REF TO cl_gui_docking_container,
      go_splitter      TYPE REF TO cl_gui_splitter_container,
      go_cell_top      TYPE REF TO cl_gui_container,
      go_cell_bottom   TYPE REF TO cl_gui_container,
      go_grid1         TYPE REF TO cl_gui_alv_grid,
      go_grid2         TYPE REF TO cl_gui_alv_grid,
    " container and ALV grid for popup
      go_docking3      TYPE REF TO cl_gui_docking_container,
      go_grid3         TYPE REF TO cl_gui_alv_grid,
      gs_layout        TYPE lvc_s_layo.
    DATA:
      gt_knb1          TYPE STANDARD TABLE OF knb1,
      gt_knvv          TYPE STANDARD TABLE OF knvv.
    PARAMETERS:
      p_popup AS CHECKBOX DEFAULT ' '.
    *       CLASS lcl_eventhandler DEFINITION
    CLASS lcl_eventhandler DEFINITION.
      PUBLIC SECTION.
        CLASS-METHODS:
          handle_double_click FOR EVENT double_click OF cl_gui_alv_grid
            IMPORTING
              e_row
              e_column
              es_row_no
              sender.
    ENDCLASS.                    "lcl_eventhandler DEFINITION
    *       CLASS lcl_eventhandler IMPLEMENTATION
    CLASS lcl_eventhandler IMPLEMENTATION.
      METHOD handle_double_click.
    *   define local data
        DATA:
          ls_knb1      TYPE knb1.
        CHECK ( sender = go_grid1 ).
        READ TABLE gt_knb1 INTO ls_knb1 INDEX e_row-index.
        CHECK ( ls_knb1-kunnr IS NOT INITIAL ).
        IF ( p_popup = abap_true ).
          CALL METHOD cl_gui_cfw=>set_new_ok_code
            EXPORTING
              new_code = 'POPUP'
    *        IMPORTING
    *          rc       =
        ELSE.
    *     Triggers PAI of the dynpro with the specified ok-code
    *  *    CALL METHOD cl_gui_cfw=>set_new_ok_code( 'DETAIL' ).  " not on 4.6c
          CALL METHOD cl_gui_cfw=>set_new_ok_code
            EXPORTING
              new_code = 'DETAIL'
    *        IMPORTING
    *          rc       =
        ENDIF.
      ENDMETHOD.                    "handle_double_click
    ENDCLASS.                    "lcl_eventhandler IMPLEMENTATION
    START-OF-SELECTION.
    " Select data
      SELECT        * FROM  knb1 INTO TABLE gt_knb1
             WHERE  bukrs  = '1000'.
      PERFORM init_controls.
    * Display data
      gs_layout-grid_title = 'Customers'.
      CALL METHOD go_grid1->set_table_for_first_display
        EXPORTING
          i_structure_name = 'KNB1'
          is_layout        = gs_layout
        CHANGING
          it_outtab        = gt_knb1
        EXCEPTIONS
          OTHERS           = 4.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      gs_layout-grid_title = 'Customers Details (Sales Areas)'.
      CALL METHOD go_grid2->set_table_for_first_display
        EXPORTING
          i_structure_name = 'KNVV'
          is_layout        = gs_layout
        CHANGING
          it_outtab        = gt_knvv  " empty !!!
        EXCEPTIONS
          OTHERS           = 4.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      gs_layout-grid_title = 'Customers Details (Sales Areas)'.
      CALL METHOD go_grid3->set_table_for_first_display
        EXPORTING
          i_structure_name = 'KNVV'
          is_layout        = gs_layout
        CHANGING
          it_outtab        = gt_knvv  " empty !!!
        EXCEPTIONS
          OTHERS           = 4.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Link the docking container to the target dynpro
      gd_repid = syst-repid.
      CALL METHOD go_docking->link
        EXPORTING
          repid                       = gd_repid
          dynnr                       = '0100'
    *      CONTAINER                   =
        EXCEPTIONS
          OTHERS                      = 4.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Link the docking container to the popup
      gd_repid = syst-repid.
      CALL METHOD go_docking3->link
        EXPORTING
          repid                       = gd_repid
          dynnr                       = '0200'
    *      CONTAINER                   =
        EXCEPTIONS
          OTHERS                      = 4.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * NOTE: dynpro does not contain any elements
      CALL SCREEN '0100'.
    * Flow logic of dynpro (does not contain any dynpro elements):
    *PROCESS BEFORE OUTPUT.
    *  MODULE STATUS_0100.
    *PROCESS AFTER INPUT.
    *  MODULE USER_COMMAND_0100.
    END-OF-SELECTION.
    *&      Form  INIT_CONTROLS
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM init_controls .
    * Create docking container
      CREATE OBJECT go_docking
        EXPORTING
          parent = cl_gui_container=>screen0  " main screen -> level 0 !!!
          ratio  = 90
        EXCEPTIONS
          OTHERS = 6.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Create splitter container
      CREATE OBJECT go_splitter
        EXPORTING
          parent            = go_docking
          rows              = 2
          columns           = 1
    *      NO_AUTODEF_PROGID_DYNNR =
    *      NAME              =
        EXCEPTIONS
          cntl_error        = 1
          cntl_system_error = 2
          OTHERS            = 3.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Get cell container
      CALL METHOD go_splitter->get_container
        EXPORTING
          row       = 1
          column    = 1
        RECEIVING
          container = go_cell_top.
      CALL METHOD go_splitter->get_container
        EXPORTING
          row       = 2
          column    = 1
        RECEIVING
          container = go_cell_bottom.
    * Create ALV grids
      CREATE OBJECT go_grid1
        EXPORTING
          i_parent = go_cell_top
        EXCEPTIONS
          OTHERS   = 5.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Set event handler
      SET HANDLER: lcl_eventhandler=>handle_double_click FOR go_grid1.
      CREATE OBJECT go_grid2
        EXPORTING
          i_parent = go_cell_bottom
        EXCEPTIONS
          OTHERS   = 5.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      " Create container and grid for popup.
    * Create docking container
      CREATE OBJECT go_docking3
        EXPORTING
          parent = cl_gui_container=>screen1 " !!! popup !!!
          ratio  = 90
        EXCEPTIONS
          OTHERS = 6.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      " NOTE: Starting from a main dynpro (screen level 0) the first popup
      "       (or modal dialogbox) is on level 1 !!!
      " Using cl_gui_container=>screen0 fails to display ALV grid.
      CREATE OBJECT go_grid3
        EXPORTING
          i_parent = go_docking3
        EXCEPTIONS
          OTHERS   = 5.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " INIT_CONTROLS
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'STATUS_0100'.  " contains push button "DETAIL"
    *  SET TITLEBAR 'xxx'.
    * Refresh display of detail ALV list
      CALL METHOD go_grid2->refresh_table_display
    *    EXPORTING
    *      IS_STABLE      =
    *      I_SOFT_REFRESH =
        EXCEPTIONS
          OTHERS         = 2.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE user_command_0100 INPUT.
      CASE syst-dynnr.
        WHEN '0100'.
          CASE gd_okcode.
            WHEN 'BACK' OR
                 'END'  OR
                 'CANC'.
              SET SCREEN 0. LEAVE SCREEN.
    *   User has pushed button "Display Details"
            WHEN 'DETAIL'.
              PERFORM entry_show_details.
            WHEN 'POPUP'.
              PERFORM entry_show_details.
              go_grid3->refresh_table_display( ). " required
              CALL SCREEN '0200' STARTING AT 5 5
                                 ENDING   AT 150 30.
            WHEN OTHERS.
          ENDCASE.
        WHEN '0200'.
          set screen 100. leave screen.
      ENDCASE.
      CLEAR: gd_okcode.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Form  ENTRY_SHOW_DETAILS
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM entry_show_details .
    * define local data
      DATA:
        ld_row      TYPE i,
        ls_knb1     TYPE knb1.
      CALL METHOD go_grid1->get_current_cell
        IMPORTING
          e_row = ld_row.
      READ TABLE gt_knb1 INTO ls_knb1 INDEX ld_row.
      CHECK ( syst-subrc = 0 ).
      SELECT        * FROM  knvv INTO TABLE gt_knvv
             WHERE  kunnr  = ls_knb1-kunnr.
    ENDFORM.                    " ENTRY_SHOW_DETAILS
    Regards
      Uwe

  • How to make a dialog box for a user to choose a file from disk

    Hi there
    Is it possible to make a dialog box, for a photoshop user, to choose a txt file, to be process by my javascript ?
    I have a txt file with all the names and locations of psd files i want to process by photoshop. I have ex. 100 out of a folder with 250 images.
    If anyone have a shot "code sample" how to select a file - i will be happy.
    /T

    Here is an example of selecting a text file...
    var dlg=
    "dialog{text:'Script Interface',bounds:[100,100,500,220],"+
    "testFile:EditText{bounds:[10,40,310,60] , text:'' ,properties:{multiline:false,noecho:false,readonly:false}},"+
    "Browse:Button{bounds:[320,40,390,61] , text:'<<' },"+
    "statictext0:StaticText{bounds:[10,10,240,27] , text:'Please select Text File' ,properties:{scrolling:undefined,multiline:undefined}},"+
    "Process:Button{bounds:[10,80,190,101] , text:'Process' },"+
    "button2:Button{bounds:[210,80,390,101] , text:'Cancel' }};"
    var win = new Window(dlg,'test');
    win.center();
    win.testFile.enabled=false;
    win.Browse.onClick = function() {
    selectedFile = File.openDialog("Please select TEXT file.","TEXT File:*.txt");
      if(selectedFile != null) win.testFile.text =  decodeURI(selectedFile.fsName);
    win.Process.onClick = function() {
    if(win.testFile.text == '') {
      alert("No text file has been selected!");
      return;
    win.close(1);
    selectedFile.execute();
    win.show();

  • How to create application toolbar in modal dialog box in selection-screen

    Hi Experts,
    how to create application toolbar in modal dialog box in selection-screen?
    Regards,
    Swapnika

    Hi,
    Check the following link regarding Model dialog box and appication toolbar
    http://help.sap.com/saphelp_nw70/helpdata/en/d1/801b84454211d189710000e8322d00/frameset.htm
    It helps in solving your problem.
    Thanks.
    Ramya.

  • Calling Selection Screen in Modal dialog box

    Hi Experts.
    I have created screen 9000 having user interface and in tool bar there is create button in the screen 9000
    The create button 9001 will call another screen with different I/O fields (9001 is Modal dialog screen).
    In the 9001 there is push button for which the selection screen is called 9002.
    I have declared 9002 as subscreen and called the screen 9002 in user command.
    In the Screen 9001 when user clicks the push button i need to get pop up screen where the user select some data.
    How i need to do ?
    I am getting error can't call subscreen in modal dialog box.
    Thanks,
    ERPSAP

    HI,
    HOpe this will help you
    How to call table control in subscreen in module pool program
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/reg-tab-strip-control-module-pool-abap-444944
    http://12go.com/sap/search?query=title%3A(calling%20subscreens%20in%20module%20pool)
    Regards,
    Pravin

  • How to set width for this modal dialog box?

    Hi All,
    How to set width to this modal dialog box:
    <input id="btnVote" onclick="javascript:SP.UI.ModalDialog.showModalDialog({ url: &#39;../Lists/Sports%20Activities%20Voting/NewForm.aspx&#39;, title: &#39;User Survey&#39;}); return false;" type="button" value="Vote"/>
    Thanks in advance!

    set as bellow:
    <input id="btnVote" onclick="javascript:SP.UI.ModalDialog.showModalDialog({ url: &#39;../Lists/Sports%20Activities%20Voting/NewForm.aspx&#39;, title: &#39;User Survey&#39;,width:700,height:350}); return false;" type="button" value="Vote"/>
    yaşamak bir eylemdir

  • Standard function close Alt-F4 in modal dialog box

    hi,
    does anybody know how to activate the standard functions eg "close window" (Alt-F4) or terminate transaction in a modal dialog box (a dynpro-type modales Dialogfenster(in german)) eg the flying window of the system-status.
    i looked in the status of the status-dynpro, but could not find anything special about it.
    hints welcome...
    thanx a lot in advance. matthias kasig

    thanx - this solved my problem - but you have to catch a sy-ucomm with value '/CANCEL' - if you only catch 'CANCEL' it won't help - at least this works in my case - ta - i rewarded 10 points
    matthias kasig

Maybe you are looking for

  • How to make guides on a master page more effective

    I have a grid of guides on a master page. They are visible in my working pages, but they don't have that "magnetic" quality that I expect - things don't snap to them. I have layers in the master page and layers in my working pages. Can someone help m

  • Hello world puzzle

    I new to java and I was asked the following Q - Here is a simple hello world program - public class A { public static void main(String a[]) { System.out.println("hello world"); Now question is can I print something like "hello java" before "hello wor

  • T500, T400 and X200 screen resouliton in preboot

    Hi, Does anybody know what the preboot screen resolution is in T400, T500 and X200? Message Edited by jogvan on 08-28-2008 07:18 AM

  • WEB  ENABLING   IN    BW

    Hi BW Gurus, According to following link i have done settings. https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ec20a990-0201-0010-f291-d1d039975e41 SE37>RSBB_URL_PREFIX_GET>Execute-->execute I am not getting the following par

  • IPhone, Excel Spreadsheet Cell Formatting Incorrectly

    I am opening a "Mortgage Rates" spreadsheet on my iPhone. The rates are showing up as numbers, instead of percentages. For example: a rate on the spreadsheet will be 4.00%. It translates that on the spreadsheet on my iPhone as 0.040%. I did figure th