Set Form To Query Mode When Particular Window Activated

I have a form with multiple windows. I have one window that when activated I want the form to be in query mode. This window functions as a more user-friendly search method. So when the user enters the window it will be in query mode, they will be able to enter data into a field, and then click a button I've created to execute the query and return results. I know I can use the when_window_activated built in, but I am not sure of the proper trigger code to accomplish what I've described below. I am also not sure of what level to place such a trigger. Any help is greatly appreciated. Thanks, Jason.

You are correct, the when-window-activated trigger will only work at the form level.
Your suggestion would work if the window in question was the initial window activated at form start up. However it is not the startup window. I am calling this window via a button from the startup window. When the button is activated I close my startup window (which is basically a menu window that takes the user to other windows based on the button they selected) and activate the window associated with the selected button.
So including the form level when-window-activated trigger as suggested causes both my selected startup window (set in the form properties) and the window I wish to be in query mode to launch...and I receive a FRM-41009: Function key not allowed error.
Regards,
Jason

Similar Messages

  • Open form in query mode

    I want to be able to open a form in query mode - is there any way to set this?
    I am using Designer and Headstart.
    Thanks

    Hi Cathy,
    You can do this. See the help topic: About the startup query mode of generated forms.
    Rgds
    Susan
    Oracle Designer Product Management

  • Suppress the enter-query mode when no-data-found after execute a query.

    HI,
    Greetings of the day, Can any one suggest me that how to Suppress the enter-query mode when no-data-found after execute a query on the form by a button.
    whenever i execute query on form and result is no data found then form :system.mode is still in enter-query mode.
    i want that if result is no data found then form comes back it initial state.
    i will thank full of him who will help me..
    Thanks in Advance..

    Put this in your Key-ExeQry trigger:Execute_Query;
    If Get_block_property(:System.current_block,query_hits)=0 then
      Exit_form; --this cancels the Enter-Query mode; Does not exit the form.
    End if;You may want to trap and prevent the "FRM-40353: Query cancelled" message, and change the "FRM-40301: Query caused no records to be retrieved. Re-Enter" message. To do that, you need an On-Message form-level trigger:Declare
      Msg_Code Number        := MESSAGE_CODE;
      MSG      Varchar2(150) := SUBSTR('   '||MESSAGE_TYPE||'-'
                             ||TO_CHAR(Msg_Code)||': '||MESSAGE_TEXT,1,150);
    BEGIN
      If Msg_Code=40301 then
           -- 40301: Query caused no records to be retrieved. Re-Enter
        Message('  NO RECORDS FOUND',No_acknowledge);
      Elsif Msg_Code=40353 then -- Query cancelled.
        null;
      Else
        MESSAGE(MSG,NO_ACKNOWLEDGE);
      End if;
    End;

  • How do I get and pass Master-Detail rowid to another form in query mode?

    I am trying to get the rowid of my master record passed to
    another form in query mode. This is necessary because, I need to
    have a way to show other detail tables for my master record. I
    have been successful in calling the other forms, but only if I
    hard code the rowid(or Primary Key).
    Ultimately a "Tabbed" HTML table for each supporting detail
    table that I have would be perfect. Any help would be greatly
    appreciated. Thanks.

    correct me if I am wrong, is this a 9iAS (Application Server)
    related question? This forum is for 9iAS only.
    Regards,
    --Tao

  • Developering ADF form in query mode (Oracle forms simulation)

    Hi,
    we have a requirement for developing the existing Oracle form using Oracle ADF. The existing Oracle form displays the form in query mode by default. We can enter the search criteria in any of the text fields and then execute query to get the results. If the user does not enter any search criteria, then the form loads specific record based on default criteria into the form. Could you please help developing similar form using ADF.
    At present I created the view object with one bind variable and dragged the view as ADF form to the jspx page. Then I am launching the form in query mode (executing the find method on the view object using operation binding at the time of loading the page). After entering the query criteria in the form, If I click on a button I am executing a method in the managed bean. In the managed bean I am executing the "Execute" operation on the view and it is working fine.
    But my problem is if the user does not enter the search criteria I have to pass default parameters to the view object and return the default record in the form.
    Can you please help in resolving the issue.
    Thanks and Regards,
    S R Prasad

    Hi Frank,
    Thank you for providing information. I created the query panel with the table by dragging all the named criteria. But this is not the look we are expecting for this form. As we have to deveop ADF form with the same behavior as oracle forms, the user must be in a position to edit the data in the same field as that of query field.
    As an example, we have to design a form for Dept table. We have to display all the columns of the dept view in the form at the time of launching the form in query mode. Once the user enters any search criteria in the form, we have to perform search and display the record(s) matching the query criteria in the same columns displayed in the form. User should not see any changes in the form layout.
    If the user does not enter any data in the form, then we have to display the record(s) in the form with the specific department id(This department id can be calculated based on the data in another table).
    Can you please help us in resolving the issue.
    Thanks and Regards,
    S R Prasad

  • Put a form in QUERY mode

    Hi,
    how to put a form in QUERY mode ?
    Many thanks.

    It is F11, type your query, then Ctrl + F11
    Or, click on View > Query By Example > Enter, enter your query, then click on View > Query By Example > Run
    Get all shortcuts from Help > Keyboard Help

  • Radio button getting unchecked when form in query mode

    There are 4 radio buttons on my form.Initially when the form is opened one radio button is checked.But when the form is in query mode that radio button got unchecked.Is there any way that the initial checked radio button remains checked even the form is in query mode ?
    Message was edited by:
    user496853

    Hi,
    Solutions given by Kevin and Zaibiman is not applicable for my form as the radio button will be in data base block only.This is the requirement of the form.
    The other solution given by Zaibiman was to set the radio button item when entered in query mode , i have tried that but that is also not working.
    Pranati,the solution given by you i have also tried that ,but that has not solved the issue,Radio button get unchecked when eneterd in query mode.
    Please elaborate and suggest.
    Thanks,
    Kirti

  • 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.

  • Opening multiple-record form in query mode

    Hi,
    I have two problems:
    1. I have a portlet form based on a table that I would like to open in query mode. I've tried this code:
    - in the "..before displaying the form" block :
    WWV_MASTER_GENSYS_4 (
    p_block_name => p_block_name ,
    p_object_name => p_object_name,
    p_instance => p_instance ,
    p_event_type => p_event_type ,
    p_user_args => p_user_args ,
    p_session => p_session );
    It brings back the first record successfully. But when I press the 'next' button, I get this error 'An unexpected error occurred:ORA-06502:PL/SQL:numeric or value error:NULL index table key value (WWV-16016)
    2. I would like to display this form as a multiple records form. But it will only display one record at a time. Has anyone been able to do this?
    I would appreciate any assistance in advance.
    Thu

    Maybe this will help you:
    http://download-west.oracle.com/docs/cd/A87860_01/doc/server.817/a85397/operator.htm#1029184

  • Calling a form in query mode

    Hi,
    I have a form "Ledger" in which i have a detail block with the following fields
    1. Voucher no.
    2. Date
    3. Account Code
    4. Posted
    and also i have a form master detail for vouchers entry...and it has three buttons for ENTER QUERY, EXECUTE QUERY AND EXIT QUERY and also ADD, EDIT & DELETE button as well where user query, add, edit and delete vouchers from there. Plus it has a voucher no. field.
    I want user to double click on any of the records in ledger form's DETAIL BLOCK and on double click i want to call "Voucher Entry" form in enter query mode and the voucher no value from ledger form should be copied from there and automatically fill in "Voucher entry" (newly called) form and execute query from there..
    How to do that...plz tell me
    Thanks

    Hi, sorry for my English!
    So, at block level (detail block) add trigger WHEN-MOUSE-DOUBLECLICK.
    Add the call_form built-in (view form builder help for syntax).
    In the "When-new-for-instance" on called form call the built-in "enter_query".
    For the item "Voucher entry" there are two way:
    the first one is to create a global variable(on the primary form) and then use it in the second form before the enter_query;
    the socnd one is to call form whit parameter list (see the help for the built-in call_form).
    Attilio

  • How to open a MD form in insert mode when calling from URL ?

    I have a MD form and I want to open it in 'insert' mode when I click on the URL.
    How can I do that ?
    thanks,
    Mainak

    I think somebody has asked the same questions earlier but I cannot find the link to that message. Please can anyone help me ?
    How to open a form in Insert mode from url link ?
    Mainak

  • Calling form in query mode

    Hello friends,
    I want to call a form B from Form A in query mode.
    And my all atributes r like
    new_record_instance of block
    IF :a.order_no IS NOT NULL AND :SYSTEM.RECORD_STATUS = 'QUERY' THEN
         SELECT COUNT(1)
         INTO n_cnt
         FROM a
         WHERE order_no = :a.order_no
         AND twp_po_no IS NOT NULL;
         --message(:SYSTEM.RECORD_STATUS ||' '||n_cnt);
         IF n_cnt > 0 THEN
    SET_ITEM_PROPERTY ('a.order_no', UPDATE_ALLOWED, PROPERTY_TRUE);
    SET_ITEM_PROPERTY ('a.order_date', UPDATE_ALLOWED, PROPERTY_TRUE);
    SET_ITEM_PROPERTY ('a.delivery_date', UPDATE_ALLOWED, PROPERTY_TRUE);
    end if
    And the calling the form in order_no(validate_item) with no_qery.
    Plz help me..
    thanx

    Did you try
    CALL_FORM(theformname,
    hide,
    no_replace,
    query_only,
    pl_id);
    Or any other combination with querY_only option ..

  • Panel form in view mode when table row select

    Dear All,
    I have a table and a detail form(created by dragging the vo in form).
    by default when i select the row in af:table then the detail form is in edit mode. I want to have default view mode(panel form fields to be uneditable) and an edit button in the panelform when the user clicks the edit button then panelform fields should be in editable and other operation buttons(create,createInsert,commit,rollback,execute) to be visible.
    Any pointers to this type of problem.??
    Regards,
    Santosh.
    jdeveloper 11.1.1.4.0
    Edited by: Santosh Vaza on May 20, 2011 12:31 PM

    I'm not aware of a component which dose this out of the box. You can however implement a method in a bean which goes through the component tree beginning from your panel form and set all editable components to disable until you click the edit button. Then you use a similar method to set all components back to enabled.
    Timo

  • Running an Update form in Query mode from the MENU

    Could any one explain how to run the same Form from the same Menu with two different options, One in QUERY ONLY MODE and one in Update mode. We are using Designer 6i and Headstart 6.5.
    Thanks
    David Short

    Is webutil supported in 9iAS? I think it is supported only in 10gAS.
    Thanks,
    Sujoy

  • Smart Forms: No next page when MAIN-Window is full

    Hi you SmartForms-Experts,
    i've got a SmartForm for Purchase Order. This SmartForm breaks with a error message when the MAIN-window on page "FIRST" is filled up and some more positions should appear in the MAIN-window on page "NEXT".
    The following page for page "FIRST" is "NEXT" and the following page for page "NEXT" is "NEXT".
    The printing program is a customer-copy of SAPFM06P, entry is "ENTRY_NEU".
    There is another window that is to be processed at the end of MAIN-window. I first thaught, that this is the problem, but it doesn't matter if it is deleted oder processed "before end" of the MAIN-window oder "after end".
    I debugged my smartform several times, but only saw the errors occur and did not recognize why.
    MAIN-window has got the same width on page "FIRST" and on page "NEXT".

    Hi Aidan,
    thank you for your answer. I solved the problem yesterday in the late evenening. It was similiar to your answer.
    There are some other windows in my smartform besides of "MAIN" that are copied from page "FIRST" to "NEXT".  One of them was smaller (width) than the original on first page. And therefore it could not be processed.
    I learned: Never change another programmers Smartform, even he left the company three years ago. Try to make your own Form.
    Thanks
    Franz

Maybe you are looking for

  • How to look for sales order number if I know outbound delivery number?

    How to look for sales order number if I know outbound delivery number?

  • My one year old macbook pro will no longer play DVD's.. why?

    After a year, without any problems playing DVD's, my macbook pro has suddenly decided that it no longer wishes to have anything to do with DVD's and spits them out at the first opportunity. Can anyone out there help to rebuild this once loving relati

  • EMac - trying to connect via ethernet

    I was given this eMac - it works really well, and thought that I'd try and connect it via ethernet. I've found out the IP and router addresses and have changed them in the settings menu, as explained in the apple support guide. The ethernet cable wor

  • Is it possible to have videos in multi-state object?

    I successfully built the SWF, place in place, export to PDF, fix the acrobat, now the navigation buttons work, it takes me to the corresponding video, but the video only shows up the first frame, no video controls. I check the file size it's only 1MB

  • Backing Bean Validation Method error

    Hi all, I've an ADF JSF User Registration Form and I want to set my server-side validation to confirm passwords entered by the user using the validator attribute bound to customized validation logic sitting in a method my backing bean. I've tried qui