Close IE when exit form

Hi how can i close IE when i click on the exit button on my form. At the moment i'm using 'EXIT_FORM;'.

Hi Jagadish,
If Francois' simpler solution isn't working for you, and you want to try the close.htm route, then you need to make sure that htm file is somewhere that the browser can get to it. Because I have a few other supporting files for my app - htm pages, images etc. - I created a new dedicated folder to store them, and mapped a virtual directory by editing <ORACLE_HOME>/forms/server/forms.conf.
If you look in that file, you'll see the syntax for other virtual directories already in place, but basically you add something like:
AliasMatch ^/forms/my_new_directory/(..*) "<ORACLE_HOME>/forms/my_new_directory/$1"
... replacing the <ORACLE_HOME> with the explicit path of your apps server home.
Drop your .htm file into the new directory; ignoring Forms for a moment, make sure you can access it directly using a URL like:
http://your_server.your_company.com:7781/forms/my_new_directory/close.htm
(If you access it successfully, of course, the browser will immediately shut down!)
Then use Web.Show_Document('my_new_directory/close.htm','_self'); - hopefully that should find it.
Incidentally, I'm working in separateFrame=false. And I had thought that calling Javascript directly from Web.Show_Document() was to be avoided - see e.g. Hide adress bar for security issue On the other hand, Francois is a man who usually knows what he's talking about!
James

Similar Messages

  • Close report window when exit form

    Hi all,
    I successfully use Forms 10g to call a report with web.show document.
    I now need to close the report page when the user exits the form.
    Is this possible??
    Kind regards,
    Pablo

    It is not possible to close the report window as it is opened in new browser window

  • Forms builder 6i close suddenly when compiling form with dblink refenece

    Dear Oracle developer
    We have encountered this problem today. We develop a form module using forms 6i. Within the form module we have a procedure with a cursor which uses database link.When we try to compile the form module the form builder just close immediately.
    e.g. I have create a procedure program unit within my form as ivan and a dblink called test:-
    PROCEDURE IVAN IS
    cursor c_ivan
    IS select ce_code
    from cr_emp_info@test;
    BEGIN
    OPEN c_ivan;
    LOOP
         EXIT WHEN c_ivan%notfound;
         null;
    END LOOP;
    close c_ivan;
    END;
    I have tried the same with all my colleagues machine, the same problem occur.
    I have tried with oracle 10g forms it give the following:-
    ora01041: Internal error. hostdef extension doesn't exist
    many thanks in advance
    Message was edited by:
    ISWC

    We have encountered this problem todayYou didn't have this kind of problem in this form...yesterday...???
    Have you checked the log of Forms6i when it crashes.....???
    This same problem occurs when you select "Program->Compile PL/SQL->Incremental/All"...??? as well...???? or when for example press the <Ctrl>+<T> combination of buttons...????
    Simon

  • A message when exit form

    Hi,
    when I click the X button to exit the form (I mean the external X button - where is written "Oracle Fusion Middleware Forms Services"), I get the message: "Do you want to save changes you have made?", even when I didn't do any changes in the form (just open it, and close it ,immediately).
    Why did this message show-up?
    Thanks in advanced,
    Elad

    Hi Andreas,
    The problem was in the property palette of the data-block.
    this was a form that another developer wrote in the past, and there was a WHERE CLAUSE and a ORDERE BY CLAUSE. I erased the content from these properties, and set DATABASE DATA BLOCK to "NO", and erased also the content from QUERY DATA SOURCE NAME, correspondingly.
    This query I don't need any more, thus I could to erased it, and the message finally disappeared..
    Elad

  • White screen at startup, won't go on when exiting form sleep mode

    hey,
    Since a few months I have a game, it's called FlightGear, and it's a free game. But then I started having problems with my mac. Sometimes when I've played FG, and put my mac into sleep mode, and waked it up, is showed my desktop, could move my mouse, everything worked, but I cant open anything. And I hear a sound form inside my Mac. And when I turn my Mac off and put it back on, it only shows a white screen with the same sound. I've done checks to see if my disk was OK, and everything was fine. But this just keeps getting worse!

    Two different problems. The black screen when the computer runs fine usually means that the FL inverter or the LCD screen is defective and needs to be replaced.
    Not going to Sleep when the lid is closed is a setting under the Advanced settings in the Power Options you'll find in the Control Panel. With the Advanced Power Options, you can set the actions of closing the lid when using AC or battery power. 
    In my case, when the computer is attached to the power cord, it is also connected to a large screen monitor. In that case, I want the computer to do nothing when the lid is closed. But if I am running the computer on battery power, the LCD screen is my main screen and I do want the computer to go to sleep when I close the lid. This will save me power if I am on a plane, at a coffee shop or at a friend's.

  • Error FRM-41351 when exiting Forms after Forms Navigatiion

    Has anyone else found a problem with inter-form processing similar to the following
    The scenario:
    - An Update FORM1 (fully committed), calls another update form FORM2 using designer action item 'open_form' code.
    - Made a change to FORM2 data.
    - Closed the FORM2 window before committing.
    - We get prompted with 'QMS-00158' Do you want to save ?'.
    - We select 'No'. FORM2 closes.
    - Close the window for FORM1
    Problem:
    We are getting 'FRM-41352: Cannot navigate out of current form', then the form closes.
    Note:
    We do not get the error if we select 'Yes' to the QMS-00158 question, on exiting FORM2.

    How about manually creating mesg folder under forms and putting the fmcus.msb file there?
    Hope it helps.
    Navnit

  • Client web browser closes abruptly when accessing forms deployed using 9iAS 1.0. 2

    I am using 9iAS 1.0.2 on W2K server with SP3.I could successfully launch the application on web browser at server side.Hoever when I try to access from client machine the first time it install the Jinitiator and the web browser gets closed.
    why it is happening? Appreciate any thoughts!
    Thanks

    The problem here is the SOAP engine running on Oracle9iAS 1.0.2.2 is a lower version than that running on Oracle9iAS 9.0.3/OC4J 9.0.3.
    To get them to interoperate (e.g. 1.0.2.2 calling 9.0.3), you would have to do the following:
    1. Build your Web service in OC4J 9.0.3/JDev 9.0.3
    2. Deploy to 9.0.3 environment
    3. Build a Web service client on the 1.0.2.2 environment, not using any 9.0.3 libraries (see below for a link to a paper to do this)
    Conversely if you wanted to call from a OC4J 9.0.3 Web service client to a Oracle9iAS 1.0.2.2 Web service, you would have to do the following:
    1. Build your Web service on 1.0.2.2 using 1.0.2.2 libraries
    2. Deploy this to a 1.0.2.2 environment
    3. Build a client to the 1.0.2.2 Web service using the 9.0.3 libraries
    The reason it likely is not working is that it looks like you are mixing two different generations of SOAP libraries.
    See the link below for how to build and consume Web services using Oracle9iAS 1.0.2.2:
    http://otn.oracle.com/tech/webservices/htdocs/soapr1/ExploreSOAP1022.html
    At the end of that paper is a link to another paper showing how to use JDeveloper 3.2 to build a Web service for 1.0.2.2 - it shows how to use its libraries versus the libraries that came with 9.0.3.
    Mike.

  • Want to close internet explorer window on exit form (10g)

    i am using oracle 10g forms, want to close internet explorer window when exit form automatically.
    Have alread tried calling html page at exit form and using closing window script for this, but didn't work.
    Please help and describe in detail how to debuge and test every thing is ok
    Aslam

    Hi Aslam
    Try following the instructions here
    https://metalink.oracle.com/metalink/plsql/f?p=130:14:3767372347328447221::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,201481.1,1,0,1,helvetica
    Worked a treat for me.
    paul

  • Force exit form when I am in query mode.

    I have created one button just launch Exit_Form built_in. Ok my forms exit, but when I stay in query mode, I need to click at button twice, first to abort query, the second time to exit form. How can I configure that to close my form automatically?
    I have tried Abort_Query folling Exit_Form, but does not work as well.
    Thanks all.

    In the trigger that contains the EXIT_FORM check for if you are in ENTER_QUERY mode. If you are issue two EXIT_FORM otherwise one.

  • When i'm in the music player function, and i turn my ipod to lanscape view, i start to roll the albums and then the ipod exit form the musicplaying suddenly -_- why? please help me

    When i'm in the music player function, and i turn my ipod to lanscape view, i start to roll the albums and then the ipod exit form the musicplaying suddenly -_- why? please help me

    Did you try to reset the device by holding the sleep and home button until the Apple logo comes back again?

  • Exiting form after being in query mode

    Hi guys,
    Having an issue with some forms after migrating from forms version 6i to 10g. Learning as I go along.
    Forms which startup in query-mode seem to have an issue when closing - all have two blocks - one block is utilised through user query and the other (like a child) displays the query results and can be updated from here. If the user does not enter a query they can cancel it using exit_form which works fine.
    After a query has been completed the system mode returns to 'normal' mode (which I can see through debugging by entering messages/pauses throughout the code). However when exiting the application breaks with error FRM-92100. I have had this problem before with regards to exiting forms but I got round this by having an open window (acting as a parent or root window) in the background which is not closable. Been tweaking the form all afternoon including using exit_form(no_validate) and other changes. By commenting out enter_query and execute_query commands the form closes as normal without issue which means it is related to query mode or something along these lines.
    If anyone has any ideas or pointers on how to move forward with this it would be much appreciated.
    Cheers,
    Robin

    Guys,
    Thanks for the replies.
    The form currently uses exit_form twice in order to close the query mode and I receive a message "query cancelled" to confirm this.
    I have also tried - and retried for the benefit of confirming this - the code you have mentioned u3 - using it in the when-window-closed trigger. I chose &lt;option&gt; to be no_validate.
    The main app is opened from a webpage. Forms are opened from a menu which is attached to all forms. The code that opens the forms is open_form (i.e. not call_form or new_form) for modal reasons.
    The application is disconnected straight after exit_form is used - its as if coming out of query-mode to normal causes this as I said before closes gracefully when I remove the enter_query command.
    As for the error message itself here is a fuller picture:
    FRM-92100: Your connection to the server was interrupted. This may be the result of a network error, or a failure on the Server. You will need to reestablish your session.
    Details...
    java.lang.NullPointerException
    at oracle.forms.handler.TextComponentItem.selectionChanged(Unknown Source)
    at oracle.ewt.lwAWT.lwText.LWTextComponent._fireSelectionChanged(Unknown Source)
    at oracle.ewt.lwAWT.lwText.LWTextComponent.select(Unknown Source)
    at oracle.ewt.lwAWT.lwText.LWTextField._selectAll(Unknown Source)
    at oracle.ewt.lwAWT.lwText.LWTextField.processFocusEvent(Unknown Source)
    ...AND SO ON!
    Hope this gives a better picture of what's going on :)
    Robin
    update - There is a 'dirty' workaround to this problem - if i minimize the window (change its state in any way) after the mode is back from query-mode to normal THEN close the window it closes gracefully.
    Edited by: Robin84 on Sep 10, 2008 10:03 AM

  • Clear Form & Exit Form

    Hi All,
    I have developed a new form.In my form i have some mandatory columns,without entering the madatory columns my form is not able to clear the data.
    but it has to clear all the data in my form.Is there any solution to slove this
    bit urget plss any body
    Even if i say Exit form also itis not closing the Form.
    Regards
    Siva

    Inside the block ABC where you have mandatory columns, I believe you may have cursored or entered one of the fields and did not place a mandatory value in the field. Then when you try and close the form, the form is complaining that you did not enter the mandatory value. Am I correct?
    If this is what is happening, then you created an incomplete record. Try to use the set_item_property built-in to tell form the record for block ABC is new. You can do this in the same trigger that you are using to close the form. Maybe something like this:
    go_block('ABC');
    set_record_property(currect_record, 'ABC', STATUS, NEW_STATUS);
    then
    clear_form(no_validate) or exit_form(no_validate)

  • Populate two poplist items on when-new-form-instance trigger

    Hello!
    I have a simple form with some text-items, datetime items, two poplist items and two buttons (exit and save to database).
    Everything works well except the second poplist wont get populated. After wrote the code for the first i just wrote a similar one for the second poplist. Each poplist fetches its data from different tables. Nothing changed when i tried different list-item types (first worked, second didnt).
    Here is the code in the when-new-form-instance trigger:
    declare
         rg_query_sponsori varchar2(200) := 'select nume, sponsor_id from sponsori';
         rg_id_sponsori recordgroup;
         err_sponsori NUMBER:= 0;
    rg_query_portari varchar2(200) := 'select nume, portar_id from portari';
         rg_id_portari recordgroup;
         err_portari NUMBER:= 0;
    BEGIN
         rg_id_sponsori := create_group_from_query('recgrp1',rg_query_sponsori);
         err_sponsori := populate_group(rg_id_sponsori);
         clear_list('vizitatori.sponsor_id');
         populate_list('vizitatori.sponsor_id',rg_id_sponsori);
         rg_id_portari := create_group_from_query('recgrp2',rg_query_portari);
         err_portari := populate_group(rg_id_portari);
         clear_list('vizitatori.portar_id');
         populate_list('vizitatori.portar_id',rg_id_portari);
    END;
    Thx and have a nice weekend :)
    Iulian

    Try this by adding delete_group
    declare
    rg_query_sponsori varchar2(200) := 'select nume, sponsor_id from sponsori';
    rg_id_sponsori recordgroup;
    err_sponsori NUMBER:= 0;
    rg_query_portari varchar2(200) := 'select nume, portar_id from portari';
    rg_id_portari recordgroup;
    err_portari NUMBER:= 0;
    BEGIN
    rg_id_sponsori := Find_Group('recgrp1');
    if not id_null(rg_id_sponsori) then
    delete_group('recgrp1');
    end if;
    rg_id_sponsori := create_group_from_query('recgrp1',rg_query_sponsori);
    err_sponsori := populate_group(rg_id_sponsori);
    clear_list('vizitatori.sponsor_id');
    populate_list('vizitatori.sponsor_id',rg_id_sponsori);
    rg_id_portari := Find_Group('recgrp2');
    if not id_null(rg_id_portari) then
    delete_group('recgrp2');
    end if;
    rg_id_portari := create_group_from_query('recgrp2',rg_query_portari);
    err_portari := populate_group(rg_id_portari);
    clear_list('vizitatori.portar_id');
    populate_list('vizitatori.portar_id',rg_id_portari);
    END;

  • ORA-04062 error when running forms with different users

    ORA-04062 error when running forms with different users
    I have a form that has a block that should display some data from another users tables. (The other user's name is dynamic, it's selected from a list box)
    I wrote a stored procedure to get the data from other user's tables.
    When I compile the form and run it with the same user I compiled, it works without any error. But when I run the compiled form with another user I get the ORA-04062 (signature of procedure has been changed) error.
    I tried setting REMOTE_DEPENDENCIES_MODE to SIGNATURE in init.ora but it didn't help.
    My Forms version is 6i with Patch 15.
    Database version is 9.
    Here is my stored procedure:
    TYPE Scenario_Tab IS TABLE OF NUMBER(34) INDEX BY BINARY INTEGER;
    TYPE Open_Curs IS REF CURSOR;
    PROCEDURE Get_Scenarios(User_Name IN VARCHAR2, Scen_Table OUT Scenario_Tab) IS
    Curs Open_Curs;
    i NUMBER;
    BEGIN
    OPEN Curs FOR
    'SELECT Seq_No FROM '|| User_Name ||'.scenario';
    i := 1;
    LOOP
    FETCH Curs INTO Scen_Table(i);
    EXIT WHEN Curs%NOTFOUND;
    i := i + 1;
    END LOOP;
    END Get_Senarios;
    I would be happy to solve this problem. It's really important.
    Maybe somebody can tell me another way to do what I want to do. (getting a list of values from another users tables)

    I think it should be a better solution to create a package,
    and put your own TYPES and procedure into it.
    CREATE OR REPLACE PACKAGE PKG_XXX IS
    TYPE TYP_TAB_CHAR IS TABLE OF .... ;
    PROCEDURE P_XX ( Var1 IN VARCHAR2, var2 IN OUT TYP_TAB_CHAR );
    END ;
    Then in your Form :
    Declare
    var PKG_XXX.TYP_TAB_CHAR ;
    Begin
    PKG_XXX.P_XX( 'user_name', var ) ;
    End ;

  • Webutil-Problem (not the usual "PRE-FORM", "WHEN-NEW-FORM-INSTANCE" etc.)

    Hello,
    We have an application with lots of modules, where we use webutil to create text files on the client for data exports. The export is called in a WHEN-BUTTON-PRESSED Trigger and usually works fine, but we have the following problem:
    If two modules, where webutil is used, are opened at the same time and one module is closed, webutil does not function anymore in the other module. If we then try to create a text file after closing on module, we get the following error-message:
    Oracle.forms.webutil.file.FileFunctions bean not found.
    WEBUTIL.FILE.FILE_SELECTION_DIALOG_INT will not work.
    It’s not only the FileFunctions bean, all other webutil functions do not work also anymore in the remaining module.
    This is not the usual “PRE-FORM”, “WHEN-NEW-FORM-INSTANCE” etc. Webutil-Problem.
    As I said before, webutil works, but when we close one module with webutil used, it does not work in another open module anymore.
    Any Idea, why this happens and how to solve the problem???
    Kind regards
    Udo

    Hello,
    Yes, both modules work in the the same session and session is not disconnected, when one of the modules is closed.
    Webutill.pll is attached on both forms and all forms in our application using webutil usually work fine with the exception mentioned above.
    It's a bit difficult to explain, what happens in our application, but I try:
    Our application consists of modules that call other modules with call_form or go_form , when the module is open, all in the same session. "Global" Parameters are passed with SHARE_LIBRARY_DATA. Usually the calling forms stays open.
    In the following constellation webutil does not work anymore at a certain point :
    - Open module A (with webutil attached) and webutil works
    - Then module A calls module B (with webutil attached) and webutil works in module B
    - GO_FORM (module A) and webutil still works (while module B is still open)
    - CALL_FORM (module C) (in our case webutil is not attached to this module, but I think that is not the problem) module C closes module B (while module A stays open)
    - After making a choice in module C, module C closes itself with EXIT_FORM.
    - Go back to the open module A, make a new query with the choice made in module C and webutil does not work anymore in module A
    Regards
    Udo

Maybe you are looking for