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 <option> 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

Similar Messages

  • TS4113 Mac mini looses audio output through HDMI after being in 'sleep mode'

    Since a month or so, my Mac mini is unable to send audio through HDMI output after being in 'sleep mode'.
    Recently this was no problem, but now I cannot hear anything after unsleeping (unless I reboot fully).
    Please help.

    This is not just a Mac Mini problem.  I've found comments from people with all kinds of Mac, with any kind of external sound device, who all have this same issue.
    The common factor is Mountain Lion.
    Apparently there is a new build (12F42) which is supposed to fix this.
    http://www.gadgetguide4u.com/new-os-x-1085-build-number-12f42.html
    Apple released it to their employees on the 25th Sept.
    Here's hoping that build is available for the rest of us soon ...

  • Hotkey "Create Record" while the form is in enter-query-mode

    pressing the hotkey F6 for create-record while the block is in enter-query-mode results in the error - message:
    Function key not allowed. Press Ctrl+F1 for list of valid keys.
    The error-occurs although I created a trigger KEY-CREREC. The trigger isn't executed
    In older Forms versions the behaviour was different. Is there a way to let the form work like in the old versions?

    thnx for reply.Problem not solved.
    i m trying to assign the value of text item to a variable in pre-query trigger. i m able to get the value into variable when the string in the text item does not startwith <,>,=. but when the string starts with any one of the operator (<,>,=) it gives error.
    lenth of variable is 1000 charaters, and text item's max leanth is just 4 charactres.

  • Open multiple forms, few in Enter-Query mode

    Hi All,
    I want to open multiple forms from a form using open_form built-in. If user clicks on different items of the parent form different child forms are invoked.
    But if one child form is opened in Enter-Query mode (I have 'enter_query;' in its when-new-form-instance) it does not allow to put focus back on parent form and invoke other forms until I execute_query in child form or close the child form.
    Waiting for your replies. Thanks in advance.
    Regards
    Mona

    Hi Friends,
    Has anybody ever faced this problem. Please reply.
    Regards

  • Form not going in Query mode

    hello freinds, Happy Christmas ..!
    i have a Master_Detail form, FORM2
    "LN_HEAD" table, that has 3 primary key;
    ln_code
    ln_no
    ln_emp_code
    "LN_DET" table has foreign key; Relation is set at form design time.
    lnd_ln_code
    lnd_ln_no
    lnd_ln_emp_code
    Form2 is called from Form1 on press of a button "bt1"
    When-BT1_press, i am only initializing :GLOBAL.LN_CODE = 'LCD'
    in FORM2 PRE-FORM
    I am initializing LN_CODE := :GLOBAL.LN_CODE and setting initial value property of the field LN_CODE to :GLOBAL.LN_CODE
    when the form displayed for the first time,,and i press F7 or Query button,form is going in field LN_EMP_CODE and
    asking me to enter LN_EMP_CODE, as it is required field.
    i also tried settng LN_EMP_CODE required property to false at design time and at WNFI, but then its firing WVI of LN_EMP_CODE
    and raises form-failure message "emp does not exists'.
    at form and ln_head block level i gave trigeer KEY-ENTQRY
    CLEAR_RECORD;
    CLEAR_BLOCK(NO_VALIDATE);
    ENTER_QUERY;
    but still not going in query mode. whats the matter? Has any1 face this issue before?
    please advice me.
    *on my form; 1st field is LN_DATE, 2nd LN_APPLY_DATE, 3rd LN_NO (auto-generated, enabled property set false at WNFI) and*
    *4rth is LN_EMP_CODE*

    I am initializing LN_CODE := :GLOBAL.LN_CODEWhat is LN_CODE in this initialization? Is it an item in one of the blocks of your form?

  • Cannot exit form after on-check-delete-master trigger fires.

    Hi
    I have a master-detail form.
    I have used the default on-check-delete-master trigger that gets generated by forms when creating a relation between master and detail data blocks.
    After trying to delete a master record when detail records exists for this master record, I cannot exit the form from a when-button-pressed trigger created in the master block.
    I know that the on-check-delete-master trigger fires , which calls the "raise form_trigger_failure" function.
    This then prevents me from exiting the form from an exit button that I created.
    If I try exiting from the default menu "exit" icon, I first am prompted to save or cancel the changes I have made - even if there are NO changes made to the form.
    Plse someone suggest a workaround asap.
    Thanks

    In the future, please include all related product versions (not product names - we need versions numbers). Without knowing the product version generally we can only guess.
    I have tested what you described in Forms 10.1.2.3 (with Forms Bundle Patch 9593176 & 11710576) and it works as expected. The query is cancelled. Given that it works in this version, I suspect it would also work correctly in the latest version which is 11.1.2.0

  • Open APPS form login in  enter-query mode

    Hello all
    i'm confused if this is an EBS or Forms post . So after having no answer in EBS i decided to post it again in forms.
    apps version 11.5
    i've created a shourtcut link that opens a specific apps form on specific responsability like
    http://<server_name>:8001/OA_HTML/RF.jsp?function_id=4893&resp_id=50239&resp_appl_id=551&security_group_id=0&lang_code=US
    the problem now that i want to send parameters for this form and execute query on this parameter
    so
    is there a way to open apps form and send parameters then execute-query directly from shourtcut or link created on the desktop ?
    appreciate your efforts.
    Respectfully
    Khaled Farouk

    Hello all
    after along of search i'm so neear of the answer but i need some assistant from experts.
    i've reached this link which open a form and query on the data i need .
    http://<server_name>:8001/OA_HTML/RF.jsp?function_id=1634&resp_id=50244&resp_appl_id=-1&security_group_id=0&lang_code=US&params=U-iFUMNeed-3nkNG7BzN1Qr5evq7vJslGk3i3pf0ggqqSfgqDmLrk-JON9n4DZe6jMkSYPz2nfRW6va3P0GqgNlHfEu8pw6EWDZNq-MSgU1WFM5Qux.dsjTAX5J3jwjn&oas=_vSHxhm0ru79y-0HO91I_Q..
    but i'm still have a problem. how to change the parameter part? because this link is generated from the oracle Apps
    i want to change this part
    &params=U-iFUMNeed-3nkNG7BzN1Qr5evq7vJslGk3i3pf0ggqqSfgqDmLrk-JON9n4DZe6jMkSYPz2nfRW6va3P0GqgNlHfEu8pw6EWDZNq-MSgU1WFM5Qux.dsjTAX5J3jwjn
    thank all
    wiiling to have answer
    Respectfully
    Khaled Farouk

  • FRM-92050 error when trying to open form after switching to HTTP mode

    Hi all,
    Yesterday, I installed Oracle Applications 11i on Red Hat Enterprise Linux ES 4 and forms were working correctly in the default mode, which is native (socket). Following steps 4 and 5 in [Doc 201340.1|https://metalink2.oracle.com/metalink/plsql/f?p=130:14:6398415066875997204::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,201340.1,1,1,1,helvetica], I enabled HTTP mode, and now my forms are not working. When I open a form now, I get this error:
    FRM-92050: Failed to connect to the Server: /forms/formservlet:-1
    Details...
    Java Exception:
    java.io.IOException: Negative content-length from http://...
    I've searched MetaLink and the forums for this error and all the results I found deal with HTTP headers or cookies being corrupted, usually by an intermediate networking device (web proxy, web cache, SSL accelerator, etc.). I am not using anything of the sort - the client is connecting directly to the Oracle server.
    I checked the Apache error log and this is what I see:
    [Thu May 14 09:10:28 2009] [error] [client 10.11.1.114] client denied by server configuration: /work/oracle/viscomn/java/java
    [Thu May 14 09:10:28 2009] [error] [client 10.11.1.114] client denied by server configuration: /work/oracle/viscomn/java/java
    [Thu May 14 09:10:33 2009] [error] [client 10.11.1.114] File does not exist: /work/oracle/viscomn/java/oracle/forms/icons/oracle_logo_light.gif
    [Thu May 14 09:10:33 2009] [error] [client 10.11.1.114] File does not exist: /work/oracle/viscomn/java/oracle/forms/icons/oracle_logo_light.gif
    [Thu May 14 09:10:34 2009] [error] [client 10.11.1.114] File does not exist: /work/oracle/viscomn/portal/VIS_gen1-cs49/forms/formservlet
    [Thu May 14 09:10:34 2009] [error] [client 10.11.1.114] client denied by server configuration: /work/oracle/viscomn/java/oracle/ewt
    [Thu May 14 09:10:34 2009] [error] [client 10.11.1.114] client denied by server configuration: /work/oracle/viscomn/java/oracle/ewt
    [Thu May 14 09:10:34 2009] [error] [client 10.11.1.114] File does not exist: /work/oracle/viscomn/java/oracle/ewt/alert/resource/AlertBundle_en_US.properties
    I don't like the look of those "client denied by server configuration" messages. What's also odd is that the two files referenced by those messages do not exist on the file system:
    [oracle@gen1-cs49 logs]$ cat /work/oracle/viscomn/java/java
    cat: /work/oracle/viscomn/java/java: No such file or directory
    [oracle@gen1-cs49 logs]$ cat /work/oracle/viscomn/java/oracle/ewt
    cat: /work/oracle/viscomn/java/oracle/ewt: No such file or directory
    Any ideas? Are there any other logfiles I should be checking?

    First, login to System Administrator responsibility, then navigate to Concurrent > Manager > Administer > Processes > Internal Manager LogAh, OK - I was able to open the form and I see a table of managers and services and whatnot, and I see an entry for "Internal Manager", but I don't see any way to view the log. I even tried opening the details of the "Internal Manager" entry and the only button there is "Diagnostics".
    Search for VIS_*.mgr -- Sorry for the typo!Ah, that would explain it. Here are the contents of the correct logfile:
    [oracle@gen1-cs49 VIS_gen1-cs49]$ cat VIS_0514.mgr
    ========================================================================
    Starting VIS_0514@VIS Internal Concurrent Manager -- shell process ID 4314
    logfile=/work/oracle/viscomn/admin/log/VIS_gen1-cs49/VIS_0514.mgr
    PRINTER=noprint
    mailto=oracle
    restart=N
    diag=N
    sleep=60 (default)
    pmon=20 (default)
    quesiz=1 (default)
    Routine &ROUTINE has attempted to start the internal concurrent manager. The ICM is already running. Contact you system administrator for further assistance.afpdlrq received an unsuccessful result from PL/SQL procedure or function FND_DCP.Request_Session_Lock.
    Routine FND_DCP.REQUEST_SESSION_LOCK received a result code of 1 from the call to DBMS_LOCK.Request.
    Possible DBMS_LOCK.Request resultCall to establish_icm failed
    The Internal Concurrent Manager has encountered an error.
    Review concurrent manager log file for more detailed information. : 14-MAY-2009 11:06:48 -
    Shutting down Internal Concurrent Manager : 14-MAY-2009 11:06:48
    List of errors encountered:
    _ 1 _
    Routine AFPCSQ encountered an ORACLE error. .
    Review your error messages for the cause of the error. (=<POINTER>)
    List of errors encountered:
    _ 1 _
    Routine AFPCAL received failure code while parsing or running your
    concurrent program CPMGR
    Review your concurrent request log file for more detailed information.
    Make sure you are passing arguments in the correct format.
    The VIS_0514@VIS internal concurrent manager has terminated with status 1 - giving up.

  • 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

  • Slow computer works after being in Safe Mode?

    I'm puzzled and I'm hoping someone can explain this.
    There was a user complaining about poor performance on his Dell Latitude 5530 with Windows 7 Pro. He said it started after some updates loaded on Saturday and has been like that since.
    I remoted in and it was indeed extremely sluggish. In task manager the CPU Usage was consistently near or at 100%. I looked at what I could think of and couldn't see anything obvious. Couldn't find any Malware, hardware passed diags, chkdsk ran and didn't
    find anything, checked the startup folder and MSConfig and didn't see anything obvious but I admit I'm not quite sure what to look for.
    I had him boot into Safe Mode and it was better but still sluggish with a CPU usage of around 35%. I finally gave up and we made plans to have him send it in for further testing or reimaging. Then, on my way home, I got a call from him and he said he restarted
    in normal mode and it's working fine now with a CPU usage around 1%.
    The only thing I can think of is that something might have gotten hung up and Safe Mode allowed it to un-hang? I guess I'll see if it's still working tomorrow but I would be greateful if anyone has an explanation or could offer some advice.
    Thanks.
    Chris Hansen

    TH
    If the user experiences a slow down again you can have them install then run windows performance recorder (if they have the skillset).  With the trace we should be able to find the cause.
    In order to diagnose your problem we need to run Windows performance toolkit the instructions for which can be found in this
    wiki
    If you have any questions feel free to ask
    Please run the trace when you are experiencing the problem
    Wanikiya and Dyami--Team Zigzag

  • IPhone 5 hangs after being on silent mode and doesn't come back normal until I switch it off and switch it back on.

    My phone's just a month old and I've encountered this issue for three times in row. I put my phone on silent at night. Following morning, when I get calls while the phone is on silent mode:
    1. I put it back on normal mode but phone remains silent.
    2. I swipe across the screen to receive the call, I'm able to swipe but call doesn't start.
    3. Touchscreen becomes slow in response.
    The only thing works is switching off the phone and switshing it back on to get it back to normal. This has happened three times in row and it's surprising becuse the phone's new and has not been damaged at all. Experiencing this after using for just about a month is a nightmare. What's wrong with my phone?

    I have an iphone 3 and the same problem. Some of the 2008 posts on a similar title suggest a restore. I need to save all of my 700+ photos somewhere before I attempt that process.

  • How to switch on MacBookPro monitor instantly after being in clamshell mode

    So I use Skype Video a lot, and I use a Samsung external monitor.
    The problem is that I have my MacBook in Clamshell mode nearly all the time, and at the moment, when I get a Skype video call, all I can do is open the screen on the MacBook and just have a black screen, (all video goes to the Samsung) so that when I want to look at the person I am talking to, I have to look away from the camera because the MacBook sits to the side of the Samsung.
    My question is, how would I instantly switch on the MacBooks screen when receiving a video call and then have the Skype Video immediately under the camera?
    Would this involve writing a script of some kind or does anyone know of any apps to download?

    I'm not sure that there's a reasonable fix for you. However, I would suggest that you use your MBP in a dual monitor mode. It gives you a ton more desktop space, and would immediately solve your problem. I use Skype video that way (although I have an Apple LED monitor, so it has an iSight camera on it).

  • Sometimes I cannot get my apple tv to work after being in sleep mode. I then have to turn the power on and off to make it work. Note the white light will come one when I try and wake it up. But, the light will not blink.

    Most of the time when I wake up my apple tv, the white light will come on, but will not blink when I have this problem.  I then have to pull the plug and then put the plug back in the socket, then it will work. 

    How long have you had it? If it is still under warranty, you can have Apple help you out completely. If it is not under warranty, Apple might still be able to send you articles to assist you in this manner. Check "Contact Us" on any page at the bottom.

  • Set search text when form is in query mode

    Hi forum members,
    is it possible to set the value of a textfield when a form is in query mode?
    In our form you can enter query mode with F7 and execute the query with F8.
    When you go back to query mode with F7 and then press F7 again, the search criteria of the past query appears.
    Now in our form there is an alternativ search, that can be executed in query mode with F9. A different search canvas appears then with a more detailed search.
    When I go back from that canvas to the initial canvas, change to query mode with F7 and try to get the last search criteria with F7, not the last search criteria (from F9 search) appears, but the first one (F8 search).
    I have tried to copy the search value into an invisible textfield and then copy it back to the search field when F7 is pressed after the alternative search canvas was closed.
    Instead of appearing in the search field, a new record is created in background.
    Is there any other way to set the value of a textfield in query mode?
    Thanks,
    Marco

    Hi Craig,
    thank you for this hint.
    Unfortunately it does not solve my problem.
    My goal is to fill the search fields with values when they are in query mode.
    I try to explain it step by step:
    Step 1
    - In my Form I change to query mode with F7.
    - I fill a search field, e.g. Name: TIGER.
    - Then I execute the search with F8.
    - Record is displayed in the block
    Step 2
    - I press the F7 Button to change to query mode again
    - Now when I press F7 again, the search values from the last search (TIGER) appear (I think it is a standard forms functionality, isn't it?)
    - I execute the search with F8
    - Record is displayed
    Step 3
    - Again I change to query mode with F7
    - I fill the search field (this time Name: SCOTT)
    - Now advanced search is executed with F9
    - A special search canvas opens over the form with result records and more detailed information to the result
    - I close the search canvas
    Step 4
    - Again I change to query mode by pressing F7
    - I want to get the search value from the last search (SCOTT) by pressing F7 again
    - Value from the first search appears (TIGER)
    My goal is to save the search value from step 3 anywhere (in a variable or copy field or something) and get it back in step 4 when the form is in query mode.
    It seems to me that it is not possible to fill fields that are in query mode, is that right?
    Thanks a lot!
    Marco

  • How to put the form in Query mode

    Hello
    Please let me know how to put the form or block in Query mode , so that when i run the form it should be in Query mode . I have seen properties of SET_FORM_PROPERTY and SET_BLOCK_PROPERTY but cannot find one
    Thanks

    QUERY mode? Did you mean, that you can only QUERY without changing data.
    This is the QUERY-ONLY-mode, which can be started e.g. call_form
    this is the help for that topic:
    PROCEDURE CALL_FORM
    (formmodule_name VARCHAR2,
    display NUMBER,
    switch_menu NUMBER,
    query_mode NUMBER,
    data_mode NUMBER,
    paramlist_name VARCHAR2);
    query_mode     
    NO_QUERY_ONLY (The default.) Form Builder will run the indicated form in normal mode, allowing the end user to perform inserts, updates, and deletes from within the called form.
    QUERY_ONLY Form Builder will run the indicated form in query-only mode, allowing the end user to query, but not to insert, update, or delete records.

Maybe you are looking for

  • Hp 7110 all-in-one - not printing

    After a paper jam recently, when I try to print a document the ink carriage moves from left to right like it is getting ready to print, then stays on far right and makes loud staccato noises.  The status shows ready to print, but it won't. I would ra

  • Changing views in Mail

    Hi, I hope this is the right section. Couldn't find a dedicated Mail one. I have just reinstalled everything to get my MacBook Pro running 10.8. When I open Mail I get a list of emails, which is fine. But I used to have the window split 50/50 with th

  • Problems with VO's query, clause: QRSLT

    Hi Gurus, I got a problem here with a vo's query, the query its fine running in sqldeveloper and toad, but when I ran it on VO's the query doesn't show me any result, what can I do to fix this problem? Please, I hope you can help me with this one, I'

  • Scrollable Result Set in Oracle 8.1.6 ?

    The Oracle8i Release 2 New Features Summary says:: JDBC 2.0 core support plus connection pooling and distributed transactions. My Question is : 8.1.6 provide full JDBC 2.0 Support or just some features not specified? Is there support for an scrollabl

  • Problem in displaying o/p in Table Control

    Hi , while displaying in table control. its is displaying  line twice. I have some contains in iti itab. which i am displaying itf itab through table control.. i have coded like this... PROCESS BEFORE OUTPUT. MODULE STATUS_0112. LOOP at itf   WITH CO