FRM-40208: Form running in query-only mode. Cannot change database fields.

Hi,
I am using forms 6i where it is calling a form from a menu in query like call_form(,query_only). Now an error is occurring on call of that form ‘FRM-40208: Form running in query-only mode. Cannot change database fields.’ Though this is been handled to give a certain message from on_error message from a package from library.
Now the issue is that the error keeps on popping even after the ok button is pressed. There are number of records from the table. How can we handle the error. Any suggestion would be really appreciated!!!
Regards,
Rajesh

thanks Gred but i have resolved the issue. it seems that each row was going into query_only mode (program written such a way). therefore the error was showing even after the OK button. handled the issue from ON_ERROR trigger. anyway thanks for your time Gred!

Similar Messages

  • Frm-40208 from running in query mode. cannot change database fields

    Hi,
    Could some one help me with this.
    I am calling a form from another form. I am passing the parameter list to the calling form and doing a query by setting the block property. But when queries the message
    FRM-40208 Form running in query mode. cannot change database fields .
    I do not want the message to appear when they go the called form . Please some one could help me how could I avoid displaying the message.
    Regards
    Bain

    Hi,
    Good day! I am working with a module that also calls another form. It uses call_form with query mode parameter set to query_only. My problem is, whenever i call the other form using the call_form, it would display the called module and then as it populates the detail block of the called form, it will display frm-40208 from running in query mode. cannot change database fields per record. What I want is for the message to be displayed only once.
    I have tried capturing the error by using on-error trigger, but it doesn't go to that whenever the other form was being called. I think the message has to do with the post-query trigger, because it passes some values on a dbase block objects.
    Do you have any suggested solutions or workarounds to make the message display only once whenever the other form is being invoked by the call_form?
    I would greatly appreciate any suggestions/ideas.
    Thanks and regards,
    ASantiago

  • Is The Current Called Form Running in Query Only Mode?

    How can identify the current called form is running in either QUERY_ONLY / NO_QUERY_ONLY MODE progrmatically?

    You can use :system.form_status to check for this. Be aware that this can change quite frequently throughout navigational processes both visibly and "behind the scenses"
    n

  • How to know that a form is running in query-only mode

    I have a form that can run in query-only mode or non-query-only mode depending on the current user who logs in, and I want to change its apprearance dynamically when it's in different modes (for example, enable or disable buttons). Is there a built-in or system variable from which I know that the form is running in query-only mode or not?
    Thanks,
    Shu

    The global variable solution is what we are using now. I thought there are some unpublished built-in or system variables. In my application, there is a public "menu" form from where hundreds of forms are CALLed with some in query-only mode and some in non-query-only mode depending on the current user role. :PARAMETER.QUERY_ONLY will always be 'NO' because the "menu" form is started in non-query-only mode. But it's good to know about it.
    Thank you very much for your replies,
    Shu

  • 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

    I built a form using oracle developer 9i and when I tried to insert/update/delete record I get FRM-40208 form running in query-only mode. cannot change database field.
    although I checked the properties of Data block and it is query allowed, update allowed, delete allowed (all are set to true).
    I don't know what to do in order to allow 3 DML commands.
    thanks in advance

    Hello,
    if this form is called by CALL_FORM(), check the query_mode parameter which must be NO_QUERY_ONLY
    Francois

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

  • 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

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

  • How to display LOV on web in ENTER-QUERY mode with form or block query only.

    Hello all
    How can I display lov automatic on the web in from enter-query
    mode in form or block query only mode.
    thankx

    If I understand correctly your explanation, your called form
    fails to activate the LOV in enter-query mode when it is deployed
    and test on the browser.
    So lets proceeed like this, to make it work in all environments,
    let us programetically activate the LOV.
    HOW?
    In the called form, write in the WHEN-NEW-ITEM-INSTANCE TRIGGER
    at block level (if have more than one LOV)
    IF :SYSTEM.MODE = 'ENTER-QUERY' THEN
    IF get_item_property(:system.cursor_item,lov_name) IN ('YOUR
    LOV1', 'LOV2' etc) THEN
    IF SHOW_LOV(get_item_property(:system.cursor_item,lov_name))
    THEN
    NULL;
    END IF;
    END IF;
    END IF;
    The above code maybe tweak to suite your need and condition.
    This way, we explicitly make the LOV appear in ENTER-QUERY mode
    whenever the user clicks on an item with an attached LOV.
    Hope this helps.
    Mohammed R.Qurashi

  • 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

  • Purchase Orders form in Query Only mode for a single user

    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

    Please post this question here: OA Framework
    There are so many special conditions and restrictions for E-Biz Suite that this forum is not the right place to ask these questions. The Apps forum at this location is the right place.

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

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

  • Query Only Mode (QOM)

    A form can be invoked in query only mode. My question is, once I am in a form that was invoked in query only mode, is there a built-in I can use to tell if the form is in QOM?
    Thanks for your help,
    Thomas Morgan

    Hi Peter:
    I agree 100%.
    You can place the following version in a library (pll) and
    invoke it from any form module:
      FUNCTION QUERY_ONLY_MODE RETURN BOOLEAN IS
        V_MSG_LEVEL VARCHAR2(10) := NAME_IN('SYSTEM.MESSAGE_LEVEL');
      BEGIN
        COPY('25', 'SYSTEM.MESSAGE_LEVEL');
        COMMIT;
        COPY(V_MSG_LEVEL, 'SYSTEM.MESSAGE_LEVEL');
        RETURN (ERROR_CODE = 40208);
      END;Thomas :)-<--<

Maybe you are looking for