Query only form problems

I have a data block linked to a parent table in a parent/child relationship. The parent table's query key is made up of 2 data items. When the form is executed I want the users to enter values in these 2 data items and then press a button that has a trigger to execute the query. How can this be done and what properties should be set on the data block and items in this data block? Also, this form is a query only type form, no updating is to be premitted to the database.

1. Consider to build a control block with these two items in the block.
2. Create a LOV which will return the two items from a record group to the items in the control block.
3. Passing the control block items' value for your query.
Good luck.
Jimmy

Similar Messages

  • Query-only mode problem

    Hello everybody, I'm a new user on this forum and in this thread I wanted to inform you about my problem and its solution.
    Problem: everytime I created a form with 10g version on DB 9i, at the moment of "Run Form", I always run in this message "FRM-40208: Form running in query-only mode. Cannot change database fields.". Obviously I couldn't nor add a record nor edit it.
    After some days spent searching for a solution, on this forum I read a post by an user talking about a very similar prob but not properly the same. Anyway, I decided to write an email to RV, an italian user who was very helpful in that situation.
    In less than an hour, he wrote me back: "Check preference in menu forms builder, you'll find a tab, if checked it gives query only mode". He also write me to post the problem and his solution on the forum.
    This morning he wrote me several mails telling me in a rude manner that I didn't posted the problem and not to write to him anymore.
    So, I'd like to tell to Rosario: dear Rosario, I thank you for your solution, and I hope that in the future you will be so kind to give users also the time to write down the problem and solutions, as I am doing now.

    I would mean only you, even if it is not worth of it, the time to write an email you have found, while the time to share the information,as I had told you, with the other forum's users, you didn't have for it.
    And then,i tell again you not to write me more, and rather I add, for the first time, reformed of you to have answered you.
    Thanks for the lesson

  • Update a single column in query only form

    Forms 9i, database 10g
    I am migrating the form from 6i to 9i. I have a form that is query only except for one field that can be updated. The main block1, based on a view, includes most of the person's personal data, none of which is updateable.. Another block2, based on a table, includes the 3 not-null colums that cannot be updated, and a remarks field, which can be updated. The block2 properties are set YES for insert, update, delete. The three non-updatable columns have properties set to NO for I,U and D, but the remarks column has I,U and D properties set to YES. When I enter data into the remarks field and press the Save on the Forms icon bar, I get error FRM-40508:unable to insert record and the ORA-00001:unique constraint. I don't should not be able insert and I don't want to, I just want to update one column.
    What am I not setting correctly in 9i? The same triggers and code works in 6i.
    Any suggestions are greatly appreciated.
    Vija

    No, there are no on-update triggers, but there are Post-Qry. I did run it in debug mode, but there is no good place to put a break point, since retrieval of the data works fine. Should I have key-commit trigger on the block to do the update?
    Vija

  • Enabling item on a query-only form

    Hi,
    I call a custom 6i form in query-only mode. However, now I need to enable one item on the first window for search purposes. I tried using SET_ITEM_PROPERTY,(ITEM_NAME,'Insert Allowed','TRUE') but it doesn't work. How do I achieve that functionality?
    Thanks.

    Hi,
    Thanks for the reply. I tried to set the property 'enabled' of the item to true so that I might be able to enter or update data into it.
    I am trying to change the form status from query only = YES and disable the blocks associated with it.

  • Query-Only Form

    How can I restrict a form to be used for Query-Only sometime (for some users) which can also be used as Insert/Update etc another time (for other users).
    I am using Open_Form not Call_Form.

    use
    CALL_FORM('<formname>', no_hide, no_replace,
    query_only);
    Thanks

  • Query-only Forms?

    By default, the form wizard for portal assumes that I want to enable dml (insert/update/delete). The application forms that I need to build are query (read) only. Is there an option in the wizard for query-only that avoids building all the related dml code?
    I'm new to Oracle Portal (but used SQLForms back more years than I care to admit!). Are there any examples/demos of forms where the end user can enter query criteria (e.g., I only want to see employees with last name of "Smith")?

    You can try deleting the INSERT, UPDATE and delete buttons during the forms design time.
    For the query button, you need to use the following code, depending on the type of form :-
    For Form on Table/View, add the following code after doQuery; :-
    p_session.set_value(
    p_block_name => 'DEFAULT',
    p_attribute_name => '_FORM_STATE',
    p_value => 'QUERY_AND_INSERT');
    For Master-Detail forms, add the following after doQuery; :-
    p_session.set_value(
    p_block_name => 'MASTER_BLOCK',
    p_attribute_name => '_FORM_STATE',
    p_value => 'QUERY_AND_SAVE');
    Ideally, if you do not want to do any DML, you can use a Report and for the report layout, you
    can choose Form and set the Max Rows per Page as 1 so that you get one record at a time in a form like layout.

  • Query Only - Form Name : INVIDITM

    Oracle Apps 11i (11.5.10.2)
    Database : 9i
    Hi,
    Is it possible to make the Master Item(KIM) form as Query Only.
    Form Application : Inventory
    Form Name : INVIDITM
    I have tried it, but from Tools the attributes can be changed.
    Any Idea about this , or do i have to do Personalization.
    Thanks & Regards,
    Sakshi

    Hi,
    Found out following Notes - which worked
    Doc ID: 787189.1 Item Master Not Query Only When Passing Query_only="Yes"
    Doc ID 274866.1 How to Create a View Only Version of the Master Items Form INVIDITM
    Reagrsd,
    Sakshi

  • Is it possible to update (=change) control block items in a query only form ?

    From Form.A we call Form.B with the parameter query_mode = query_only.
    This works fine.
    But in Form.B we have a non table block (=control block) with an poplist item.
    Allthough in query_only mode we like to change (it's not a real update cause it's control block) the poplist.
    But because of query_only mode this item is not updateable.
    Is there a workaround to make the poplist updateable in query_only mode ?

    Hi,
    It is not possible to change the BOX position using the Layout painter like changing windows position.
    You have change in the page Windows text elements only by changing their co ordinates.
    Regards,
    Anji

  • Query Only form having issue

    I have a simmilar situation here.
    Am using a form which has 2 non-DB fields on the canvas and two DB fields on null canvas. While fetching the record I want to show derived values in Non-DB fields based on DB records. So i used Post query.
    Now every time it ask me 'Do you want to save your records?' when I hit F4.
    Also If i made a Form function with function parameter Query_only = 'Y' . When I hit Ctl+F11 it says you cannot updtate this record. and stuck on those two fields.
    Am using Set_Record_Query_Status in post_query but still facing the same issue. Do you have any solution here?
    Thanks,
    Adi

    Adi,
    Do you have the Non-DB items in the same Data Block as your DB Fields? Ideally, you should place the non-db items in a Control Block. Another alternative would be to make your non-db items "Display" items. Both will prevent Forms from registerting changes when you Post-Query data into the non-Db items.
    Hope this helps.
    Craig...

  • Purchase Order form in Query only mode for some users

    Hi All,
    I want to make the Purchase Orders form as query only for a single user. I tried by giving 'Query_only=Yes' in the parameters section. I am getting 'FRM-04151: You cannot query records here' message more than 10 time. I know we get this message and this is applicable to all the users. But this message is comming more than 10 times.
    Is there anyway that I can restrict the Query only mode to a single user and please suggest about the message also.
    Thanks in Advance,
    Naresh

    Naresh,
    Since you want to achieve this for one user only, I would suggest you create a new function/menu/responsibility and assign this responsibility to the user.
    Note: 400380.1 - How To Create a QUERY-ONLY FORM
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=400380.1
    For the FRM error, please review the following document.
    Note: 116074.1 - ACCESS LEVEL - REVIEW ONLY - PO
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=116074.1
    Regards,
    Hussein

  • Update one column in Query only block

    Hi,
    I have a question regarding multi-record, multi-columns form block.
    A block has 100 columns (column1 to column100).
    We have two separate version of same form. In query only mode, update_allowed property of all the blocks in the form is False.
    But in query only form, one specifc column should be updateable.
    How can use Custom.pll to achive this functionality ?
    I tried following steps
    1. In when-new-item instance of column 54, wrote set_item_property and set_block_property
    2. Update allowed for block and specific item is True
    I know that Block property will override the property of items.
    Now all the items are updateable in query only form. But i want only one column updateable.
    Appreciate you valuable input on this.
    Thanks

    This is an eBusiness-related question, you should post it in the eBusiness-forum. From the "pure" forms point of view, set the Block as updateable and set all item except the one you want to be updateable to UPDATE_ALLOWED =PROPERTY_FALSE

  • Data entry form problem - form in query-only mode

    Hi there,
    I am trying to create an data entry form to insert recordacross 2 out of 3 tables. The last of the four tables already have details and does not need to have record inserted into.
    This is the scenario, my four tables are Factory, Employee, Works_in. Works_in resolves a many to many relationship between Factory and Employee
    Now for a person to be employed in a factory, he must be assigned to a factory.
    I have a list of factories already in the database. After choosing a factory from the database, I want to insert records to do with his Fname, Lname, Hiredate bla, bla, bla to the Employee table.
    I have a single form with Factory as the master, and 2 tabs each for Employee and Works_in.
    After linking all my tables with the ability to choose a factory first on the master form from a combo box and after inserting records into the other forms, it says form running in query-only mode.
    What do you think?
    Many thanks in advance.
    Cube60

    I think that's too much of the wrong information.
    It sounds like you have multiple forms. Are they Modal or Non-Modal?
    What code do you use to call the form that's not working?
    Does it work initially and then stop working?
    James.

  • Called form in query only mode shows messages....

    Hi All,
    I am calling a form (say B ) in query only mode from a main form (say A) . When i query the called form B , i get 5-6 alerts (which has to be acknowledged by the user) and messages of the same error type saying :
    "FRM-40208 : Form running in query only mode . Cannot change database fields. "
    I have a 100 forms to be called from the main form A. So, I prefer not to change anything in the called forms . I tried to set message_level in the form A and code the on-error / on-message triggers to avoid the messages being shown, but nothing is working . Is there anything I can do in Form A i.e the main form ???
    Thanking you in advance.

    Since the error messages are being generated by form B, it is unlikely you will be able to fix form B problem using form A. Unfortunately, you may have to fix each of the 100 called forms.

  • New form stuck in QUERY-ONLY mode

    I just developed a new screen and for some unknown reason, it runs only in QUERY-ONLY mode when launched from the developer. I have checked every preference and setting I can think of and nothing seems oout of order! This is only happening to this one screen, so I am at a loss. Any suggestions?

    send me the form if you can, as I have never seen problem like this in my 5 years of oracle

  • Query Only Mode Forms.

    This is my last port of call...
    Is there a SYSTEM variable or Form/Application property I can check to see if my form has been called with the query_only option set (from NEW_FORM and CALL_FORM).
    I can't find anything and if not, I'm going to have to use a global variable or a parameter.

    I'm still having problems here.
    If my code decides that the form should be called with no_query_only, but it's called from a form that has been called with query_only, the new form is called query_only.
    Things get even more confused on the way back out of the stack as at some point the access switches back from query_only to no_query_only, but my global variable still show query only!
    Forms knows that the it's in query only mode, why Isn't there a property to tell the developer?

Maybe you are looking for

  • I am trying to sync my iPod touch with my macbook pro and it won't work?

    When I try to sync it it asks me to transfer purchases to it and so I click transfer and then it brings this message up... "there is ot enough free space to hold all of the items in the itunes library (additional 5.40 GB required) is their a way idk

  • Mapping problem with coupled PO1 segments

    The following idoc message is being processed: - <E1EDP01 SEGMENT="1">   <POSEX>00011</POSEX>   <ACTION>001</ACTION>   <PSTYP>0</PSTYP>   <MENGE>1.000</MENGE>   <MENEE>PCE</MENEE>   <BMNG2>1.000</BMNG2>   <PMENE>PCE</PMENE>   <PEINH>1</PEINH>   <GEWE

  • Use of rowid

    Hi, Can any one point me the use of rowid with in a stored procedure. I know that rowids are unique identifiers for a row, but curious to know thier advantages over Primary keys. I am also aware that they can be used in SELECT query, but need to know

  • Newly installed Arch with gnome3 - Sound issue

    Hello fellow archs! I'm having such a huge issue at the moment with the sound. Got alsa installed, and alsaconfig cant find a thing on my motherboard. I will try to post the essential information so maybe someone will notice that I have done somethin

  • When i get boarding passes for the airline a second pop up page opens up but there is no print option

    when i make a reservation on an airline website a separate page opens up for the boarding passes. there is no options at the top of the page for anything and there is no print option anywhere including on the page itself