Exit_form(no_validate)

I have one form which enters in enter_query, if I press one botton I must do exit_form(no_validate), and behind this, it gives me form_failure, so I'd like to know if there's any way in which I could know what makes this built-in act in this way, or what I must look at, because I've looked at items definitions and they are correct so .......
Thanks.

If u r in enter-query mode the exit form only cause an exit from the enter-query mode.
For exiting form u can write the following:
If :system.mode = 'ENTER-QUERY' then
Exit_form;
Exit_form;
Else
Exit_form;
End if;
This isn't a clean mode to exit but ... it works!!!

Similar Messages

  • Help with commit_form and exit_form(no_validate)

    Hi, I have a form which calls a form with open_form, and in the opened form, there is a step where i need to perform a commit_form, but when user click cancel on that form, the exit_form(no_validate) does not cancel, is it possible to remove all changes done with commit_form ?

    but when user click cancel on that form, the exit_form(no_validate) does not cancel,What do you mean by "does not cancel"?
    is it possible to remove all changes done with commit_form ?You cannot do a rollback after a commit, if that is what you mean. If you mean something else: what do you mean by that?

  • EXIT_FORM in enter query mode

    Hi Guys,
    I have a button on my form to exit the form code is:
    EXIT_FORM(No_Validate);
    when my form is in enter query mode the button does not work. i have to cancel the query first and then the button works.
    How can i change my mode to exit form even if it is in enter query mode.
    Please help its urgent.
    thanks , Imran Baig

    HI Imran,
    That is quite normal. If you press CTRL/Q, it executes an implicite Key-EXIT trigger. If you are in Enter Query mode, this will close the query and does nothing else. When you execute it again, you leave the from without validation.
    My suggestion were: Place the exit_form(no_validate) twice in your trigger--the second would be absolute harmless, since the form will no longer be active, provided you came from Normal Mode. Otherwies, it will force leaving the form by first closing the query and then leaving.
    Regards, Miklos Herboly.

  • Exit_Form in Enter_Query Mode Problem

    Hi Guys,
    I have written this code in my when_new_form_instance
    Enter_Query;
    now when the form runs its in Enter Query Mode.
    I also have a Exit button on my form with code
    Exit_Form(No_Validate);
    if user runs the form, and without executing the query s/he wants to exit, the exit button is not working. First s/he has to execute the query or cancel the query.
    How can i programatically control this situation on my exit button.
    I dont want to write Exit_Form twice in a button, suggest any other solution pliz.
    Best Regards,
    Imran Baig

    In your Exit button's WBP trigger, do this:If :System.mode = 'ENTER-QUERY' then
      Exit_Form;
    End if;
    Exit_Form(No_Validate);To get the button to work while the form is in enter-query mode, it must be in the same block as the one being queried, or else you must set its Mouse Navigate property to No.

  • GET_APPLICATION_PROPERTY(DATASOURCE) = 'ORACLE'  DS 10gR1 vs. DS 10gR2

    I have a form that was compiled under 10gR1 DS and launches fine, but after compiling it under 10gR2 DS it is not responding in the same manner as 10gR1 to an if statement in the code checking to see if it is connected to an ORACLE database.
    In the 10gR1 version of the form
    The check to see if the form was connected to an oracle database would return false after EXIT_FORM(NO_VALIDATE);
    And this is what was expected to happen with the 10gR2 version of the form.
    But in the 10gR2 version of the form
    After the EXIT_FORM(NO_VALIDATE); statement
    the if GET_APPLICATION_PROPERTY(DATASOURCE) = 'ORACLE' statment returns a true and causes the form to break because its not connected to the database anymore but the code in this if statement contains sql against database tables
    How come only for DS 10gR2 after the EXIT_FORM(NO_VALIDATE); statement
    the get_application_property(DATASOURCE) = 'ORACLE' is true, Even though its not connected to the database anymore?
    Thanks,
    Michelle

    HI...i have a similiar problem. we recently migration to 10g and still using oracle forms 6i. Problem is that i have a logon for which check the datasource to determine the status of the login user.
    If the user, currently is expired or logged out, it should remeber a message otherwise if the datasource is not oracle then show unable to connect on log out.
    On the form, there is a on_logon trigger..
    if i do a show message, i can see that if the user is expired it will not pickup the datasource, instead it is null, logging out the user.
    please have a look at the code below:
    logon(:login.user_name,:login.password||'@'||:login.instance_name,false);
    v_datasource := get_application_property(DATASOURCE);
    if v_datasource = 'ORACLE' then
    begin
    select account_status
    into v_status
    from dba_users
    where username = v_username;
    if v_status like 'LOCKED%' then
    v_message := 'This users account is locked - contact support';
    end if;
    if v_status like 'EXPIRED%' then
    :global.user_name := v_username;
    :global.new_password := 'N';
    :global.old_password := v_password;
    call_form('c_passmnt', hide, do_replace, no_query_only);
    if :global.new_password = 'N' then
    v_message := 'Password not changed - contact support';
    else
    :login.user_name := v_old_username;
    :login.password := :global.new_password_new;
    logout; SYNCHRONIZE;
    logon(:login.user_name,:login.password||'@'||:login.instance_name,true);
    end if;
    end if;

  • MDI with toolbar and menu

    I can't seem to grasp on how to add toolbar and menus to a JDesktopPane. Below is my basic code. These menus/tollbar will be for all instances of JInternalFrame. Should I add these menus and toolbar to a palette (see code). Or any chance you can direct me to an example of MDI? Thanks all,
    jude
    JFrame frame = new JFrame();
    JDesktopPane desktop = new JDesktopPane();
    //JInternalFrame palette = new JInternalFrame("Palette", true, false, true, false);
    //desktop.add(palette, JDesktopPane.PALETTE_LAYER);
    Container content = frame.getContentPane();
    desktop.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE);
    content.add(desktop, BorderLayout.CENTER);
    frame.setTitle("My title");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.setSize(650,550);
    frame.setVisible(true);

    If you want to close a window when you click the close button at top, you should write the trigger
    When-window-closed (form - level)
    exit_form(no_validate);
    I Welcome you to the Programming World of Forms.
    Regards,
    Senthil .A. Perumal.

  • Use of savepoint and rollback in trigger of forms

    I have a button in forms with next code
    --savepoint   
    SAVEPOINT SAVEP1;
    --Call procedure of BBDD: Changed data of tables
    Packet.procedureexample(..., bResult);
    --If not correct the execution -> rollback to savepoint and exit form
    IF NOT bResult THEN
      ROLLBACK TO SAVEPOINT SAVEP1;
      Exit_Form(NO_VALIDATE);
    END IF;
    -- Othe savepoint
    SAVEPOINT SAVEP2;
    --Call other procedure of BBDD: Changed data of tables
    Packet.procedureexample2(..., bResult);
    --If not correct the execution -> rollback to savepoint and exit form
    IF NOT bResult THEN
      ROLLBACK TO SAVEPOINT SAVEP2;
      Exit_Form(NO_VALIDATE);
    END IF;
    --All correct -> COMMIT
    COMMIT;This question is: if execution of "Packet.procedureexample" is correct, but the execution of "Packet.procedureexample2" isn't correct, what happend with data changed for first procedure (Packet.procedureexample).
    Thnks.

    Hi Jortri,
    If execution of "Packet.procedureexample" is correct, but the execution of "Packet.procedureexample2" isn't correct,
    Nothing will happen to data changed for Packet.procedureexample because it has not yet been committed.
    It's because when you are giving rollback to save point, you've also done Exit_Form(NO_VALIDATE); COMMIT is only at the last.
    Hence, if Packet.procedureexample2" is not correct, it'll roll back to save point 2(SAVEP2) and exit the form without validating.
    Since, commit is not issued till now, whatever data modification were done using Packet.procedureexample, are lost.
    If both of the packages data are independent of each other and you don't want to lose the change then issue a commit before creating second savepoint.
    Hope it helps.
    +Please mark answer as helpful / correct, if it helps you+
    Navnit
    Edited by: Navnit Punj on 17-Jun-2009 02:10

  • How to kill session in forms

    In my application I want to kill session if any user
    is idle for 2 minutes.
    I am using oracle forms 6i and database oracle 9i

    You have to use D2KWutil.pll
    In when new form instance write the following code
    declare
    hWind PLS_INTEGER;
    CheckTimer TIMER;
    begin
    hWind := get_window_property(FORMS_MDI_WINDOW,WINDOW_HANDLE);
    Win_API_Session.Timeout_Start_Timer(hWind);
    CheckTimer := Create_Timer('CheckTimeout',1000,repeat);
    end;
    and in when timer expired trigger write the following code
    begin
    if upper(get_application_property(TIMER_NAME)) = 'CHECKTIMEOUT' then
                   :timer.t1 := Win_api_session.Timeout_Get_Inactive_Time;     
    if :timer.t1 > 120 then -- timer is a block and t1 is text item (don't assign a canvas to it, make it invisible)
    Win_API_Session.timeout_delete_timer;
    exit_form (NO_VALIDATE);
    end if;
    end if;
    end;
    hope this helps !!

  • Change the status of a form

    Hi All,
    Can anybody tell me how to change the status of the form?
    I want to exit the form with out committing the changes when the user click a button,
    For it...
    EXIT_FORM(NO_COMMIT);
    will do but, only when the form is not in a query mode.
    How do I change the status of the form or do something so that I can exit the form when I click the button irrespective of the form mode?
    Thanks,
    Naren.

    You don't need to change the status, you just need to ignore it. Try:
    exit_form(NO_VALIDATE)
    Oracle Forms exits the current form without validating the changes, committing the changes, or prompting the operator.

  • Problem with ora-28000 error

    Hi all,
    I got a problem with ORA-28000 in my form. In my app, it allows user to try maximum 3 time to logon, if the user fails, his/her user will be locked. The problem is, when Oracle locked that user, in on-error trigger I cannot catch that error and show the error message.
    Anybody, please give me a hand.
    Thank alot

    I put code (in the on-error trigger) here. please have look, thanks again.
    IN_ERR_CODE NUMBER := ERROR_CODE;
    BEGIN
         IF(IN_ERR_CODE = 28001) THEN
         ELSIF (IN_ERR_CODE = 28002) THEN
         ELSIF (IN_ERR_CODE = 28011) THEN
         ELSIF (IN_ERR_CODE = 28000) THEN
              MESSAGE(ERROR_TEXT);
              --LEAVE_FORM;
              --clear_form(no_validate);
              --RAISE FORM_TRIGGER_FAILURE;
              --EXIT_FORM(NO_VALIDATE);
         END IF;
    END;

  • Reports Integration Bean -- Cookie Expires Unexpectedly

    After successfully using the bean described in the Oracle Forms Services – Secure Web.Show_Document() calls to Oracle Reports white paper for a while, I've noticed a potential problem.
    Suppose I do the following:
    1. Start up my browser, log in to my Forms application and use it to run a report.
    2. Stay logged in to my Forms application for more than about 30 minutes, but without running another report during that time.
    3. Try run a report from my Forms application again.
    In Step 1, the bean "works" -- my login information gets "automagically" passed to Reports.
    In Step 3, the bean "doesn't work" -- I get the "Database User Authentication" page with the "REP-51018: Need database user authentication" error.
    If I wait less than 30 minutes in Step 2, then the bean "works" in Step 3.
    WRITE_LOGOUTPUT shows nothing out of the ordinary -- the cookie appears to be getting set correctly both times.
    The output from Step 1 looks something like this:
    FrmReportsInteg0: Debugging true
    FrmReportsInteg0: Adding new userid string "TEST/TEST@MYDBHOST"
    FrmReportsInteg0: Default cookie domain: .mydomain.com
    FrmReportsInteg0: set RW_AUTH10g
    FrmReportsInteg0: Arguments: encryptionKey=reports9i; Reports version=RW10g
    FrmReportsInteg0: Cookie value for RW10g is: TEST/TEST@MYDBHOST;1196108541259:30
    FrmReportsInteg0: Encoded cookie value is: <22-character encrypted string>+<9-character encrypted string>xROht/0qZoY<5-character encrypted string>
    FrmReportsInteg0: Complete cookie string is: userid=<22-character encrypted string>+<9-character encrypted string>xROht/0qZoY<5-character encrypted string>
    FrmReportsInteg0: Added domain ".mydomain.com" to cookie
    FrmReportsInteg0: Generated Cookie String: userid=<22-character encrypted string>+<9-character encrypted string>xROht/0qZoY<5-character encrypted string>; domain=.mydomain.com; path=/
    FrmReportsInteg0: IE Cookie Set
    The output from Step 3 (after waiting more than 30 minutes) looks something like this:
    FrmReportsInteg1: Debugging true
    FrmReportsInteg1: Adding new userid string "TEST/TEST@MYDBHOST"
    FrmReportsInteg1: Default cookie domain: .mydomain.com
    FrmReportsInteg1: set RW_AUTH10g
    FrmReportsInteg1: Arguments: encryptionKey=reports9i; Reports version=RW10g
    FrmReportsInteg1: Cookie value for RW10g is: TEST/TEST@MYDBHOST;1196110640401:30
    FrmReportsInteg1: Encoded cookie value is: <22-character encrypted string>+<9-character encrypted string>xBuit/wsY44<5-character encrypted string>
    FrmReportsInteg1: Complete cookie string is: userid=<22-character encrypted string>+<9-character encrypted string>xBuit/wsY44<5-character encrypted string>
    FrmReportsInteg1: Added domain ".mydomain.com" to cookie
    FrmReportsInteg1: Generated Cookie String: userid=<22-character encrypted string>+<9-character encrypted string>xBuit/wsY44<5-character encrypted string>; domain=.mydomain.com; path=/
    FrmReportsInteg1: IE Cookie Set
    The "22-character encrypted strings", "9-character encrypted strings", and "5-character encrypted strings" are the same as each other.
    I'm on IE 6 with JInitiator 1.3.1.17.
    My code looks something like this:
    SET_CUSTOM_PROPERTY
        'CONTROL_BLOCK.USERID_BEAN',
        1,
        'ADD_USERID',
        GET_APPLICATION_PROPERTY(USERNAME)||'/'||
            GET_APPLICATION_PROPERTY(PASSWORD)||'@'||
            GET_APPLICATION_PROPERTY(CONNECT_STRING)
    SET_CUSTOM_PROPERTY('CONTROL_BLOCK.USERID_BEAN', 1, 'WRITE_USERID_COOKIE', '10G');
    -- SYNCHRONIZE as specified in Metalink Note 279938.1.
    SYNCHRONIZE;
    WEB.SHOW_DOCUMENT(:PARAMETER.URL, '_blank');
    EXIT_FORM(NO_VALIDATE);I call this code (including the EXIT_FORM) each time I run a report.
    I'm not using SET_MAX_AGE. I assume the behavior I'm seeing is somehow related to the default expiry time of 30 minutes that the white paper mentions for SET_MAX_AGE.
    Still, I am setting ADD_USERID and WRITE_USERID_COOKIE each time. I would expect (incorrectly?) that would "reset" the cookie and its expiry date. The entry for WRITE_USERID_COOKIE in Appendix A of the white paper seems to suggest this:
    The WRITE_USERID_COOKIE property actually sets the cookie to the client browser. This property needs to be called whenever the user database connect information for a Reports changes or after the cookie has been invalidated by exceeding the time defined as max_age.
    Why is WRITE_USERID_COOKIE not resetting the cookie and its expiry date? If it doesn't, what's the point of setting WRITE_USERID_COOKIE "after the cookie has been invalidated?"
    Is that "just the way it works"? If so, can anyone suggest any workarounds?
    Thanks.

    Hi,
    I recently implemented this functionality for our project and I can confirm your observations. I haven't had time to look into it yet, though. If you find a solution, then please post it to this forum.
    BR,
    Peter

  • Exit button not working on Personal Information DC

    Hi,
    The exit button in Personal Information ( Home Address & Phone ) DC is not working. The issue is when I click on Exit button the screen is getting refresh, but no action is taken place.
    Is the issue related to SPRO Configuration? Because the respective method is calling from FPM -fpm.navigate(wdThis.wdGetFcNavigationInterface().getNavigationTargetExitApplication());
    So I tried by writing following method, but when I click on Exit button from Edit & Review views, the page is opening in a new window instead of opening in a content area where as Overview page is opening in Content Area.
    WDPortalNavigation.navigateAbsolute
                              ("ROLES://portal_content/abc/hr/ess/iviews/com.abc.hr.ess.iview.area_personal_information",
                     WDPortalNavigationMode.SHOW_INPLACE,
                     WDPortalNavigationHistoryMode.NO_HISTORY,
                     null);
    Also I would like to know what are the configurations we need to do in SPRO with respect to ESS & MSS.  
    Thanks in advance to resolve the issue.
    cheers
    dev

    Create an alert with name close_alert write message of you choice give lable to button1 and button2 Yes and No respectively.
    On your exit button write below code
    declare
         al number;
    begin
         al:=show_alert('al_close');
         if al=alert_button1 then
              exit_form(no_validate);
         end if;
         end;Edited by: XeM on Apr 6, 2013 2:39 AM

  • Exit Button

    Hi, I am using Forms 5.0 on Windows 2000 Platform. In a Button block, I have two buttons save and exit. The exit button is working fine in the middle of entering records, but it's not working when there is no data in any fields in the first block. I have tried key_exit at form level and also, exit_form(no_validate). This is making the button useless after the user succesfully enters some records and wants to quit the application. Now they are forced to use the window close button on top. Any help is greatly appreciated. TIA.
    Ram S.

    Also, if your pushbutton is not in the block where you have initiated the Enter_query, you cannot click the button unless its Mouse Navigate property is set to NO.
    Otherwise, you will get an error message when you click the button.
    And the advice to use a cancel_query command is completely wrong. Exit_form is the correct command.

  • Forms save message problem!

    Um working in forms 9i.
    I have set SeprateFrame = True in the configuration file, so that the forms applet opens up in a new window.
    Now there are two BROWSER windows...one, in which user types the URL of the Forms server and Second, in which the forms applet opens.
    I can close the form without getting the default Forms "Do u want to save the ....?" message (by clicking the cross button on the APPLET inside the BROWSER)if there are any pending changes in the data block with a form level When_Window_Closed trigger using Exit_Form(No_Validate). But the problem starts when there are pending changes in the form and I directly press the cross button on the BROWSER which encloses the APPLET. I get the same annoying Forms message "Do u want to save?".
    Could somobody tell me how to control the BROWSER window enclosing the APPLET, because all the forms triggers are related with forms only and one have no control over the BROWSER.
    Please help.

    hi
    try this.
    BEGIN
                   /* ** Force validation to happen first */
                   Enter;
                   IF NOT Form_Success THEN
                        RAISE Form_Trigger_Failure;
                   END IF;
                   /* ** Commit if anything is changed */
                   IF :System.Form_Status = 'CHANGED'
                        THEN
                        Commit_Form;
                        /* ** A successful commit operation sets Form_Status back ** to 'QUERY'. */
                        IF :System.Form_Status <> 'QUERY' THEN
                             Message('An error prevented your changes from being committed.');
                             Bell;
                             RAISE Form_Trigger_Failure;
                        END IF;
                   END IF;     
    :system.message_level := '10';
    COMMIT_FORM;
    :system.message_level := '0';
    if
    :system.form_status != 'CHANGED'
    then
    -- go_block('block');
    else
    Message ( 'Your entered data could not be saved. Please check the form.' );
    Message ( ' ' );
    end if;
    end; -----
    On-Message trigger (Form Level)
    begin
    if
    abs ( message_code ) = 40400
    then
    clear_message;
    bell;
    message ( message_text, no_acknowledge );
    else
    message ( message_text );
    end if;
    end;
    Sarah

  • Is it possible to set the SYSTEM.MODE to 'NORMAL'?? How to do a CANCEL-QUERY??

    Hi All;
    I have a form in which i have created 'ENTER-QUERY', 'EXECUTE-QUERY', 'CLEAR', 'SAVE' & 'EXIT'.
    Now i want to create a 'CANCEL-QUERY', but i exactly don't know what code to put in so that it functions like 'CANCEL-QUERY' of DEFAULT&SMARTBAR.
    Can you please let me know??
    And also , actually i tried the following for 'CANCEL-QUERY' in WHEN-BUTTON-PRESSED trigger .
    BEGIN
      CLEAR_BLOCK(NO_VALIDATE);
      IF :SYSTEM.MODE = 'ENTER-QUERY'
      THEN SYSTEM.MODE := 'NORMAL';
      END IF;
    END;
    I got an error saying A READ-ONLY bind variable used in OUT or IN-OUT context.
    So i guess, i cannot alter or set the status of SYSTEM.MODE. Ofcourse i can't, How can I..
    So what do i put in the Code to do CANCEL_QUERY action??
    Thank You.
    Oracle Forms 6i.
    Oracle 9i.

    I'd just like to know did you manage to cancel a query using my code ,Please try..
    IF :SYSTEM.MODE = 'ENTER-QUERY'
      THEN
      EXIT_FORM(NO_VALIDATE);
    END IF;
    Hope it works..:)

Maybe you are looking for

  • Moving entire library to mobile me gallery

    I'm curious if there is a way to move my entire Aperture library over to mobile me. I know that I can create a gallery in mobile me and sync it with a particular gallery in Aperture but I'm hoping there is a way to sync the whole library (albums/proj

  • How can i automate importing certificates?

    My company is using zScaler for web filtering and we are trying to figure out how we can import certificate into firefox. I have tried copying the cert.db from one machine to another but the problem is that the page only loads with text, which implie

  • How can I download the trial version of PS CC when the update window says I am up to date.

    I have tried to download the trial version of PS CC repeatedly. The downloads were unsuccessful but the download window says I am up to date and will not let me try again. How do I work around this?

  • Image Icon Creation

    Hello All, Does anybody know how to properly create an image for a toolbar? I have successfully created a .gif image, but the gray border is around the image and does not blend into the toolbar/button color. How do I resolve this? Thank You.

  • How to extend factory calender to a plant ?

    Hi Ranga: How to extend factory calender to a plant ? ( Tcode: SCAL, The calender is not client specific) I check marked US factory calender, where after can you tell how to extend factory calender to plant Note: I am using IDES ( International Demon