Show pop-up dialog box from hyperlink

I would like to allow a user to click a hyperlink on the report that could be used to print, or email a report somewhere.
What I am hoping to do is once the user clicks the hyperlink then I will pop-up a box that will allow the user to enter an email address to send the report to, or what printer to print it to. Once the email address has been entered and they click OK, then I will call the report again with the correct parameters for destype, desname, and desformat.
Is something like this possible? I know I could do all of this from Forms, but I am looking for something to use inside reports, since we have many levels of "drill-downs" in reports.
Any suggestions, or experiences would be greatly appreciated.

No JavaLEar, that won't work, not even if we disregard your somewhat confused logic in the if-statements (you are calling System.exit(0) if the user choose "No", which would be very suprising to most users).
But there is a very simple solution to the OP's problem:
    public class Sample extends JFrame {
        public Sample() {
                // Instruct the frame to not do anything when a close-event is
                // triggered. We will be closing the frame manually in the WindowListener
                // below:
             setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
             addWindowListener( new WindowAdapter() {
                 public void windowClosing(WindowEvent e) {
                     int selection = JOptionPane.showConfirmDialog(null,
                             "do you want to close window?", "Sample",
                             JOptionPane.YES_NO_CANCEL_OPTION,
                             JOptionPane.WARNING_MESSAGE);
                     if( selection == JOptionPane.YES_OPTION ) {
                         // If the user answered "Yes", we close the frame
                         dispose();
                         // and call System.exit(0) if the whole application
                        // should
                         // terminate:
                         System.exit(0);
                     // If the user pressed "No" or "Cancel" we don't have to
                     // do anything.
    }Hope this helps.

Similar Messages

  • Please help!! How to communicate between applet and pop up dialog box

    Hi friend,
    I have done a AWT pop up dialog box from Applet. In this pop up dialog box, I want get user name, and display on an Applet, anyone can tell me how to do? Thanks a lot!!!!
    Alva

    You need to create two methods in your applet, getName and setName as well as a name field.
    private name = "";
    public void setName(String n)
        name = n;
    public void getName()
        return name;
    }The various constructor methods for Dialog already take the owner of the Dialog (your applet) as a parameter, so in your applet's ActionEvent handler, all you have to do is call
        name = textName.getText().trim();
        owner.setName(name);Yes, it's that easy.

  • Prevent "Save As" dialog box from popping up when signing a form

    Is there a way to prevent the "Save As" dialog box from popping up when clicking on a Signature Field?  I have a form with multiple signature fields and I would like to disable this action from happening.

    Hi rus-tee,
    That's interesting--what are you using to convert your file to PDF? Are you using Word? Or are you using the Adobe PDF Pack online service. Please describe your process for converting to PDF, and we'll get to the bottom of this!
    Best,
    Sara

  • How do I stop Yahoo mail's popup dialog box from changing the tab focus?

    Hi,
    When I have a tab opened to Yahoo mail and I open a Yahoo email on my other computer or Blackberry, there's a time delay and at some point, Yahoo shifts my browser focus to display a pop-up dialog box that says "You have been disconnected from chat because you have signed into Yahoo! Messenger from another computer." I can't even switch back to the tab I was on without dismissing the popup.
    I'd love it if I could turn off the pop-up, - don't care about the disconnection - but in the meantime, is there some way to prevent Yahoo from changing my tab focus?
    Thanks!

    Hi Douglass,
    You will need to navigate to the following folder.
    /Users/yourusername/Library/Mail/V2/MailData
    and backup the following file... MessageRules.plist
    Open the file in BBedit to confirm your rules are infact inside that particular plist file as Mail will also create backups occasionally.
    Once you reinstall, do a compare/replace with the newly created MessageRules.plist and you should be able to bring your "old" rules into your fresh install.
    as for mailboxes, those are contained within this folder
    /Users/yourusername/Library/Mail/V2/Mailboxes
    and it will be up to you to backup those files and File/Import Mailboxes them into the new install.

  • 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

  • Photoshop CS5 pop-ups (Dialog boxes) will not stay / stick in place

    My pop-up / dialog boxes have always opened in the same place as I had placed them from the previous time I had used them. All of a sudden they will no longer stick / stay, they open in the center of the page.
    For example when I first open PS and I click Ctrl > C for Brightness / Contrast the box will open in the center of the page. If I move it to the side (so its not in the working area) it should open in that spot the next time I use it.
    But now it will always open in the center of the page regardless of where I have placed it before. Very annoying it have to move the dialog boxes all the time.

    What OS are you running?
    I know of no way Windows can cause that, but I don't know about OS X.
    If you can't find a direct solution, it might be a case where a complete Photoshop preferences reset to defaults could help...  Press and hold Control - Shift - Alt simultaneously (or Command - Shift - Option if on a Mac) immediately upon cold-starting Photoshop. If you get the keys down quickly enough - and you have to be really quick - it will prompt you to confirm deletion of your current preferences, which will lead to the establishment of a fresh default set. If it does not prompt you, you haven't been quick enough to get the keys down.
    -Noel

  • Move an application "pop-up" (dialog box) with keyboard possible?

    Is there a way to move an application's pop up (dialog box) with a keyboard command/shortcut? I had a situation where I was not connected to my 2nd monitor and an application popup box was opening on that 2nd (*not connected*) monitor.
    I hate to say this; but on a PeeCee, a user can move a window via the keyboard. Is this possible on a Mac? Thanks!

    no, it's not possible on a mac. if the popup open on the other monitor connect the second monitor and move the popup with a mouse. it should open on the main monitor form now on.
    If you don't have a second monitor at all do the following.
    1) goto System Prefs - universal access - enable access for assistive devices.
    Paste the following into Script Editor and press run. This will move all offscreen windows currently open on the second monitor to the main screen.
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 335px;
    color: #000000;
    background-color: #ADD8E6;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    –– Example list of processes to ignore: {"xGestures"} or {"xGestures", "OtherApp", ...}
    property processesToIgnore : {}
    –– Get the size of the Display(s), only useful if there is one display
    –– otherwise it will grab the total size of both displays
    tell application "Finder"
    set _b to bounds of window of desktop
    set screen_width to item 3 of _b
    set screen_height to item 4 of _b
    end tell
    tell application "System Events"
    set allProcesses to application processes
    set _results to ""
    repeat with i from 1 to count allProcesses
    set doIt to 1
    repeat with z from 1 to count processesToIgnore
    if process i = process (item z of processesToIgnore) then
    set doIt to 0
    end if
    end repeat
    if doIt = 1 then
    tell process i
    repeat with x from 1 to (count windows)
    set winPos to position of window x
    set _x to item 1 of winPos
    set _y to item 2 of winPos
    if (_x < 0 or _y < 0 or _x > screen_width or _y > screen_height) then
    set position of window x to {0, 22}
    end if
    end repeat
    end tell
    end if
    end repeat
    end tell
    </pre>

  • The pop-up dialog box, such as on Facebook, is truncated. It chops off the command buttons.

    The pop-up dialog boxes, such as those on Facebook, are truncated. The boxes are 1/2 of normal size with the bottom 1/2 gone, including the command buttons, making it useless. Since yesterday evening, ALL dialog boxes on Facebook and Zynga are affected. I can't post anything from the pop-up boxes.
    == This happened ==
    Every time Firefox opened
    == yesterday evening

    Reset the page zoom on pages that cause problems: '''View > Zoom > Reset''' (Ctrl+0 (zero); Cmd+0 on Mac)
    See [[Text Zoom]] and [[Page Zoom]] and http://kb.mozillazine.org/Zoom_text_of_web_pages

  • Printer Pop-up Dialog box

    Hi
    I encounter the printer Pop-up Dialog Box appear upon a
    PrintJob is sent.
    Is there a way to ignore or escape this pop up box?
    Regards

    We have currently upgraded 3 instances and it is happening in all 3 on all PC's. Appears that Oracle has it's own pop-up printer window it uses when printing from the PC instead of using the standard one. I imagine it is slow because of it being java. I'd open an SR but they will just say to update to today's version of java. We can't test in other browsers since IE8 is our standard company wide. I haven't got any hits searching MOS or Google on this so was just wondering if others are seeing the same thing. BTW - Our 11i instances work fine and load quick even on the first print but then 11i is using the PC's standard print pop-up window and not a java based one from the applications.
    FYI - Fuound Bug 9202075 which seems to be the same issue except that we are on java 1.6.07. I have opened an SR.
    Edited by: user649511 on May 20, 2011 7:18 AM

  • How to Show a Model Dialog box in a JApplet

    I have a JTable in a JApplet.
    I need to display a JDialog box as a Model Dialog. The JDialog expects a Frame as parent. How do I create a Frame and show my own dialog box? without a parent Frame the dialog shows up as a Modeless dialog box.
    Any help would be appreciated.

    I found the answer in
    http://www.jguru.com/faq/view.jsp?EID=27423

  • I cannot remove the dialog box from my ipad. It says 'not enough storage' I click on settings and close, but still there. I need help. thx

    I cannot remove the dialog box from my ipad. it says 'not enough storage'. I click on settings and close but still there. How can i remove this message? Thnx

    Try this.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • How can i call the certificate selection dialog box from source code?

    How can i call the certificate selection dialog box from source code?
    NB: Of course if i have more than one certificate in the Microsoft Keystore 'My'.
    Thank You in advance

    I found an example of the "TestStand UI Expression Control.ctl" and it works just the way I need it. (check the link)
    Proper use of "TestStand UI ExpressionEdit Control" in LabVIEW http://forums.ni.com/ni/board/message?board.id=330&requireLogin=False&thread.id=10609 
    The "Expression Browser Dialog Box Button" F(x) stays disable while editing the VI, however it become available when the VI is called from TestStand.
    Thank you,
    Hecuba
    Mfg. Test Engineer
    Certified LabVIEW Associate Developer

  • How can I Create custom pop up dialog box with question/answer

    I need to create a pop up dialog box that asks a question and accepts an answer input.  The form needs to be able to be emailed out (not server based)  Can someone help me do this?  I am a designer,  with very (Very!) limited coding skills.   Looks like the windjack program that I keep running into does not work with Acrobat X.
    Thanks for any help you may have

    I am not able to help you with the current method you are using - which seems an odd one in that you are using a menu script to do this????
    I would have done the page completely differently - instead of slicing it up into a vastly complex table, I'd have added the image to the page and then used an imagemap.  Then I'd have used this script to add the popups (as toolitps) that you can be as simple or as complex as you wish: http://boxover.swazz.org/.
    E. Michael Brandt
    www.divahtml.com
    www.divahtml.com/products/scripts_dreamweaver_extensions.php
    Standards-compliant scripts and Dreamweaver Extensions
    www.valleywebdesigns.com/vwd_Vdw.asp
    JustSo PictureWindow
    JustSo PhotoAlbum, et alia

  • BDC for pop up dialog box.....

    Hi Experts,
                 I need urgent help in BDC.
    I want to handle BDC for the pop up dialog box.
    Please help.

    hi
    can u he a bit clear

  • Open pop up dialog box

    I read on article i.e to create new pop up dialog box. We have to use launchListener"#{backing_bean.handleLaunch}" to pass parameter to corresponding pop up dialog box.
    Anyway I tried to do the same job declaratively by using setActionListener instead of launchListener. The pop up dialog box gets the passed parameter using EL #{prossesScope.param} And it works.
    Is this fine technique or not recommended at all?
    Regards
    Eric H

    Hi,
    its fine as well. As soon as the dialog is opened the process scope becomes accessible. With multiple parameters you will however find it more convenient to use the launch listener as describe in
    http://download-uk.oracle.com/docs/html/B25947_01/web_complex003.htm#CEGDAHEA
    because a setActionListener can only set one parameter at a time
    Frank

Maybe you are looking for