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

Similar Messages

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

  • 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

  • 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

  • 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

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

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

  • 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

  • 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

  • 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

  • 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

  • How do you get a form in Query Mode

    I've developed a form using the online tools, and published the form as a portlet. I can insert a record into the database but am unable to retrieve the data to view or update. Any help would be appreciated.
    -Thanks
    Andy

    This is strange. If u are able to do dml operation in database, the same thing is possible by creating a Form on that table.
    Can u explain little more what u are trying to do and what type of error u are getting?

  • Form in query mode - condition syntax

    Hello all,
    I cann't find full list of syntax (doc) for entering query condition into one field. I found only:
    555blabla%
    %blabla%
    #BETWEEN 30000 and 40000
    <=5
    Can somenody show me way to doc?
    Thanks
    Libor

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

  • How do I set form automatically in query mode

    Hi !
    I have to pass value of one field as parameter from one form to
    another form and then execute the query on the next form based
    on the passed value of the parameter. (all this should happen as
    soon as I press one button on the first form).
    My problem is that unless I put the second form in the enter
    query mode before accepting the value of the field, whatever
    value I pass on from the first form will not be of any use.
    How do I set the mode of the form to query mode. Since
    system.mode is the read only variable and no value can be
    assigned to it, so how can I handle this situation ?
    Thanks in advance,
    Shobhit
    null

    Hi Shobhit,
    Try ENTER_QUERY command in the PRE-FORM trigger of second form.
    EXECUTE_QUERY in WHEN-NEW-FORM-INSTANCE and set the parameter
    values to the respective fields in PRE-QUERY trigger.
    Lalit
    Shobhit Kumar (guest) wrote:
    : Hi Steve !
    : Thanks for the answer. but I want a bit different
    functionality.
    : I have already tried using execute-query (built in) in the when-
    : new-form-instance and passed the value of the parameter in the
    : field. But all that is happening is that the value is just
    : sitting in the field and query is not getting executed
    : automatically. I am using forms 5.0 and to enter a query we
    need
    : to change the mode of the form in the query mode (by clicking
    : the enter->query button) and then enter the values in the
    fields
    : that would be used to build the query and the as soon as I say
    : execute query it executes the query and displays the results.
    : What I want is that as soon as I press a button in a form,
    value
    : of one field should go to another field in a second form and
    : then the query should get executed automatically in the second
    : form and the results should be displayed in that form.
    : Any suggestions ?
    : Regards,
    : Shobhit
    : Steve (guest) wrote:
    : : You might want to try placing the builtin EXECUTE_QUERY
    : : in the WHEN-NEW-FORM-INSTANCE trigger to auto query the form.
    : You
    : : may also want to use the SET_BLOCK_PROPERTY(DEFAULT_WHERE,
    : : '.......'); to restrict queried records or set :block.item
    : values
    : : in a PRE-QUERY Trigger.
    : : Shobhit Kumar (guest) wrote:
    : : : Hi !
    : : : I have to pass value of one field as parameter from one
    form
    : to
    : : : another form and then execute the query on the next form
    : based
    : : : on the passed value of the parameter. (all this should
    : happen
    : : as
    : : : soon as I press one button on the first form).
    : : : My problem is that unless I put the second form in the
    enter
    : : : query mode before accepting the value of the field,
    whatever
    : : : value I pass on from the first form will not be of any use.
    : : : How do I set the mode of the form to query mode. Since
    : : : system.mode is the read only variable and no value can be
    : : : assigned to it, so how can I handle this situation ?
    : : : Thanks in advance,
    : : : Shobhit
    null

Maybe you are looking for

  • 4/15/2014 - Beta - Flash Player 13.0.0.199

    The latest Flash Player 13 builds are now available.  You can download Flash Player here: http://www.adobe.com/go/flashplayerbeta. New Features for Flash Player 13: Enhanced Supplementary Character Support for TextField Characters from the Basic Mult

  • Backing up a project

    What is the best way to back up a project on another hard drive? including all media. Do I have to clone the drive or is there an easier way? Vince

  • Leading zeros in credit card number

    I'm trying to allow leading zeros in a credit card field. I have 4 fields, one for each set of numbers. I'm currently using number format for each field. When the user types a leading zero in their credit card number, acrobat gets all excited and ass

  • 10gR2 SE RAC installation on Windows 2003

    Hello, I want to install RAC on two nodes with Windows 2003 operating system. I have the following questions: Do I need Windows Clustering Software installed before I go for RAC clusterware installation? If not, how do I setup shared drive so that bo

  • Xlib: connection to refused by server

    Dear all, I'm trying to run a report on eBus SE. If I define the format as Text file, there's no problem. But if I defined as ODF I'm getting this error while running. Xlib: connection to "servername:0.0" refused by server Xlib: No protocol specified