Form exits when calling another form

I have a form that passes parameters to another form. When creating new records and then calling the other form, it works fine. However, when coming from a post query and then passes parameters to a new form, the form exits upon calling of the other form. What causes this? Thanks for your help. I am using Forms Developer 6.0
Edited by: user6656248 on Apr 14, 2009 8:30 PM

My form is intermittent, when creating new records, sometimes the other form is called and parameters are passed but sometimes nothing happens and there are no errors. But from post query, calling another form and passing parameters exits the calling form and the called form does not show up. This form calls another form and passes some parameters without problems but when I tried to call another one, those scenarios happen. I am confused because the codes on both my When-Button-Pressed trigger are 100% similar. I dont know why this happens on this one and NEVER on the other. I hope you understand my query. Thanks a lot for responding. Please help.
Here is my code:
DECLARE
form_id      FormModule;
pl_id      paramlist;
pl_name      varchar2(1000);
it_id      Item;
BEGIN
pl_name := 'temp';
pl_id      := get_parameter_list(pl_name);
     IF NOT ID_NULL(pl_id) THEN
     destroy_parameter_list(pl_id);
     END IF;
pl_id := create_parameter_list(pl_name);
add_parameter(pl_id,'L_OUT_DATE',TEXT_PARAMETER,TO_CHAR(:DAILY_OUTS.OUT_DATE,'DD-MON-RRRR HH24:MI:SS'));
add_parameter(pl_id,'L_DATE_IN',TEXT_PARAMETER,TO_CHAR(:DAILY_OUTS.DATE_IN,'DD-MON-RRRR HH24:MI:SS'));
     add_parameter(pl_id,'L_SUBSTATION_CODE',TEXT_PARAMETER,:DAILY_OUTS.SUBSTATION_CODE);
     add_parameter(pl_id,'L_BREAKER_CODE',TEXT_PARAMETER,:DAILY_OUTS.BREAKER_CODE);
     add_parameter(pl_id,'L_CIRCUIT_CODE',TEXT_PARAMETER,:DAILY_OUTS.CIRCUIT_CODE);
     add_parameter(pl_id,'L_REMARKS',TEXT_PARAMETER,:DAILY_OUTS.REMARKS);
     add_parameter(pl_id,'L_FREQUENCY',TEXT_PARAMETER,:DAILY_OUTS.FREQUENCY);
     add_parameter(pl_id,'L_OUTAGE_CODE',TEXT_PARAMETER,:DAILY_OUTS.OUTAGE_CODE);
     add_parameter(pl_id,'L_OUTAGE_SUBCODE',TEXT_PARAMETER,:DAILY_OUTS.OUTAGE_SUBCODE);
     add_parameter(pl_id,'L_WEEK_NO',TEXT_PARAMETER,:DAILY_OUTS.WEEK_NO);
     add_parameter(pl_id,'L_RADIO_GRP',TEXT_PARAMETER,:DAILY_OUTS.NEW_OUTAGE_GRP);
     add_parameter(pl_id,'L_RELAYS_ACT',TEXT_PARAMETER,:DAILY_OUTS.RELAYS_ACT);
     add_parameter(pl_id,'L_TRIP_CAUSED_BY',TEXT_PARAMETER,:DAILY_OUTS.TRIP_CAUSED_BY);
     add_parameterr(pl_id,'L_SCODE_TRIP_CAUSED_BY',TEXT_PARAMETER,:DAILY_OUTS.SC_CAUSED_BY);
     add_parameter(pl_id,'L_ACTION_TAKEN',TEXT_PARAMETER,:DAILY_OUTS.MEASURE);
:GLOBAL.BC := 1;
IF :daily_outs.out_date > sysdate +1 then
     MESSAGE('DATE/TIME-OUT IS GREATER THAN SYSTEM DATE. PLEASE CHECK AND ENTER NEW
DATE/TIME-OUT VALUE.', acknowledge);
     MESSAGE('DATE/TIME-OUT IS GREATER THAN SYSTEM DATE. PLEASE CHECK AND ENTER NEW
DATE/TIME-OUT VALUE.', acknowledge);
     RAISE Form_Trigger_Failure;
END IF;
IF :daily_outs.date_in IS NOT NULL AND :daily_outs.out_date IS NOT NULL THEN
     IF (:daily_outs.date_in - :daily_outs.out_date) <= 0 then
MESSAGE('DATE/TIME-IN IS LESS THAN OR EQUAL TO DATE/TIME-OUT. PLEASE ENTER NEW
DATE/TIME-IN VALUE.', acknowledge);
RAISE Form_Trigger_Failure;
END IF;
END IF;
OPEN_FORM('FRMSPM_DAILY_BRKRS_PARAM', ACTIVATE, NO_SESSION, SHARE_LIBRARY_DATA, pl_id);
END;

Similar Messages

  • Calling another form when current form is in query mode

    I have a form that is in query mode. When I select a menu option that calls another form through new_form, I get the error 'FRM-41009: Function key not allowed. Press Ctrl+F1 for list of valid keys.'
    I would like trap this error, cancel the query and invoke the new form. I have tried to do this by code similar to this:
    if :system.mode = 'enter-query' then
    exit_form ;
    end if ;
    new_form('someform') ;
    (since exit_form in query mode is supposed to cancel the query).
    But in this case, the trigger ends with the execution of the 'exit_form' statement.
    Any help would be greatly appreciated.
    Thanks and regards,
    Rajesh Jayaprakash
    [email protected]

    I think the following will work:
    When you call the EXIT_FORM builtin, Forms cancels out of Query Mode but also stops the current PL/SQ execution - which is annoying.
    I believe, though, that the WHEN-WINDOW-ACTIVATED trigger will fire on your Form. Therefore, you can:
    1) Set a Global Variable or PL/SQL packaged variable just before you call the EXIT_FORM builtin then
    2) Test the value of the Global Variable in the WHEN-WINDOW-ACTIVATED trigger and perform the CALL_FORM there.
    3) Even better, put the CALL_FORM and associated parameters into a Program Unit on the Form - then you can call it from either the original trigger or the WWA trigger as necessary.
    If this does not work, you could resort to:
    1) Set a Global Variable just before you call the EXIT_FORM builtin
    2) Initiate a TIMER
    3) Call the EXIT_FORM builtin
    4) In a WHEN-TIMER-EXPIRED trigger, check the value of the Global variable. If it's set, Call the Form you want to call
    5) Again, put the actual CALL_FORM in a Program Unit so it can easily be called with the correct parameters from wherever you need to call it.
    It's annoying that you need to go to these lengths to perform what seems to be such an easy task!
    If anyone knows any better ways of achieving this, please add another reply!

  • How to call another form ,if option is entered in a text item object ???

    hi ,
    I am created an application ,where in i press a button which call another form having a menu .
    I select any one of the option from the menu ....i enter a number in the text item object of this form ....depending upon what option i have typed .....i would like to call another form ...
    My questions are
    1) Which trigger of this text item should be enabled,and what code to i write in this trigger ?
    2) Since this form is not having any database insert,delete ,update or query (select)
    it should directly go to the new form,whose option i provide in the text item .
    Sunny

    hey bro, i am assuming that ur text item contains the form name, any relevant trigger can be used for user action, like key-enter, post-change or key-next-item.
    to run a form u can use functions call_form or open_form with proper paramters.
    if u want to forward the entered text in the item, use global variable for the session.
    it doesnt matter if the form contains database items or blocks, all u have to do is run the form.
    e.g,
    declare
    VAR VARCHAR2-------;
    begin
    /* u can use the variable to concatinate or modify too, also can use global variable
    var:=:urblock.uritem;
    /* use ur own relevant parameters */
    open_form(VAR,ACTIVATE,NO_SESSION);
    exception
    when---------
    end;

  • Calling another form from current form

    Hello everyone,
    After entering information into a form, I want to call another form then I want to return to the previous form without loosing the information I entered into it....
    Whats the pl/sql code to do this...how do i do it?
    Thank u...
    Edited by: user10746194 on Jan 16, 2010 9:30 AM

    You should put this code at the place where you want to appear the called form. that is the child/first form.
    if you want to call the form on button click, place the code in when-button-pressed trigger of the respective button in the first form.
    Edited by: Dora on Jan 17, 2010 10:54 AM

  • A form calls another form

    In VB 2 call a form (say it's Form2), we just type Form2.show
    How can I do the similiar thing in Java? I wish 2 make a splash screen n display 4 about 3 seconds n later it unload itself n calls another form.

    In VB 2 call a form (say it's Form2), we just type
    Form2.show
    How can I do the similiar thing in Java? I wish 2 make
    a splash screen n display 4 about 3 seconds n later it
    unload itself n calls another form.Create a class that extends JWindow, do your splash things in this class and when you want to call another form or frame:- frameclass.setVisible(true), and use dispose() method on JWindow class to make it disappear.

  • Calling another form in query only mode

    Dear all,
    Please clarify me which parameters to use while calling another form in query only mode in
    fnd_function.execute.
    Regards,
    Kiran

    Hi,
    According to standard doc:
    When you define a form function in the Form Functions window or call an existing form function using FND_FUNCTION.EXECUTE or
    APP_NAVIGATE.EXECUTE, you can add the string:
    QUERY_ONLY=YES
    to the string in the Parameters field or in the arguments string (using the other_params argument). This argument causes the form to be
    called in query–only mode. The FND_FUNCTION.EXECUTE procedure (which is also used by the Oracle Application Object Library
    Navigator) sets the QUERY_ONLY flag that sets all database blocks to non–insertable, non–updatable, and non–deletable.
    Hope it helps.

  • Form6i can't call another form on network mapping drive ?

    when on web,form6i can't call another form on network mapping drive on ias8 web server,but form 6.0 vs oas 4.0.7(or 4.0.8 )can,why?
    OS : windows nt 4.0 sp5

    Malay,
    In your application servers' oracle_home\forms90 there is a file named "formsweb.cfg" configure that file with all parameters and application path also.
    workingDirectory=C:\frms
    Regards
    Mayank sharma

  • Calling another form

    hi guys
    can anyone please tell what what the best way is to call another form, pass a parameter to it e.g patient id and execute query on the form based the id passed. basically display all related data as you open that form
    thanks

    Check the on line help for CALL_FORM....its got an example.
    REgards
    Grant ROnald
    Forms Product Management

  • Call another form with a button click (Oracle 10g)

    I have two forms. (One called Main Form and 2nd Called Notification summary)
    I want to call Main Form from notification summary. I have a unique column which is both in Main form and notification summary.
    I want to pass that unique column from notification summary to main form so that specific detail open in main form.
    Please suggest solution.
    Edited by: 871590 on Jul 11, 2011 4:29 PM

    Starting with a question: why do you need an own (main) form, if you need to call that form in another context, it's fine. If you will use this functionality only once, consider a second canvas (content or stacked, whatever fits better) or a second window within your form (notification).
    If its only on value you need to pass use a data parameter or a global variable; the first would be preferable to me.
    If there are more values in your column you may use global record group or (preferable to me) some kind of "temporary" table. It may be a global temporary table as provided by the oracle db or you are doing this with a normal permanent table. For the latter you will have slight higher amount of programming for organisational purposes.

  • Forms Help- calling another forms w/ parameters

    Hi- I am new to forms development.
    When calling a form, I see samples of code that use the 'execute' procedure, and then pass a few parameters.
    I try to open a different form, use this syntax, and I get errors...along the lines of the parameters are wrong.
    My question- is there a place in the application where I can find a listing of forms I can call, and what parameter names to use?
    Thanks

    hi
    Definitions : FORM parameters are variables of TYPE char,number, or date that you define
    at design time.
    Let us assume that I am calling form in this script.
    ** Example:   Calls a form, passing a parameter list if the
    **            parameter list exists.
       Here it passes the city_name and City_date;
    DECLARE
      pl_id       ParamList; 
      city_name VARCHAR2(30) := 'BANGALORE'; // You can assign dyanamically;
      city_date DATE := SYSDATE;
    BEGIN
      ** Try to lookup the 'TEMPDATA' parameter list
      pl_id := Get_Parameter_List('tempdata');
      IF NOT ID_NULL(pl_id) THEN
          Destroy_Parameter_List(pl_id);
      END IF;
      pl_id := CREATE_PARAMETER_LIST('tempdata');
      ADD_PARAMETER(pl_id,'p_city',TEXT_PARAMETER,city);
      ADD_PARAMETER(pl_id,'p_city_date',TEXT_PARAMETER,TO_CHAR(city_date));
      /* Please note that here you can pass only Text i.e., CHAR parameters, that
         means if it is other than CHAR you have to convert into CHAR function */
      CALL_FORM('XYZ_FORM', No_HIDE, NO_REPLACE, NO_QUERY_ONLY,pl_id);
    END IF;
    In the above program I am calling XYZ_FORM by passing parameter list of "TEMPDATA"
    which contains 2 parameters
        1. P_City
        2. P_city_date
    When you are receiving these parameters in the XYZ_FORM.
    You MUST HAVE these PARAMETERS in the XYZ_FORM.
    You can declare like this
    1. In XYZ_FORM, Click on PARAMETERS.
    2. Go to the property sheet of PARAMETER1
        Change the following things
        i) Name = P_CITY   /* It must be the same name that what you are passing */
        ii) Data Type = CHAR
        iii) Maximum Length = 30 //sample
        iv) Close the parameter sheet.
    /* Now you have created for one parameter */
    3. Similarly Create one more parameter for P_City_date by clicking "new".
        i)  Name = P_CITY_DATE   /* It must be the same name that what you are passing */
        ii) Data Type = DATE
        iii) Close the parameter sheet.
    -- Similarly you can have no. of parameters.
    To access the values of the above parameters in the XYZ_FORM
    append with :PARAMETER.
    That is
    You can access P_City in Xyz_form by   :PARAMETER.P_CITY
    Similarly for P_City_Date is :PARAMETER.P_CITY_DATE.
    I hope this is more than sufficient and it is acceptable to yousarah

  • BPM  - Crate new Transactio - Error when call another BPM

    Hi,
    I have an XI application with BPMs and the XI with SP8.
    The fist BPM has transformations and send steps and calls the second BPM.
    In the DEV environment we are applying SP12, now it's possible to disable the option "Create New Transaction" for Send and Transformation.
    I need to disable this option because, my application woks with bad performance and use 100% of the workprocess all the time.
    So, when I disabled this option, "Send Stets" whose call another BPMs didn't work fine. The transformations steps and send steps to R/3 worked fine.
    Does anybody know why send step to another BPM doesn't work when call another's BPMs?
    Best Regards,
    Fernando

    Interesting issue. Have never tried it personally and currently working on a SP 16 XI 3.0 system else would have given this a shot.
    If you do get an updates on this issue, pl let us know
    Regards
    Bhavesh

  • EX60 delays from 10 to 30 sec when calling another device

    This Terminal EX60 Works OK, but the only thing is that when calling another device takes too long for the other device to receive the call.  This EX60 is registered to CUCM 10.5.1 and its firmware is tc7.2.0
    ANY HINT?
    Thanks so much for any help.

    Are you dialing URI or extensions? If its extension, do you see some delay when dialing from a SIP phone on CUCM? You "might" be experiencing some post dial-delay. Try assiging an extension a URI and call this URI directly and see if you have a delay.

  • Different messages on COMMIT_FORM ,when form is opened from another form

    hi,
    problem is when open form from another form. After change some data and execute COMMIT_FORM, message is : No changes to apply.
    Interesting is that when exit and open form again, changes is SAVED !?.
    If open that form directly, message is that like should be ( Transaction completed...).
    Has anyone idea where is problem?

    Hello,
    While calling the form try with 'DO_REPLACE' option.
    Thank U.

  • Calling another Form (Sol;ved)

    Gurus,
    I am in one form and when I click a button say "Next", I have to open another Form. The calling form should be closed.
    Can you help me with supporting materials to accomplish this?
    Also I need to know what are the options available with the Transaction which happened in the calling from before loading the called Form.
    Thanks in advance.
    Message was edited by:
    Forms

    Hi,
    Refer to OPEN_FORM,CLOSE_FORM,NEW_FORM built-ins in the form builder help menu.You have all the examples there for reference.
    Thanks

  • Called form crashes, when called with default option

    Here is the problem statement.
    My problem is regarding the called_form built-in function of Oracle forms.
    I am calling call_form within a loop.
    call_form('schdule_task');
    In first iteration it opens the called form and when the user clicks on exit button it comes back to the calling form and starts next iteration.But in next iteration the called form comes up and crashes immediately, causing the application to crash.
    The calling form does not get a chance to become visible because by default call_form executes with 'HIDE'(hide the calling form) option.
    Now if I execute the above mentioned call_form statement with "NO_HIDE" option then the called form does not crash in any of the iteration and the loop runs fine till the end.
    call_form('schdule_task',NO_HIDE);
    What can be the problem? Is it related to call_form call or something else?

    Here is the problem statement.
    My problem is regarding the called_form built-in function of Oracle forms.
    I am calling call_form within a loop.
    call_form('schdule_task');
    In first iteration it opens the called form and when the user clicks on exit button it comes back to the calling form and starts next iteration.But in next iteration the called form comes up and crashes immediately, causing the application to crash.
    The calling form does not get a chance to become visible because by default call_form executes with 'HIDE'(hide the calling form) option.
    Now if I execute the above mentioned call_form statement with "NO_HIDE" option then the called form does not crash in any of the iteration and the loop runs fine till the end.
    call_form('schdule_task',NO_HIDE);
    What can be the problem? Is it related to call_form call or something else?

Maybe you are looking for