How to close the popup window after executing PL/SQL?

Hello

To see a junior question: we use APEX 5.0.2

On a page of the modal dialog (of an interactive report), for the button create, I created a dynamic action that runs the specific code from PL/SQL to insert a new item.  Then behind the insert clause, I have the code to close the pop-up window, so that it executes successfully the insert clause without closing the window.  Please let me know what I can do.  Thank you.

HTP.p ("< script > '");

HTP.p ('window.opener.Location.Reload ();) Window.Close ();') ;

HTP.p ("< /script >" ");

Kind regards

Jian

OK, thanks for all your help and ideas. Finally, I gave up running JavaScript, instead, I created another dynamic action that closes the dialog box with a later sequence (for example, it runs after the PL/SQL code).  Now, it closes the windows properly after running pl/sql clause.  Although I still wonder how to run JavaScript because it doesn't do anything, even when I create a process to run javascript directly.

Tags: Database

Similar Questions

  • How to close the open window by Exec VI system automatically?

    Hello

    I use the Exec VI system to launch an exe that is built from a LabVIEW program. Operational system Exec VI, the window out of file exe and stays there even after all the tasks are completed. I have to close it manually each time. Anyone here know how to close the window of the exe file automatically when it's done?

    Thank you

    Jean

    If I understand the question you add a node to call at the end of your application to exit. As it runs as a stand-alone application or in LabVIEW there will be out or stop the execution. I have attached the VI that I use in my applications.

  • How to close the history window which is on permanent display? This has happened recently...

    How to remove the historic window that is permanently open and located to the left of any window that I opened? This has occurred recently and I can't close it. Thank you.

    See also:

  • How to close a popup window progrmatically in backing bean

    Hello

    I use Jdeveloper 11 g, I have a requirement to close a pop-up window in backing bean after the selection of certain attributes in the pop-up window. Can someone share me the code to close the pop up window

    Thank you

    Hello

    See http://www.adftips.com/2010/10/adf-ui-popuputil-class-to-show-or-hide.html

    concerning
    Peter

  • How to close the 5 windows which are open next to the URL?

    I tried to type 5. It shows the windows open, but they do not have an X to close each.

    Once you view the list of open tabs:

    • In portrait mode, it should be a black X on the far right next to the title of the tab. This can be difficult to see on a dark background.
    • In landscape mode, it must be a gray X next to the tabtitle below each thumbnail. Maybe it's a little trickier to operate with precision.

    You can also "drag" a tab off the screen to close - tap and hold on the thumbnail and drag it off the screen.

    • In portrait mode, drag to the left or the right.
    • In landscape mode, drag upward or downward.
  • How to close the dialog box after pressing the button

    Hello. I added the button

    ButtonWidget

    (

    kButtonWidgetID,

    kSysButtonPMRsrcId,

    kBindNone,

    334, 434, 16, 16 + 24,

    kTrue, kTrue,

    kButtonLabelKey,

    ),

    and in my method in the file... Observer.cpp

    If (theChange is kTrueStateMessage)

    If (theSelectedWidget is kButtonWidgetID)

    This I want close dialogue

    How? I don't want to create CancelButtonWidget. It is must be cutom button.

    Try this in your dialogObserver,

    InterfacePtr myParent (this, UseDefaultIID());

    InterfacePtr ((IDialog*) myParent-> QueryParentFor (IID_IDIALOG)); dialog

    If the dialog box (dialogue)-> Close();

  • How to display the dialog window after packaging files

    After packing I accidentally fact TIC TACS " "Do not forget choice ' and closed the window. Et as his own Show new?


    Thank you

    Try to edit > Preferences > General > reset all warning dialog boxes.

    I hope that helps!

    Kind regards

    Dhirendra

  • How to close the parent page popup and refreshment with click of a button.

    With Aped 4.0, I created a window close popup with this process, I am able to close the popup window after submit. But how do I update the parent page before you close the pop-up window.

    He does ' t work like this, because above JavaScript three calls does not wait for the actions to perform
    Means once the function of the saveChanges method is called, it will run funtions all three with waiting for the first action to perform. This is not the right way.

    Instead, you can use a branch of the page with the guy like branch of PL/SQL procedure with the following code.

    And Point branch: on submit: calculation of before (before the calculation, Validation and treatment)

    Begin
    htp.p('');
    end;
    
  • How to close a cmd window 'call the executable '.

    Hello

    I have the following sequence in the 2013 Teststand

    1. the installation program

    "Call the executable" call a java program in a cmd window. --> This step works

    2 main

    A call to the java program "n" dll .net times--> this step works

    3 cleaning

    How to close the cmd window opened by "executable call?

    TKS

    You can create another not executable call.  The file path is TASKKILL and arguments are "/F /IM cmd.exe/t.  This will close all open windows cmd.

    Pulido Technologies LLC

  • How to close the window of IE on exit_form

    Hello

    Is it possible to close the Internet Explorer window on exit_form?

    Thank you

    How do I close the browser that started a Session of forms [865745.1 ID]
    ________________________________________
    Updated August 11, 2009 Type HOWTO PUBLISHED status
    In this Document
    Goal
    Solution
    Directions for use:
    Manual steps required for FireFox:
    References
    ________________________________________
    Applies to:
    Oracle Forms - Version: 10.1.2.2.0 to 11.1
    Information in this document applies to any platform.
    Goal
    This document will describe how to close the browser window (without confirmation of the user) who was responsible for starting a session of forms.
    IMPORTANT:
    The sample program in this article is provided for educational purposes only and is NOT supported by Oracle Support Services. It has been tested internally, however and works as described. We do not guarantee it will work for you, so be sure to test it in your environment before relying on it.
    The code in this document uses Java Scripting to achieve his goal. If the client computer does not have Java script active or is blocked, this code will not work correctly. In addition, although this document was written as it applies to Oracle Forms, the functionality of the browser and how Java Script responds that it contains, is not related to the product forms. If, for some reason this code does not work for you, the problem is probably the result of changes (for example, updates) made by the supplier of the browser, or a client configuration that prevents the correct execution of the Java Script code. These problems are not related to the Oracle product and you should refer to the manuals of browser or Java script repository to debug the problem.
    This code has been successfully tested with Oracle Forms 10.1.2.3 using Internet Explorer 7 and Firefox 3.0. Be aware that FF3 is not currently certified for use with Forms 10.1.2.3 or more. Other versions may or may not work for the aforementioned reasons.
    Solution
    Directions for use:
    1. using an html editor or text, create a file html with the following code:







    Your browser or system settings prevented this window to close.


    To ensure the highest level of security,


    Please close/quit immediately this browser session.



    2. save the html with the following name: close.htm
    3 store this file on the middle tier in a directory that has an associated virtual path configured on the HTTP server. You can use an existing path or create a new. For example, in the version 10.1.2 you can copy the html file to this directory:
    ORACLE_HOME\tools\web\html
    Practically, the above corresponds to the following by default:
    genres/html /.
    For more information about creating a virtual path to the HTTP server, refer to the HTTP Server Administrator's Guide.
    4. in the Forms application, choose the desired relaxation, where you want to run the browser is closed. Don't forget that by executing this code, the application will be suddenly terminated, therefore, it is recommended that the following code only appear in the trigger of FORM post forms.
    Web.show_document ('/ forms/html/close.htm','_self');
    5. compile and run the form.
    Out of the form, the browser calls close.htm, resulting in the closing of the browser.
    This has been tested successfully using IE7 on XP - SP3. While this code works with other browsers, for example, FireFox 3, a change of configuration in FF are needed to make it work properly.
    Manual steps required for FireFox:
    1. open an instance of the FireFox browser.
    2. in the address bar, enter the following command and press enter on the keyboard:
    Subject: config
    3. in the list presented, locate the following setting:
    DOM.allow_scripts_to_close_windows
    4. double-click on this setting to set its value to TRUE
    5. exit the browser

    References
    http://msmvps.com/blogs/paulomorgado/archive/2007/11/02/how-to-close-browser-Windows-in-Windows-Internet-Explorer-7.aspx

  • How to close a popup screen pushed as a global screen

    I want to close a popup screen but my application is in background so

    UiApplication.getUiApplication () .popScreen (getScreen ());

    or

    UiApplication.getUiApplication () .getActiveScreen () m:System.NET.Sockets.Socket.close ();

    does not work is not something

    same Ui.getUiEngine () .getActiveScreen () m:System.NET.Sockets.Socket.close () does not work...

    in the popup screen, I have a custoListView (written own filed) there is an item when you click on an event

    listner function is called by there, I have to close popup screen... my class is like that

    SerializableAttribute public class SelectSms extends PopupScreen {}

    private vector _data;

    public boolean onClose() {}
    try {}
    Close();
    Returns true;
    } catch (Exception e) {}
    Returns false;
    }
    }

    public SelectSms() {}
    Super (new VerticalFieldManager(), Field.FIELD_VCENTER);
    _data = null;
    _data = MessageStore.getMessage ();
    last post [] message = Message [_data.size (new)];
    MSGC [] CustomListField = null;
    MSGC = new CustomListField [_data.size ()];
    for (int i = 0; i)<>
    message [i] = (Message) _data.elementAt (i);
    MSGC [i] = new CustomListField (message [i] .getMSG_BODY (), message [i] .getMSG_NO (), and [i] .getMSG_STUS ());
    last post mesg = message [i];
    MSGC [i] .setChangeListener (new FieldChangeListener() {}
    ' Public Sub fieldChanged (field field, int context) {}
    onClose();
    }
    });
    Add (MSGC [i]);
    }
    can someone help me how to close the popup screen.
            
    }
    }

    Place the UiApplication.popScreen () call in an executable object and pass this object to UiApplication.invokeLater ().

  • Close the Popup by clicking on the OK button on the dialog box information Message

    JDev ADF BC 11.1.1.5.0

    I have a popup and a dialog box on the inside where the user enters data and click Save.
    I show an Information message when the click on save on having managed the insertion of data in the database.
    What I want to achieve, it's that I want to close the popup window with the click on the OK button located in the information message dialog box which has proved on memorizing data.
    There is already a similar thread Close popup in adf , but that was not a correct answer.

    (1) linking the main popup to a bean variable:

    
    
    public class MyBean
    {
      private RichPopup myPopup;
      ...
    }
    

    (2) add a DialogListener to the of the informational message:

    
      
        ... Info message here ...
      
    
    

    (3) use this DialogListener to close the main popup programmatically:

      public void infoPopupDialogListener(DialogEvent dialogEvent) {
        myPopup.hide();
    }
    

    Dimitar

  • How can I stop Firefox closes when I close the last window open?

    I had to get Windows 7 reloaded and my backup was corrupted (i.e., I couldn't use my custom Firefox.) So I downloaded the new Firefox and now it closes automatically when I close the last window opened. I prefer that Firefox stay open until I chose to close it. How to achieve this?

    Hello 1DKG, do you mean when you close the last open tab? If yes you can replace it as follows:
    enter on: config in the address bar of firefox (confirmed the message information where it appears) and search for the preference named browser.tabs.closeWindowWithLastTab. Double-click it and change its value to false.

  • How to close the bookmarks vertical inscription in my browser window?

    How to close the bookmarks vertical inscription in my browser window?

    .. .of RACE! I should have looked more closely, as the 'x' was camouflaged by my wallpaper. Thank you.

  • How to prevent the popup dialog closes when you click the commandbutton

    Hello

    The application has a popup with the dialog box Cancel to display a table. Users could select the lines using a checkbox and click a CommandButton to backend processing.

    It displays a message (using addMessage) when he chose nothing.

    I would like to have the popup rest so the user could correct their action, but ADF automatically close the popup.

    Is there a way to avoid this?

    If I put the property AutoCancel to false, the popup rest (or rather re-posted), but the message window is hidden, which is defeat it purposes.

    I saw a discussion archived since 2008, but it doesn't have an answer, that's why I opened this thread.

    Kind regards.

    DjG

    Tried to set partialSubmit for af:button be true?

Maybe you are looking for

  • Shockwave Flash says Firefox is vulnerable and requires the update when it has been updated.

    After opening a page, Firefox gave a warning that "Shockwave Flash is vulnerable and needs to be updated". I went to get.adobe.com and updated to 17.0.0.169, but the warning was repeated and the blocked content. I checked youtube, which would play mu

  • iPhone Camera Apps

    Is there an alternative enforcement camera ios, which will offer the possibility to open the mode 'video? I need to use the video a lot and now I need to use the camera app standard (which open always s on the image mode, which then requires me to se

  • Why this read_write.vi works in the second inning?

    Hello I'm having a problem with the instrument drivers that I got from Newport.com. Most of instrument drivers for controlling the SMC100 uses a vi file named: read_write.vi, could someone let me know how we can change this vi, it seems to me there a

  • Clear print queue

    I can't delete print jobs in the queue of the printer by highlighting the work and remove.  What's the next thing that I can try? CB

  • I deleted appaths msconfig.exe. How do I get it back? Please send me a message as soon as possible

    I deleted appaths msconfig.exe. How do I get it back? Please send me a message as soon as possible. I chose the mode of diagnosis through cmd msconfigapply/ok/restart. after reboot when I again type msconfig in the run window he couldn't open. so, ho