Programmatically closing the dialog??

Hello,
I am using Jdev 11.1.1.2
How to close the yesNo confirmation diaglog programmaticaly?? eg when user press 'Yes' button in confirmation dialog(popup),I want excecute some logic in DialogListener and close the dialog.
Any pointers??
Regards
RB

I hope you dialog is something like below:
                  <af:popup binding="#{backingBeanScope.backing_MyBackingBean.popup14}" id="popup14">
                    <af:dialog binding="#{backingBeanScope.backing_MyBackingBean.dialog1}" id="dialog1" title="Information" modal="true" type="yesNo"
                               dialogListener="#{backingBeanScope.backing_MyBackingBean.dialog1_dialogListener}">
                      <af:outputText binding="#{backingBeanScope.backing_MyBackingBean.outputText112}" id="outputText112"/>
                    </af:dialog>
                  </af:popup>
    public void dialog1_dialogListener(DialogEvent dialogEvent) {
        if (dialogEvent.getOutcome().equals(DialogEvent.Outcome.yes)){
        }else{
    }to close popup...
StringBuilder script = new StringBuilder();
        FacesContext context =  FacesContext.getCurrentInstance();
                  script.append("var popup = AdfPage.PAGE.findComponent('").append(<your popupId>).append("'); ")           
                        .append("if (popup.isPopupVisible()) { ")                
                        .append("popup.hide();}");
                  ExtendedRenderKitService erks =
                    Service.getService(context.getRenderKit(), ExtendedRenderKitService.class);
                    erks.addScript(context, script.toString());

Similar Messages

  • Issue Closing the Dialog Window

    Hi to all,
    I am working on two applications.
    After logging in to the first application by giving the username and password I can continue in the same application or I can switch to the second application.
    Except the login page all other pages are coming in a new window as I have set the useWindow property to true for the Login button.
    If Iam working on the same application and clicking on the Logout button Iam able to return to the parent window using the code
    returnfromDialog(null,null)
    but if Iam switching to the second application and clicking on the Logout button Iam unable to return to the parent window(ie the first application Login page ).
    Can any one please help me out to solve this problem
    Thanking You in Advance,
    Madhavi.

    Oracle 11g? I assume you mean the database. This is the Oracle Forms forum. You will have better luck if you post your db questions in one of the database forums.
    http://forums.oracle.com/forums/category.jspa?categoryID=18

  • Hello guys i m getting problem in date picker css in new version(21.0) firefox month & year drop down not working but its working when I close the dialog box

    when I m opning datepicker (by jquery 1.7.3 min.js) it will work on normal UI but it's dropdown not working in dialog UI after I closed the dialog the datepicker dropdown works
    and also it works in older version of firefox like 15.0

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    <b> To Enable SafeMode </b>
    *You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    *''Once you get the pop-up, just select "'Start in Safe Mode"''
    If it works in Safe Mode and in normal mode with all extensions (Tools > Add-ons > Extensions) disabled then try to find which extension is causing it by enabling one extension at a time until the problem reappears.
    Close and restart Firefox after each change via "Firefox > Exit" (Windows: Firefox/File > Exit; Mac: "Firefox > Quit Firefox"; Linux: "Firefox/File > Quit")
    * https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • How do I programmatically display the specify module dialog?

    I am writing a C++ class that programmatically adds steps to a sequence file. The steps are ActiveX Automation types, making calls to properties and methods on a COM server.
    I have been successful in creating a step, filling in the TS.SDATA.CALL parameters and adding it to the main sequence. When I open the sequence in the TS sequence editor and bring up the specify module dialog, all of the dialog fields fill out properly.
    However, I've recently been wanting to bring up the specify module dialog programmatically. I have a smart pointer to the step object ( TS:tepPtr ) and tried calling spStep->SpecifyModule(0). This hangs the app, which leaves me scratching my head wondering what TS is objecting to. Rememb
    er I can then go to the TS sequence editor and successful bring up the specify module dialog on the very same step.
    I pretty sure the window handle I've passed to the engine is valid. I can successfully display the engine options dialog programmatically.
    Any idea? Do I have to call some setup function before calling Step:pecifyModule( long specModOptions )?
    Thank you much.
    Aaron

    Hello Aaron -
    The short answer to your question is 'no you should not need any special configuration commands before calling Step:pecifyModule( ). Once you have a valid step object you should be able to call the method. However it is worth mentioning that the function help for SpecifyModule points out that there are different restrictions on each type of step as far as what options are available. For TestStand 2.0.1 for example, the ActiveX Automation Adapter steptype will make no use of the options set, so setting it to 0 is ideal. Other issues with using this method may be the result of working with an active sequence. Are you adding steps to a new file on your harddrive? Or are you working with a sequence already loaded into TestStand? Asking to 'specify module'
    of a step already loaded for execution can result in some different behavior, most commonly a 'user-defined' error code of '0'. Checking to see that you are doing this, or if you have any file references (via Get SequenceFile ) that are not closed (with Release SequenceFile) before discarding the object handle they may also be a source of your hang-behavior.
    To have a better idea of what is happening on your system I would need more information about your version of TestStand and also about how you are creating your sequence but any other information about the error would be helpful in troubleshooting further.
    Regards,
    Elaine R.
    National Instruments
    http://www.ni.com/ask

  • How to get the closing event (not closed) of Dialog control

    Hi All,
    I have one requirement, that I have to close the Dialog box in an animated way like on clicking of the Dialog close button the popup has to close from top to bottom in a slide effect.
    sap.ui.commons.Dialog
    When I tried closed method of Dialog, it is calling only after dialog box closed but, I need the closing event rather closed event.
    I am putting a UI5 view in Dialog as I need some custom/dynamic content in the dialog.
    Please suggest the solution for this.
    Thanks & Regards,
    Pavan Thirunamala,
    [Moderator Message - Please do not provide contact information like Phone Number etc in the discussion message. It has been removed.]
    Message was edited by: Chandrashekhar Mahajan

    JS Bin - Collaborative JavaScript Debugging&lt;/title&gt; &lt;link rel=&quot;alternate&quot; type=&quot;application/jso…
                sap.ui.getCore().getEventBus().subscribe("sap.ui","__beforePopupClose",
    function(channel, event, params)
      debugger;   
    $(params.domNode).animate({
                      opacity : 1,
                  height : 0

  • How to override the dialog "Do you want to save" while closing the form?

    HI
    I have two blocks on the form.Master block is based on a view wheres the detail block is populated by a procedure.
    Even if the user doesnot change any record and trying to close the form it is still showing the default "Do you want to save" with three options save,discard,cancel as choices.How can we prevent the form displaying that if the user is closing the form with out any uncommited changes.
    Thanks in advance.

    Read this thread about the affects of post-query and when-validate triggers:
        Message Do you want to change the changes you have made? caused by a lov

  • Parent window goes back on closeing the model dialog

    Hi,
    I have application which will show the model dialog in the middle of the operation. In that, once I close the model dialog the main application is going back to other applications opened in my machine.
    My Sample Code
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JDialog;
    import javax.swing.JFrame;
    public class ABCDEF extends JFrame implements ActionListener
    private JButton btnStart;
    private JButton btnExit;
    public ABCDEF ()
    super ();
    setLayout (null);
    setDefaultCloseOperation (JDialog.DISPOSE_ON_CLOSE);
    btnStart = new JButton ("Start");
    btnStart.setBounds (10, 10, 100, 20);
    getContentPane ().add (btnStart);
    btnStart.setActionCommand ("Start");
    btnStart.addActionListener (this);
    btnExit = new JButton ("Exit");
    btnExit.setBounds (10, 90, 100, 20);
    getContentPane ().add (btnExit);
    btnExit.setActionCommand ("Exit");
    btnExit.addActionListener (this);
    setTitle ("Javav6.0 Test");
    setSize (150, 180);
    setVisible (true);
    public void actionPerformed (ActionEvent e)
    String sActionCommand;
    sActionCommand = e.getActionCommand ();
    if (sActionCommand.equals ("Start"))
    setEnabled (false);
    // Perform some operation
    new MyDialog (this);
    // Perform rest of the operation
    else if (sActionCommand.equals ("Exit"))
    this.dispose ();
    public static void main (String[] args)
    new ABCDEF();
    class MyDialog extends JDialog implements ActionListener
    private JButton btnOK;
    public MyDialog (JFrame theParent)
    super (theParent, true);
    setTitle ("This is Test Dialog");
    btnOK = new JButton ("OK");
    btnOK.addActionListener (this);
    add (btnOK);
    setSize (100, 200);
    setVisible (true);
    public void actionPerformed (ActionEvent e)
    this.dispose ();
    }Basically, I want the main application need to be disabled till the selected operation completes.
    This is used work good in Java 1.5.0.4. Now I have above stated problem in JDK 1.6.0.10
    Please help to resolve this issue.
    Thanks in Advance.
    S Prabhu

    Can you please tell me is there any other alternate option.
    Since I load the different dialog based on user input and so.
    The same dialog may be loaded with different parent windows.don't disable the frame(s) - just make the dialog modal

  • Compare PDF: How to simulate ENTER Key programmatically to suppress the dialog box.

    Hi,
    We are using Acrobat 8.0. Using Visual Basic, we are opening two PDF files in Acrobat 8.0 professional.We are comparing those two documents using MenuitemExecute(DIGSIG:CompareDocuments ) command and generating the side by side comparison file programatically.
    During this process after executing the command "MenuitemExecute(DIGSIG:CompareDocuments )" adobe is displaying "Compare Documents" dialog box where the user need to click OK on it in order to continue with the comparison.
    My requirement is to suppress the dialog box and automate the process. Our application is developed in Visual basic.
    Could you please let me know how to suppress the dialog box using Visual basic. Is it possible using VB or any alternatives for this. Because we need to compare many PDF documents so clicking OK every time requires user intervention.
    Thanks for your help in advance.

    I did not say that AVCommand simulates pressing enter - it is used to automated methods by pre-filling options and not showing the dialogs. Please read the documentation on the AVCommand methods.
    You should also note that I said AVCommand is only available to plug-ins, which means it will not work with a VB.NET application.
    SendKeys is a basic VB.NET command, it is not part of the Acrobat SDK in any way. Here is Microsoft's documentation on SendKeys. Again I will state that using this method is NOT a good idea for a production environment.
    http://msdn.microsoft.com/en-us/library/8c6yea83(VS.85).aspx

  • Closing the VI after execution under conditions

    Hello.
    In my program i have a button that opens new window to show graph from saved file.
    In the new window there is i dialog. If user chooses file to open, then the graph is presented in the VI.
    I want to make, that if the user cancel the dialog box of choosing file, the new window will close.
    What is the solution?
    Thanks 

    Hi Tacchi,
    usually a subVI's FP is closed when the subVI exits (when the VI properties are set properly, OpenOnCall and CloseAfterwards).
    The other option would be a property node of the VI to close the FP programmatically.
    When you use the standard FileDialog function you should also check the error output for an "User Cancel" error to recognize  a cancel operation of the user...
    Message Edited by GerdW on 03-10-2010 03:37 PM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Is there a way to use the built-in Datalogging and programmatically log the front panel while the vi is running?

    I would like to use the built-in Data Logging feature. There is the "Log at Completion" option, but is there a way to programmatically make a new log record while running? I looked around in VI server and couldn't find any methods that would do that. Currently, I am grabbing all of the front panel control references using VI Server and if there are any changes, the changed values are written to a log file along with a date/time stamp. I'm mostly dealing with buttons, which simply change from 0 to 1 or 1 to 0, so it's not too hard to visualize what was pressed. It works okay for reconstructing what happened, but it would be much nicer to use the built-in fe
    ature because you can "replay" directly onto the front panel and actually see what the changes were. However, without being able to programmatically make a new log, it won't work for me.

    Jake,
    There are several options here.
    I would suggest using your own code for datalogging. The datalogging you are referring to is primarily for debug, and one shot datalogs of front panel indicators (and controls?), not including graphs, etc.
    If you go to the file functions, you will see a menu for datalogging. These functions will allow you to save your data, as you need it, simply, and in a compact format.
    I recommend opening the datalog file, doing all your file operations, and closing the file before the program is complete. There are several examples of this in the examples database.
    Good luck

  • Programmatically closing a popup from a managed bean

    Hi,
    in the following blog [http://thepeninsulasedge.com/frank_nimphius/2008/02/14/adf-faces-rc-programmatically-closing-a-popup-from-a-managed-bean/|http://thepeninsulasedge.com/frank_nimphius/2008/02/14/adf-faces-rc-programmatically-closing-a-popup-from-a-managed-bean/]
    the following statement is being made at the end ...
    The JavaScript call is issued as "window.exitPopup()" because the script is called from the page root. You can easily see how the JavaScript can be modified to have "exitPopup" becoming a generic function avoiding hard coded popup ID's as in my example.
    I don't understand how to avoid hardcoded popup ID's. Could someone please explain this to me.
    Thank you
    Bodhy

    Hi,
    thank you. It is working.
    @Timo
    The closePopup function in your comment has the variable popupId. That made me wonder, if it is possible to set this variable in my jspx page.
    I made a workaround by defining a new variable called popupId with getter and setter methods and using the setActionListener to set that popupId. After that I was calling the closePopup() function. Do you know a better way doing this?
    @Frank
    I was also reading through Frank's blog about JavaScript [http://thepeninsulasedge.com/frank_nimphius/adf-faces-rich-client-javascript-programming/|http://thepeninsulasedge.com/frank_nimphius/adf-faces-rich-client-javascript-programming/] , trying to find a solution to call JavaScript functions with variables (defining these variables in my jsp page). Is this possible?
    Thank you
    Bodhy

  • On my 1st visit to a certain website, Firefox _very briefly_ asked whether to remember my username and password. I was too slow: the dialog bar disappeared and now, I cannot find where to enter that logon info for my daily returns to that site.

    On only the very first visit to a website, Firefox _very briefly_ shows a "Do you want Firefox to remember this password?" dialog bar at top right of screen.
    The first time that I used Firefox to access this particular, and very often visited site, I missed that dialog bar. It disappeared before I had a chance to mark any one of the three boxes and now, I must enter my log-in information anew at every log-on to that site.
    There _must_ be a way to get Firefox to give me a second chance for entering this info, but I cannot find how.
    Can someone please help?

    After first closing the site's browser window, I cleared the cookies with no problem.
    Next, I opened up the page that is causing my problem. The Microsoft Security window opened up as it should and it was blank.
    The option of whether I was using a public or a private
    computer was blinking on 'public' as it should and I changed that to 'private'.
    The lines for 'Domain/Username' and 'Password" were blank, as they should be at this time.
    I entered whatever I had to on these two lines, then clicked on "log In". At no time, however, did the Firefox toolbar at top of screen (picture file attached) appear and ask whether to remember that password. Yes, the page now opened - and we are back to Square One.
    I am aware that when entering the URL in the address box, a dropdown box opens and contains quite a few URLs identical to the one I am entering just now, or at least connected to pages of the same site.
    I am wondering whether that is what's messing me up? But how can I clear these entries of "websites visited in the past from Firefox's memory?
    In case you would want to see exactly what it is I am talking about, you might go to https://support.ataretail.com

  • How do I "save tabs and quit" in this new version of Firefox, as I did in the older version? I want to be able to see the same websites open from the last time I closed the computer.

    In an earlier version of Firefox, when I went to close it, I would get a prompt "save tabs and quit?" that allowed me to see the same websites open from the last time I closed the computer. Where is that feature on the new version of Firefox?

    Firefox 4 and later versions save the previous session automatically, so there is no longer need for the dialog asking if you want to save the current session.<br />
    Use "File > Exit" or "Firefox > Exit" (Mac: "Firefox > Quit Firefox") if you want to restore multiple windows or otherwise have problems with restoring tabs.<br />
    You can use "History > Restore Previous Session" to get the previous session at any time.<br />
    You may need to click the orange/gray Firefox button to see History.<br />
    There is also a "Restore Previous Session" button on the default <b>about:home</b> Home page.<br />
    Using the "Show my windows and tabs from last time" setting is a more reliable way to restore session data.
    * [http://kb.mozillazine.org/Menu_differences Firefox/Tools > Options] > General > Startup: "When Firefox Starts": "Show my windows and tabs from last time"

  • How to stop the Dialog from being dragged

    I was hoping that someone could tell me when calling a Dialog from Jframe, a how to stop the Dialog from being dragged
    while a dialog is showing.
    When it is visible I can still click and drag the Dialog
    I want to set it so you can not drag it until the dialog has be closed.

    If you don't have access to the parent frame, a "hack" that usually works:
    Frame frame = Frame.getFrames()[0];
    if (null != frame && frame instanceof JFrame){
    JFrame jf = (JFrame)frame;
    JDialog jd = new JDialog(jf, "title");
    ... code here ...
    As each JFrame (or Frame) is opened, its stored in the array of Frames that you can get. Same thing with Dialog.getDialogs(). Almost always, at least so far for me I've never had this problem, the [0] index is the main window opened, or the parent/top frame. I'd put the check in there to be safe and make sure its a JFrame and usually you'll only have the one JFrame.

  • Clicking on "Envelopes" only brings up "Envelope Options", and not the dialog box to print envelopes, but only on certain documents.

    I'm using Word 2010, and up until a few weeks ago have never had trouble printing envelopes. Then one day I clicked on Envelopes to print one, and it only
    brought up Envelope Options instead of the dialog box to print envelopes. Eventually the problem went away and it worked again. Then it happened again last week. I closed down everything Office-related and started back up, and it worked again. Now it's happened
    again today, and even after shutting all Office products down, it still won't let me print envelopes. I have two printers and it happens no matter which one I choose. The strange thing is it apparently only happens on certain documents, because I can open
    up another letter, hit "Envelopes" and paste in the address from the letter that won't print, and it will work fine. What is wrong with these certain documents that makes Word unable to bring up the print dialog? I can't find anything online relating
    to this issue. Any ideas?

    1. If you empty the whole document then click the Evelopes buttong, what will happen?
    2. Check if there are any special macros in these specific documents
    3. Try remove both of these printers, and check this issue again.
    4. Will this behavior also happen when open these documents from the other computer?
    You can also share a copy of the document in SkyDrive so I can check on it. (Remove any sensitive information)
    Max Meng
    TechNet Community Support

Maybe you are looking for

  • Couldn't find root user.  Sleeping and trying again.

    Last week I installed an MSO 2004 update on my G5 iMac running 10.4.11. Then I attempted to repair permissions. The repair permissions process halted at about half of the progress bar. I let it cook for about two hours without success, then tried to

  • Error in applciation server starting up

    HI Folks, i am trying to restart application server (ABAP), and it is giving me below error, can someone please help me phu344gb:p16adm 149> pg dev_disp.new trc file: "dev_disp.new", trc level: 1, release: "701" sysno      18 sid        P16 systemid 

  • Itunes says my ipod is corrupted

    I updated to the latest itunes and now it tells me that my ipod is corrupted. Tried  restoring it but without success.

  • Which Apple stores are now able to repair/replace iPhone 5s screens?

    Many different articles have been written over the past few weeks announcing the ability of Apple Stores to repair 5c phones on site for the $149 charge.  The articles have indicated that some stores are presently able to repair the 5s, but not all o

  • Nexus 5K and ERSPAN

    So the documentation says that the 5k does not support RSPAN. So ERSPAN it is, but source only. So the question is, can you only use a device for the destination that supports ERSPAN? For instance I could not create a source session on my 5K's and sh