How to dispose the modal dialog box

hi all
can any one please tell me how to supress the modal dialog box.
Means iam triggering the a new pop up (modal dialog box) after this
when iam click ok or cancel buttons on this modal dialog box it is not returing to
the screen from where it is tiggering. Can any one tell how to achieve this.
what r the statements i have to write for this in the PAI.

HI,
in PAI u have to write like..
CASE OK_CODE.
WHEN 'OK'.
UR CODE.........
WHEN 'CANC'.
   SET SCREEN 0.
   LEAVE SCREEN.
OR
   LEAVE TO SCREEN XXX. " UR CALLING SCREEN NUMBER
ENDCASE.
Pls close the thread if the problem is solved and reward to all helpful answers.
Regards
SAB

Similar Messages

  • How to create non-modal dialog box?

    I'm trying to create a non-modal dialog box. The purpose is to show an alarm for the user but should leave the calling VI continuing to run. I have created such a thing -- the problem is that I can't figure out how to get the dialog box to go away! It stops running but the window just hangs around. See the attached VIs and image.
    Thanks in advance for your help,
    Chad
    Attachments:
    alarm_ui.png ‏11 KB
    alarm_ui-2.vi ‏11 KB
    message_to_user.vi ‏11 KB

    Ok, I've attached the files. Thanks for looking at this.
    Chad
    Attachments:
    alarm_ui-2.vi ‏11 KB
    message_to_user.vi ‏11 KB

  • How to avoid the windows "dialog box" when we use flexprintjob class

    in the print segment
    http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf65381-7ffc.html
    it says
       printJob.start();
    This causes the operating system to display a Print dialog box.
    this  windows "dialog box" which is used to set the page size, page index, or some other page settings.
    but in my case , i can't let user see this dialog box.
        how can i avoid this "dialog box" when i call   printJob.start();
    it is my big issue ,please help to give a suggestion

      hi   how can i set the "ie" "internet explorer"  to avoid the "dialog box."  if i have to do it .
    thank you very much !

  • How to suppress the Print Dialog Box?

    Running an (ASP.NET /Crystal Reports 2008) application and using CrystalReportViewer control. Is there way to suppress the print dialog box when I click the print icon on the report tool bar?
    Edited by: juRamz on Aug 26, 2009 2:54 PM

    Hello,
    Sort of, CR needs the info. Only option is to create your own print button that has all the info filled in. It's a Windows Framework Common dialog box that CR calls so it's the OS that is prompting for the info.
    Using ReportClientDoc here's a possible solution, note that this too has a dialog box to select the printer:
    private void button1_Click(object sender, System.EventArgs e) // Print To Printer button
        System.Drawing.Printing.PrintDocument pDoc = new System.Drawing.Printing.PrintDocument();               
        PrintReportOptions rasPROpts = new CrystalDecisions.ReportAppServer.Controllers.PrintReportOptionsClass();
        CrystalDecisions.ReportAppServer.ReportDefModel.PrintOptions newOpts = new PrintOptionsClass();
        //CrystalDecisions.CrystalReports.Engine.PrintOptions newOpts = new PrintOptionsClass();
        pDoc.PrinterSettings.PrinterName = cboCurrentPrinters.Text;
        rasPROpts.PrinterName = cboCurrentPrinters.Text;
        rasPROpts.PaperSize = (CrPaperSizeEnum)
            pDoc.PrinterSettings.PaperSizes[cboCurrentPaperSizes.SelectedIndex].Kind;
        rasPROpts.PaperSource = (CrPaperSourceEnum)
            pDoc.PrinterSettings.PaperSources[cboDefaultPaperTrays.SelectedIndex].Kind;
        // new API added to allow changing printing options
        newOpts = new CrystalDecisions.ReportAppServer.ReportDefModel.PrintOptions();
        newOpts.DissociatePageSizeAndPrinterPaperSize = true;
        rptClientDoc.PrintOutputController.ModifyPageMargins(0, 0, 0, 0);
        rptClientDoc.PrintOutputController.PrintReport(rasPROpts);
        MessageBox.Show("Printing report.", "RAS", MessageBoxButtons.OK,MessageBoxIcon.Information );
    Thank you
    Don

  • How to display non modal dialog box in a Dll call from TestStand implemented in visual c

    Dear Jason F.
    Applications Engineer
    National Instruments
    Hello
    I did the same way you told me
    the non modal dialog appeared and
    system hangs and
    giving the error message
    ""SeqEdit.exe-Application Error
    The instruction at �0x047fc5b0� referenced memory at �0x047fc5b0�. The memory could not be �read� ""
    please solve my problem
    and thanks for yours early response
    you can email me at
    [email protected]

    Hi Mkehret,
    Does your dialog have ActiveX controls on it? If your DLL dialog uses ActiveX controls and is not programmed in a certain manner it can hang because of a conflict in the threading model used by the TestStand Engine that is calling into your DLL and the model that is required by the MFC ActiveX Container. If you are using ActiveX controls in your dialog, you need to make special considerations for the threading model MFC dialogs that use ActiveX controls need in order to work properly. The example under \Examples\MFCActiveXContainerDlg illustrates how to appropriately handle this situation as well as explaining why it is necessary.
    Note: The above example displays the dialog as modal, but this is irrelevant to the problem I am describing.
    Again for information on properly creating a dialog class object and displaying it as non-modal refer to the information on MSDN that I referred you to in this post:
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000E98A0000&USEARCHCONTEXT_CATEGORY_0=_8_&USEARCHCONTEXT_CATEGORY_S=0&UCATEGORY_0=_8_&UCATEGORY_S=0
    If your dialog does not use ActiveX controls or after trying the programming method illustrated in the "MFCActiveXContainerDlg" example TestStand still hangs when calling your DLL, try calling your DLL from another environment just to make sure whether the DLL works at all. If the DLL works properly when called by another environment (e.g. VB, VC++, LabVIEW, or CVI), please submit a MINIMAL and REPRODUCEABLE example source project for your DLL for us to look at (please exclude all unnecessary code not required to reproduce the specific problem of displaying the dialog, and include all files necessary to build your dll with any
    specific instructions needed to do so).
    Jason F.
    Applications Engineer
    National Instruments
    www.ni.com/ask

  • How to hide the warning Dialog box in illustrator?

    I need to open the pdf file in 'illustrator cs3' through visual basic coding and then save it as eps. But if i open the pdf file in illustrator some times 'warning dialog box' opened due to the font missing. I need to hide that warning dialog box while opening. Kindly help me.
    Thanks,
    Prabudass

    Thanks for your answer, Mark...
    I found out that the actual JS-Script code has to be...      :
    app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;

  • How to leave the current dialog box screen?

    Hi Experts,
    Now I met a problem when I use statement LEAVE SCREEN for closing current dialog box screen. The scenario is like this:
    There is a screen '0010' under function group A, on this screen, there are 4 tabs, i created a custom control element on tab 4. with this custom control I embeded a subscreen 0910 which is defined under function group B not A, in the PAI of subscreen 0910, i called another dialog box screen 0920 which is defined under function group B also. statement CALL SCREEN '0920' is used for this and it works fine.              
                    But now when i click on the X (cancel) button on the dialog box, it is not closed but still there. So i use statement 'LEAVE SCREEN TO 0910' for closing the dialog box, but finally, not only the dialog box screen is closed but the screens '0910', '0010' are also closed.
    I think the problem is because that screen '0010' and  '0910' , '0920' are not under same function group, but I don't know the solution for closing the dialog box only.
    Lynn Liu

    HI,
    Debug the program after you press the CANCEL button , you will get where the conrol is flowing , And instead of using
    Leave to screen '910'          use               Leave to screen 0.
    Regards,
    Madhukar Shetty

  • 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

  • How to make awt modal dialog to NOT appear on top of existing windows

    Hi,
    I am working on a program that displays awt modal dialog box when it needs some action from the user. My problem is that the modal dialog box cann't be top window as there is one VC++ window that needs to be always top window. Another requirement I must satisfay is that there should not be any flickling. I've tried with setAlowaysOnTop(false), dialog.toBack(), transferFocus(), etc but with no avail. Any help will be greatly appreciated. Thank you in advance.

    Note: This thread was originally posted in the Swing forum, but moved to this forum for closer topic alignment.

  • Can't access Modal dialog box via Powershell script

    Hi,
    I have a powershell script to login to an IE website and everything works fine excepting when I call a modal dialog box.  I've attached the line where the modula dialog is invoked.  When it gets to this part the script hangs and I'm unable
    to get past this.  I've googled a few articles where it suggests I should run an a scheduled task to scrape for the modal dialog box but I've tried it without much luck.  If you can please give me some pointers on resolving this issue. 
    Thnx
    Sue.
    $ie.Document.getElementsByTagName("button") | ? { $_.innerText -eq 'UNLOCK User' } | Select-Object -first 1 | % { $_.Click() }
    Sue

    Hi,
    I have a powershell script to login to an IE website and everything works fine excepting when I call a modal dialog box.  I've attached the line where the modula dialog is invoked.  When it gets to this part the script hangs and I'm unable
    to get past this.  I've googled a few articles where it suggests I should run an a scheduled task to scrape for the modal dialog box but I've tried it without much luck.  If you can please give me some pointers on resolving this issue. 
    Thnx
    Sue.
    $ie.Document.getElementsByTagName("button") | ? { $_.innerText -eq 'UNLOCK User' } | Select-Object -first 1 | % { $_.Click() }
    Sue

  • 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..

  • 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.

  • How to call jquery function when i close modal dialog box ?

    Hello,
    I need to call one jquery function when I click on close button of modal dialog box.Can anyone please let me know how can I implement it ?
    Thanks,
    Dipti Chhatrapati

    Hi Dipti,
    If my understanding is correct, you are using SP Modal Dialog and want to track the close event of this dialog. Then you may use
    dialogReturnValueCallback parameter of Options variable. Follow is the code sample:
    function ShowModal() {
        ExecuteOrDelayUntilScriptLoaded(function () {
            var options = {
                url: 'page1.aspx',
                tite: 'Add Title',
                width: 800,
                height: 450,
                allowMaximize: true,
                showClose: true,
                dialogReturnValueCallback: scallback
            SP.UI.ModalDialog.showModalDialog(options);
        }, 'sp.js');
     function scallback(dialogResult, returnValue) {
          if (dialogResult == SP.UI.DialogResult.OK) {
               // call your Jquery method here...
    Thanks, Ram

  • 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

Maybe you are looking for

  • How do I install two instances on the same Server and avoid a conflict?

    Hi, I have one Server and I want to install two instances of SQL Server on it. 1. Will be a default instance. 2. Will be a named instance. The Server has an IP address of 192.168.0.10 and the default instance will be using port 1433. I want them to s

  • Skype to Go in Hawaii

    Dear reader in order to get a Skype to Go Number I added credit to my account. That worked well. The problem occurred when I wanted to actually set up the number. I'm in Hawaii and it seems there is no possibility to set up a number here? It is very

  • Ipad first workflow in lightroom mobile

    I like the editing options in lightroom mobile. Great job! My main usage of the ipad is preselecting and tagging images on tours or events and I am using Photosmith until now. This is not yet supported by lightroom mobile. Will creating smart preview

  • Q on Solaris 11.2 DNS Client

    Hi All, Pls note that the mailq command is found hangup whenever the DNS Client is being enabled in our Solaris 11.2 server.  So, do anyone have any clue on this behavior? Thanks & Regards

  • Why do my images keep disappearing?

    Acrobat 9.3, LiveCycle Designer 8.2, Win XP. When I create a form in LS, and use the "Image" (not image field) object function, insert the image and save the form.  I then open the document in Acrobat 9.3 and Extend the Features.  The image stays in