Problem to close Form window

I want to close Form portlet window after the user has pressed Insert.
I have added code go('javascript:self.close();') into onSuccess section. This works fine when I'm using Netscape but not in IE 6. Method self.close (or window.close) works fine in IE when I'm using it e.g. in UIF templates.
Does anyone know any trick how to close Form window after successful (Insert) operation?
Regards
Rainer

I found solution myself. I inserted illegally formatted URL in to onSuccess field, and I managed to debug error. The portal is trying to call page http://server:7778/pls/portal/javascript:window.close();
My solution was to write a simple HTML page:
<html><body onLoad="self.close();"></body></html>
whose URL is written into onSuccess field.
Please comment, if you find possible errors in this solution.
Regards
Rainer

Similar Messages

  • Problems experienced by former Windows users

    Over the last few weeks I have read many posts from those who have the desire to open the folder that contains the originals of their photos. Some tinkered with this folder and turned to Discussions for help when problems ensued. The thing that many seem to have in common is that they were previously using Windows. That has been very evident over the last few days. Is there any way a warning can be posted in a prominent place for these recent converts? Something like: "Attention former Windows users! DO NOT open the originals folder of your iPhoto library. If you do so, you will probably damage your photos." I am sure that someone else could come up with a better wording.
    Just a thought.......

    Post that suggestion at http://www.apple.com/feedback/iphoto.html.
    OT

  • Labview has encountered a problem and close by windows

    Dear All,
    Here I have one question to ask for you. it is that labview was closed automatically by windows and return a information After I run a program(This program was written in labview, it called a .dll to completed a certain process.).  Please see the attached for the returned information.
    who can tell me why?Thanks a lot!
     Best regards,
    jimmy
    Attachments:
    returned information.doc ‏26 KB

    smercurio_fc wrote:
    It's quite possible the DLL is getting garbage values from the implicit coercion and it's not smart enough to check the values for "good values" before operating with them, and that's what's causing the crash. I've seen instances where this happens, hence my recommendation to change the datatype to U8.
    Can you reproduce this? This definitely shouldn't be happening. A LabVIEW coercion should happen purely inside LV and not affect the DLL in any way.
    Of course, an alternative test is to call the DLL from a C program in exactly the same way as is done in the LabVIEW code and see what happens.
    That is an option, although it will not necessarily help because the problem doesn't occur when calling the DLL, but only when closing the VI. Due to this, another suggestion would be to call the VI as a subVI. It was obviously designed to be called as such and that might cause the problem to stop happening. This is obviously not a real solution, because if there is memory corruption, it's best to find it near the source than at some later time, but it might work.
    Try to take over the world!

  • Open form - close form problem

    Hi. Using JDeveloper 10.1.3.3., ADF BC.
    Simple, yet not so simple problem: I have two forms, Main and Detail (JFrame). Main form has menu item which I use to open Detail form:
    try {
    FormDetail frmDetail = new FormDetail();
    frmDetail.setBindingContext(panelBinding.getBindingContext());
    // center jframe, visible = true
    showNewForm(frmDetail);
    } catch (Exception ex) {
    ex.printStackTrace();
    } finally {
    I want to create new instance every time I show Detail form. But I have problem closing detail form. Here is Detail constructor:
    public FormDetail() {
    addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    dispose();
    Here are actions:
    1) start Main form
    2) open Detail form
    3) close Detail form
    4) try to open Detail form - oracle.jbo.JboException 35001.
    I've read about this error, but I don't know how to avoid it.
    I cannot accept that I always have to use setVisible(true) and setVisible(false) on all my forms. There has to be a way to dispose of detail forms, and re-create them. Can someone please help?
    Also, read article on Re: ADF-JClient bug
    No solution there

    I have looked at it before. I am not working with MDI forms, so I cannot apply this.
    I found this article which could solve my problem, but I don't know how is "thedude" creating that Abstract class he was talking about...
    Link: Re: how to release panelbinding correctly?
    As I understood, I should release panel binding before I can release the form...
    Default behavior of detail form's window listener is Exit(0). I want to reinstantiate form every time I open it.

  • Close the window in forms

    well i had made my application with multiple windows in one form well all the window be opened through menu but the problem is that when i tried to close the windowby clicking on the close mark on the window it dont close that window well in this way if i had opened 10 or more windows they remain open and dont seem to be close by that close or hide on exit property of that windows what i conclude its a built in bug or any mistake that i had made help me out

    Hi!
    You must create When-Window_Closed trigger.
    e.g.
    if :SYSTEM.EVENT_WINDOW = 'W1'
    then
    Clese_Window('W1');
    else
    Exit_form;
    end if;

  • Problem close form with upper-right cross

    Hi, I am having a problem with a form in oracle 10gR2.
    The form was made with Oracle designer and now when the user click on the upper-right form cross it's not closed. The user must to click on the parent form and close it.
    Thanks.

    I might add that trigger (when-window-closed) but I'm looking that in the application there are other forms that not include that trigger, however that forms are closed through the upper-right cross.
    It seems like there was a parameter or property in generator time. I don't know. All the applications forms have been created in the same way.
    Thanks, Pavan.
    Xisco.

  • Forms window wont close

    Hey guys. I keep on running into this problem with forms windows not closing consistently. Sometimes it closes and sometimes i have to minimize, then close or minimize, re-open and close. And sometimes I can just wait for a little bit and close the window...
    The application is ran by a form which serves as a menu and opens other forms. Im on forms version 10g, and database 9i... anyone ran into this problem before?
    Mo

    Don't know if it's related, but if you close Firefox it tries to shutdown the Forms applet nicely and thus shutting down can take a couple of seconds if a lot is going on in the exit-form, etc.
    Internet Explorer does not do this and just kills the JVM. That leads to idle sessions on the application server that will eventually be removed when the server discovers they are idle.
    Perhaps there is something going wrong in the shutdown code when using Firefox. You could have to try and see what is causing this. Perhaps start removing triggers from the Form that might fire when closing the form (validation, etc.)
    PS. Are you sure you are using JInitiator in combination with Firefox. As far as I know that's a rare combination and most Firefox users will use Sun JVM. Also be sure that you require a rather new version of JInitiator and patchset 2 of Forms (10.1.2.2.0) to be certified to run JInitiator with Firefox. See http://www.oracle.com/technology/products/forms/htdocs/10gR2/clientsod_forms10gR2.html for more details.

  • Close a window in a post form trigger in a form with calls to new forms

    All,
    I am trying to close the browser using examples from metalink and this forum. I am placing the code in a post-form trigger as directed by the example. The problem I am having is that this is a menu type screen that includes buttons that take the users to a new form. So, when any of the buttons pressed on the menu screeen, including the Exit button, The Post-Form trigger fires and tries to close the window. I also noticed I should place the trigger in the last closing form and have done that.
    I then tried putting the code to close the window in the Exit when button pressed trigger, and that doesn't seem to be working either.
    Any help would be greatly appreciated.
    Joe

    I wonder why the feature isn't built-in to the OS, even as an option.  It's convenient to be able to minimize a window in place, so you don't have to keep going to the dock to reopen it...  

  • Getting hang/crash problem when I try to close browser window from applet

    I have a small Apllet that has a button that calls a Javascript function in the opening window, to close the window in which it is loaded.
    The Applet window is a PopUp window from one of my application's window. First time I start my application and load that Applet the button works fine. It calls the Javascript method and the Method closes the window using the self.close() method.
    But now if I open the applet window again and click on the button to close the windows, it hangs. I put in trace statements and saw that it hangs on JSObject.getWindow() window.
    I am using JDK Plugin 1.4.2_07 and 5.0 , if I work out on IE browser, it works fine.But when I use firefox or mozilla it gives problem of hanging/crashing.
    Note that in case of 1.4.2_07 this problem experienced some times but in case of 5.0 it gives always for other than IE browser.
    Please, if somebody could give me some clue about why this would happen, I will really appreciate that. and code related to this is given below
    import javax.swing.JApplet;
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import netscape.javascript.JSObject;
    public class TestApplet extends JApplet implements ActionListener{
    protected JButton closeButton = null;
    protected JSObject win = null;
    private JFrame frame = null;
    private boolean alreadyClosed = false;
    public void init(){
    this.win = JSObject.getWindow(this);
    this.closeButton = new JButton("Close Browser Window");
    this.add(this.closeButton);
    this.closeButton.addActionListener(this);
    frame = new JFrame("Test Frame");
    frame.setSize(300, 400);
    frame.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.out.println("windowClosing");
    alreadyClosed = true;
    TestApplet.this.stop();
    frame.show();
    public void actionPerformed(ActionEvent ae){
    stop();
    public void stop() {
    if (!alreadyClosed) {
    alreadyClosed = true;
    frame.dispose();
    closeLaunchedBrowser();
    System.gc();
    System.runFinalization();
    private void closeLaunchedBrowser() {
    final TestApplet thisObject = this;
    Runnable r = new Runnable() {
    public void run() {
    try {
    JSObject win = (JSObject)JSObject.getWindow(thisObject);
    if (win != null && win.toString() != null) {
    //win.eval("top.opener=self;self.close();");
    //win.call("close", null);
    win.eval("self.close();");
    } catch (Exception e) {
    Thread t = new Thread(r);
    t.start();
    Thanks.

    I am waiting for any reply. I have tried for all these below options still I am getting Problem. I heard this is because of javascript, it wont call methods more times .Thats
    why I need other than JSObject or java script solution.If some one know anything about this or any modifications I have to made for the below options to avoid that problem please let me know.
    // URL durl = new URL(thisObject.getCodeBase(), "test/CloseMe.htm");
    // System.out.println("URL :" + durl.toString());      
    // thisObject.getAppletContext().showDocument(durl);
    //     thisObject.getAppletContext().showDocument(new URL("javascript:window.close();"), "_self");
    //win.eval("top.opener=self;top.close();");
    //win.call("close", null);
    //Object[] args = { "close", new Integer(50) };
    // win.call("setTimeout", args);
    //win.eval("setTimeout("close", new Integer(50));");
    If it is the problem of JRE I just need it should work on 1.4.2_01 or higher.
    thanks.

  • Problem in installing Forms 6 on Windows 2000

    I have problem in installing forms 6 on windows 2000.
    Please advise me.
    null

    Hello,
    I've been using Dev 2000 ver 6i for several months sucessfully on Win 2K RC2. The compiled .fmx's work fine with the ver 6.0 runtime environment under NT 4.0.
    The only problem is that the Forms Server won't work till the 1st patch set comes out
    (only Oracle knows when!) , so you can't test or deploy the forms as web apps on Win 2K yet. OAS 4.0 appears to work ok on Win 2K.
    I have been using the Beta version of Dev 6i and will upgrade to the release version eventually, probably when the patch comes out.
    null

  • Problems with the System.Windows.Forms.Timer

    Hi All,
    Could some one help me please? I'm having a problem using the System.Windows.Forms.Timer inside an ItemEvent, the timer event just doesn't works...give a look in my code:
    private System.Windows.Forms.Timer myTimer = new System.Windows.Forms.Timer();
    if (pVal.FormUID.Equals("FrmTimer") && pVal.ItemUID.Equals("btnStartTimer") && (pVal.Before_Action.Equals(true)) && (pVal.EventType.Equals(SAPbouiCOM.BoEventTypes.et_CLICK)))
                myTimer .Interval = 1000;
                myTimer .Enabled = true;
                myTimer .Tick += new EventHandler(myTimer _Tick);
    void myTimer _Tick(object sender, EventArgs e)
                SBO_Application.MessageBox("Timer: " + DateTime.Now, 1, "OK", "", "");
    does someone have already tried to use the timer inside an itemevent, or could suggest another solution?
    thanks a lot...

    Hi Bruno,
    Unfortunately you cannot use a Forms.Timer without using a windows form (ie not a SBO form). Have you looked at the other 2 timer objects in .Net, the System.Timer.Timer and System.Threading.Timer? Here's a link to a web page that goes through the differences between each one:
    http://msdn.microsoft.com/msdnmag/issues/04/02/TimersinNET/
    Kind Regards,
    Owen

  • Avoid "close all windows" form

    Hello guys,
    I'm just working on an add-on where there is the need to create several user defined tables and user defined fields at the beginning.
    During the creation, the B1-user gets the form "Database has been modified, close all windows" (no quote)
    And if he presses "Yes" to close all windows this could cause errors in the add-on.
    So my question is:
    Is there any possibility to get this form only ones (right after I finished creating the tables)
    Thanks in advance and
    Best regards,
    Mario

    Hi Mario,
    Take a look at the progressbar object. While a progressbar is active, a user can't interact with the GUI. I use this method also with my initialisations, works like a charm!
    <b>Code (C#):</b>
    /* Create a progressbar (10 steps, cancel button disabled) */
    ProgressBar pbProgress = m_SBOApplication.StatusBar.CreateProgressBar("Creating user tables", 10, false);
    pbProgress.Value = 1;
    /* Create a user table and set the progressbar value */
    pbProgress.Value = 4;
    /* Create another user table and set the progressbar value */
    pbProgress.Value = 8;
    /* Stopping the progressbar */
    pbProgress.Stop();
    pbProgress = null; /* <-- IMPORTANT! */
    Hope it helps,
    Rowdy

  • AirPort Express wireless connection, when I surf the news sites so I linked to **** pages. And must close the window. If I use my iPhone with Internet sharing the same computer, then I have no problem. I believe that it is in AirPort Express, and wou

    AirPort Express wireless connection, when I surf the news sites so I linked to **** pages. And must close the window. If I use my iPhone with Internet sharing the same computer, then I have no problem.
    I believe that it is in AirPort Express, and would have to clean it. How do you do that?

    You need to use the Express in router mode.. I think you are trying to use it in bridge mode.. but you need to give us a lot more details.. screenshots might help more than anything.

  • Close Browser window when you close 10g forms

    Help Please.... I am trying to close browser window when I exit 10g forms:
    Per oracle Note:115905.1
    create close.html file Put the html file in the webserver root.
    I created the following file in $ORACLE_HOME/Apache directory (webserver directory??)
    1.)Create an html file (es. close.html):
    <html>
    <body onload="closeit()">
    <script>
    function closeit()
    win = top;
    win.opener = top;
    win.close ();
    </script>
    </body>
    </html>
    In exit form when button pressed I have the code
    web.show_document('http://apphost1.univ-wea.com:7777/close.html','_self');
    The brwser window does not close automatically.
    thanks,
    Anitha

    Hello this is saras from chennai.
    Now i m developing oracle forms using 6i. now i m running it independantly. that is i put forms in one folder and run these forms using shortcut. If i m using the same in client machine also. But now i want to run these forms in webbrowser(client-server). for this i done the followings.
    1. installing forms server and reports server.
    2.Also i install IIS Server and appachie server also.
    3. I had fmx files.
    now i dont know the procedure to configure these web server with forms server. And i hold the fmx files in inetpub\wwroot folder.
    Which one is the easy method appachiee server or iis server.
    Please help me to run these fmx files in web browser.
    I m eagerly waiting for your favourable reply.
    saras,
    [email protected]
    chennai

  • In FF 3, Intellimouse ("5" buttons) back button closes only the current tab. In FF4 it closes the window. I prefer the former. How can I get FF4 to do that?

    MS's Intellimouse has five "buttons" including the scroll wheel. I set left and right buttons to L-click & R-click (seems normal). I set left side button to Back and right side button to Close.
    In FF3, Close closes the current tab and Ctrl-W closes the window. In FF4, this is reversed -- Close closes the window and all its tabs and Ctrl-W closes the current tab -- not my preferred behavior.
    The behavior switch in FF4 may or may not have been a function of what somebody had for breakfast. It is was, then I'd like it switched back. If there was an important reason for the switch, I'd like to know.
    Until FF4 reverts to FF3 behavior, I'm probably stuck in FF3.
    In anyhow, thanks -- John Linford, Fort Worth

    Harley, thank you so much. I'll reload FF4 and re-set the settings.
    John

Maybe you are looking for