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!

Similar Messages

  • 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

  • How to move cursor to a particular field in a form when the form opens

    Hi All,
    Using Forms Personalization how to move the cursor to a particular field in a form when the form opens.We are using Oracle Applications 11.5.10.2
    Please let me know as soon as possible.
    Thanks,
    --John.                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi Satya,
    Try the following
    Open the forms personalization window
    Seq: 10
    description : Move cursor
    Level : Function
    On Condition Tab-
    Trigger Event : when-new-item-instance
    Trigger Object:- (The field on which the cursor is appearing now when you open the form ) for eg : If I am working on a vendor Master form in that case it would be -VNDR.VENDOR_NAME_MIR.
    Processing Mode : Both
    Context:
    whatever context you want to do it respoansibility level or user level.
    On the Actions Tab
    Seq: 1
    Type: Bulletin
    Bulletin type : GO_ITEM
    Argument : The field to which you want to navigate to. (In my case I want to navigate to Alternate name on the Vendor master form so it would be VNDR.VENDOR_NAME_ALT_MIR).
    see if it works for you.
    cheers,
    Ankur

  • Possible to supress dialog 'save form' when closing form

    Hi All
    Is it possible to supress dialog 'save form' when closing form? It is neccessary that it works even when using the close X in top right of the reader window.. any ideas/solutions?

    [email protected] wrote:
    > Hi All
    >
    > Is it possible to supress dialog 'save form' when closing form? It is neccessary that it works even when using the close X in top right of the reader window.. any ideas/solutions?
    Do you want to automatically save the document, or do you want to skip the save altogether?
    Justin Klei
    Cardinal Solutions Group
    www.cardinalsolutions.com

  • 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

  • Acrobat XI hangs when adding a response from distributed form, when specific form field is filled

    As the question says, when using the distribute form functionality of Acrobat, it hangs at the step of importing or adding a filled form, when a specific field on the form is filled.  It happens whether the tracker automatically detects it when I open the distributed form and asks me to add it, or I manually try to add it in the responses form. Here's the screenshot of when I tried manually adding it.  The first line is the one that hangs and is missing all fields except that "Approved" check box.  But it's the last field "ApprovedDate" that makes it hangs if it's filled in the form.  The Progress dialog just stays there forever and I can't click cancel.  When it tries to add it automatically, nothing appears on the screen, the form just stays open and the tracker doesn't come up.  I'm on Windows 7, Acrobat XI Pro.  I can send you the form if needed.
    Edit: I investigated further and there were Java scripts associated with that date field.  These would have been added while creating the form in Acrobat; I don't remember how exactly, but I only meant to validate the date format.  I've removed all the scripts and reset the desired date format on the field and it seems to work now.

    I use Mavericks and Acrobat XI. I haven't had any issues so far.

  • Does Firefox facilitate my filling out of online forms when the form asks for standard information such as name, address, email, phone number. I just switched over from Goole Chrome which had this feature.

    Google Chrome would offer dropdown prompts for this information as I started entering the information. I would simply highlight the correct prompt and hit enter and the information would be entered throughout the online form.

    See:
    *Tools > Options > Privacy > History: "Remember search and form history"
    *https://support.mozilla.com/kb/Form+autocomplete
    *Autofill Forms: https://addons.mozilla.org/firefox/addon/autofill-forms/
    *http://autofillforms.mozdev.org/drupal/content/main-page

  • My form will not come out of query mode. Why?

    I have a simple form with 2 canvases the second canvas apears as
    a modal window and inherits the main menu (6i Smartbar menu).
    I place the modal screen in query mode and execute query, if the
    form returns no records it then becomes stuck in query mode. The
    cancel query mode button returns the message
    FRM 41009 Function Key not allowed. I really don't see why this
    key should not work, Is this a bug in forms 6i?
    The only work around make the second canvas a form in it's own
    right which is a rather un-necessary solution.
    Regards
    Oliver

    Try to do Soft Rest to Get it Back on.. If you can once you tried my first suggestion Run your Razr in Safe Mode to see if a Third Party app is Causing the Issue. Here are the instructions for a Soft Reset and  Running Safe Mode
    Soft Reset - DROID RAZR / RAZR MAXX by MOTOROLA
    A soft reset is the most useful tool for resolving a variety of issues. In most cases, a soft reset will not affect data on the device, unless the battery is very low.
    Press and hold power button + volume down key until the device powers off then release.
    What is safe mode and how do I use it with the DROID RAZR?
    Safe mode is a method that allows the device to run without non-essential applications. This is beneficial for troubleshooting 3rd party applications.
    Enable Safe mode
    Power the device off.
    Press and hold the Power button then select Power off.
    Power the device on.
    Press and momentarily hold the Power button.
    When the Motorola Dual Core screen appears, simultaneously press and hold Volume Up / Down keys.
    Continue to hold the Volume Up / Down keys until Safe mode appears in the lower left.
    Disable Safe mode
    Power the device off.
    Press and hold the Power button then select Power off.
    Power the device on.
    Press the Power button.

  • Another problem when running form 9i

    hi,
    I have install forms 9i R2 succeefully on my PC.
    I nave OC4J up and running.
    When i build any form and run it, IE tell me an error
    "MD5 digest error for oracle/ewt/lwAWT/lwWindow/LWWindow.class."
    and "load: class oracle.forms.engine.Main not found." when click on "reload" after the first error.
    thanks in advice.

    Hi, Andrey
    did you solve problem?
    I've also install 9iAS and 9iDS.
    I've made simple form and .... I can't check it, because "The page cannot be displayed"
    Do you know why?

  • Cannot submit dynamic form when the form go to the same URL

    Hi,
    I am using Safari 5.1 (7534.50). I am having problem on dynamic form submission.
    When I click on the button 1 on the following form, it will open a page in a new window.
    After that, if I push the button 2, the form cannot be submit and it won't open a new page.
    If I push the button 1 again, the form cannot be submit again either.
    <form target="_blank" action="http://www.domain.com" method="get" name="prForm">
    <input value="0" name="test">
    </form>
    <a href="javascript:submitForm(1);">Submit Button 1 </a>
    <a href="javascript:submitForm(2);">Submit Button 2</a>
    <script type="text/javascript" language="javascript">
    function submitForm(val) {
        var pf = document.prForm;
        pf['test'].value = val;
        pf.submit();
    </script>
    This behaviour has been considered as a bug in Google Chrome and has currently been fixed.
    I wonder if Apple will fix the same bug in the future?

    Might make this easier to answer if you can see the page in question:
    http://www.whataretheyreallylike.com/review.html
    Your thoughts, please?

  • Change the value of a field in a form when the form is displayed

    Hello
    I have a report which has a link to a form for updating the records. I have used a link to the form from report which displays the the record to be updated i.e it gets default values from the report. I need to change one of these values at the time of displaying the form. The set_value in the 'before displaying the page' section doesn't change the vaue displayed in the form. I tried in other 'Advanced pl/sql' sections provided but didn't succeed.
    Thank you
    Jayasree

    hi,
    let's call the new value u want to set "NewValue"
    insert this code in the before displayin' the page
    htp.p('<script language="Javascript1.1">
    function defaultValue(fieldname)
    var thefield;
    for( var v=0; v < document.forms[0].elements.length; v++)
    // get the right field
    if (document.forms[0].elements[v].name.indexOf(fieldname) >= 0 )
    thefield = document.forms[0].elements[v];
                        thefield.value='''||NewValue||''';
    break;
    </script>');
    in the after displaying the page section call the function above with the appropriate field:
    htp.p('<script language=javascript1.1>
    defaultValue(''Field_Name'');
    </script>');
    where Field_name is the name of the field u want to change the value!
    Mohamed

  • Webpage PDF states This file is a PDF form when no form fields in actual pdf

    I have an acrobat.com account, and when uploading and displaying pdf's in a webpage, even when there are no form fields in the pdf it states that "This file is a PDF form, please download and fill in"
    Even creating a new pdf this state seems to now be the default in Acrobat Pro 8 on my Mac, how do i reset back to defaults so this does not happen?
    See https://acrobat.com/#d=5p8gk446VqZNgeNfbRc8-w
    For what i mean...there are no fields in this pdf....when saving an existing pdf or creating a new one this now happens.
    many thanks

    http://screencast.com/t/YTdlYWM5
    That's not the only problem looks like adobe.com has problems as well. IF the same site is spoofed with FF useragent, works perfect.

  • Cannot add new records through VC form when consuming IP write back query

    I have created a planning application in IP and created a Form in VC (CE 7.1). I am not able to create new records in VC Form and save it back to the cube like the traditional excel form on IP does. I have attached a document with every step that i did as a screen shot in designing my model. The writing back of data using the Form works if i have preexisting data in the planning cube and if i am only changing the values of the existing data records it works great. I could consume the planning functions that i created and they work well within VC. But if i want to create new records in a empty planning cube it gives me error unlike planning in excel analyser lets me save it back to the cube. I have tested the same query in Excel Analyser and created new records and saved it back in the cube. Any help on this is greatly appreciated.
    [http://www.mediafire.com/?sharekey=f1bc9aa662da6a86d956df2962098fcbe04e75f6e8ebb871]
    Thanks.
    Edited by: BI GUYS on Sep 28, 2009 2:00 PM

    Hi PradeeP,
    1. The BI Query itself has to support the entries of new lines. This is described in note 1149346.
    However, if the Query allows entering new lines in the BEx Analyzer, then this prerequisite is fulfilled.
    2. In the BI Query wizard in VC in the u201CChoose Presentationsu201D step, you have to include  the key presentation for the characteristics.
    If 1 and 2 are fulfilled and you still have the problem, it is strange...
    Does the problem also occur if you create new records in a cube that already shows some data in the table view?
    Regards,
    Talia

  • When-new-form-Instance trigger raised unhandled exception ORA-04062

    Hi,
    We are facing ORA-04062 (FRM-40735 WHEN-NEW-FORM-INSTANCE trigger raised unhandled exception ORA 04062) while trying to run the first form of our Application.
    We are using a PL/SQL LIBRARY(.pll) for forms.
    We are using 10G Application Server,10G DB and Oracle 9i Forms.
    DB Version----10.1.0.4.0
    Application Server--9.0.4.0
    During compilation, we are following the below steps:
    1. Compile the .pll
    2.Compile Forms.
    When we are running these compiled version of forms and pll in Development server where we are compiling it,we are not facing any error.
    But when we are taking these compiled version of forms and pll to the Production Server,we are getting the above error.
    When we are compiling the .pll in Production server, Application runs fine.
    But we should not compile form or pll in Production server.
    Searching in Metalink(Note:73506.1) , we find a solution that remote_dependency_mode if set to signature this problem may be resolved.
    We tried that by chaning ' REMOTE_DEPENDENCIES_MODE=SIGNATURE' in Init.ora file in both Production and Development server.
    But the error still persist.
    I think the problem is regarding .pll.Because for the time being to test the application,I compiled the pll in Production and we didnot get any error while running the Application.
    But whenever we are tring to deploy the compiled version of pll (compiling in Development sever) and to run the application in Production, we are facing the error.
    Also, pll calls one standard database package in SYS.That standard package has VALID status both in Production and in Development.
    We donot have priviledge to change/compile that package.So,we didnot change anything in that package. We didnot change anything in .pll also.
    We are upgrading our forms from 6i to 9i.And now when we are trying to deploy it to Production we are facing ORA-04062 error.
    Can anyone please help ?

    Exactly what procedure or package in SYS are you calling that causes this problem?
    <p>Are both test and production databases at the same version?
    <p>Do you know what procedure or package is named in the error? If not, then you need to improve your on-error trigger processing. I use a PLL_On_Error trigger to capture and improve a number of Oracle messages. It is posted here:
    <p> Re: FRM-40735:Pre_Insert trigger raised unhandled exception ORA-20011
    <p>Note especially the part near the end that deals with FRM-40735. (Not sure, but you may also want to display DBMS_ERROR_TEXT in your situation.)
    <p>If that doesn't help find the actual problem, I would pull out my Re: Zdebug -- Download a Forms debugging message tool, and add messages before every call in the when-new-form-instance process to zero-in on the offending call.
    <p>If it really IS a call to a system process, I would then experiment with creating a server-side package or stored procedure that calls the process, and then call that stored procedure from my form. That way, you effectively insulate your form from system differences.

  • Use subflow or redirect step when calling another script

    I have a main AA script and it calls another script when caller press option 6.  When a caller presss 6 it is only transferring the call to the sub script.  it does not return any values to the main script.
    In this situation, is it better to use subflow or redirect step.  i am think redirect step but just want to check with the user community.
    thanks in advance.

    Either will work. Here are a few thoughts to consider in no particular order:
    Subflows count toward the originally triggered scripts' maximum step count. If you have a lot of steps, this may result in an exception. Redirecting the call restarts this counter since the newly triggered script will have its own counter.
    NOTE: You might think that this is exactly why the Trigger Application step in Synchronous mode was created for. Alas, there is a bug which renders this useless in 7.0(1): CSCtd72562
    Redirecting the call will result in the user hearing ringback. This would occur because of the recommended two-second delay step following the Accept step of a step to prevent a race condition. I find this to be irritating enough to shy away from it mid-way through an IVR if possible.
    Subflows are more difficult to debug. You need to have sufficient code embedded in them such that you can trigger and reactively debug them.
    Be sure that the redirect destination of an actual CCX Trigger (CTI Route Point). Do not set it to a value in UCM that is translated or forwarded back to CCX. This results in a race condition which CCX does not handle well.
    If you were asking me as an individual my answer would be this: Is the code small enough and not reused elsewhere? If yes, then put it in the first script and avoid this topic all together. If it's reused in a bunch of places from multiple scripts and does not represent a large quantity of steps: use a subflow. Otherwise use Trigger Application if you're on a new enough version or Call Redirect if you're not.

Maybe you are looking for