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

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

  • 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

  • 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

  • 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

  • Open Purchase Order Form in Find Mode

    Hi,
    I have to open the Purchase Order Form in Find Mode.How to open in Find mode?.
    I Used the Following Code in Form_Load  && Action_Success=true
    if(oForm.Mode = SAPbouiCOM.BoFormMode.fm_ADD_MODE)
            oForm.Mode = SAPbouiCOM.BoFormMode.fm_FIND_MODE
    But it is not working.Please help me to solve this.
    Regards,
    M.Dhivya

    call
    ActivateMenuItem( "1281")
    in application object.

  • 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

  • Open Users Setup form in Find mode

    Hello,
    When I open the users form
    Administration
    ---Setup
    General
    Users
    this form is in Add mode. Is there a way to have it in find mode directly ?
    Thank you
    Sébastien

    Hi,
    It is not possible to have the User - setup in the Find mode default.
    The form opens in the Add Mode and you have to go to the Memo and click on Find or do a Ctrl + F.
    Regards,
    Jitin
    SAP Business One Forum Team

  • Multiple-record form

    HI Everybody,
    Could anyone be so kind to assist me in the following problem? I have built a master-detail form with several records displayed. Screen items are Read/Write, Read-only and text for domains in popup-lists (these will be populated at the beginning using a record group query). Now, when I have executed a query and there are some records fetched, I can click in any record below, thereby leaving empty records in between. This should not be allowed, because Forms--allegedly--always lets you have a single last record empty (for input), but only one!
    Thank you in advance, kind regards from
    Miklos HERBOLY

    Raj,
    The multi-record forms on tables currently are not supported by Portal. However, there is a creative workaround of using MD forms with one hidden field has been described in this topic:
    http://technet.oracle.com:89/ubb/Forum81/HTML/000757.html
    Thanks,
    Dmitry

  • Open single record form for particular record

    It's simple to open tabular form for particular record
    - just add page item, pass value to this item
    and add this item to WHERE clause.
    But what is common approach for single record form?
    Where is it described?

    here is my solution:
    1) create page item which will receive primary key value
    2) look at Sample Application Page 7 - customers edit page -
    you need "Automated Row Fetch", called in "After Header" block

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

Maybe you are looking for

  • How to get LastModified time of a file in repository(in weblogic8 and Compa

    hi , my task is that i have to compare modified time of 2 file.one is in file system other is database file . which is most recently updated (which is newer). details : we have to check that which file is most recently updated .if database 's file is

  • In need of dual wireless headphones for vizio tv. Does sony make?

    Good morning.  I am looking for a pair of headphones that are wireless that would work with our Vizio tv.   My husband has hearing aids but they don't work as well as they could and the TV is very loud for dual watching.     What I am looking for is

  • Using green screen ( but just on isight) is this possible

    Can anybody direct me to a tutorial on exactly how to place a greenscreen background into the isight capture. I am using imovie 09 to create a video however i captured the isight footage using screenflow. Now i would like to use the isight footage ho

  • No audio out

    I have had my ZEN Microphoto for about year and i had dropped it from about 6 feet up in the air onto hard tile on accident. It stopped outputting audio through the headphone jack. Is there anying i can do to fix it or should i just by a new player?

  • SAP Basis administrators role on new dimensional products like BW, EP, SRM

    Hello All, I have been working as a SAP basis administrator and still fail to understand what are the main administrative roles as a SAP BASIS administrator on new dimentional products like BW, EP, SRM, MDM etc. aprt from installing them and basic se