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.

Similar Messages

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

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

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

  • 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

  • Calling another form when current form is in query mode

    I have a form that is in query mode. When I select a menu option that calls another form through new_form, I get the error 'FRM-41009: Function key not allowed. Press Ctrl+F1 for list of valid keys.'
    I would like trap this error, cancel the query and invoke the new form. I have tried to do this by code similar to this:
    if :system.mode = 'enter-query' then
    exit_form ;
    end if ;
    new_form('someform') ;
    (since exit_form in query mode is supposed to cancel the query).
    But in this case, the trigger ends with the execution of the 'exit_form' statement.
    Any help would be greatly appreciated.
    Thanks and regards,
    Rajesh Jayaprakash
    [email protected]

    I think the following will work:
    When you call the EXIT_FORM builtin, Forms cancels out of Query Mode but also stops the current PL/SQ execution - which is annoying.
    I believe, though, that the WHEN-WINDOW-ACTIVATED trigger will fire on your Form. Therefore, you can:
    1) Set a Global Variable or PL/SQL packaged variable just before you call the EXIT_FORM builtin then
    2) Test the value of the Global Variable in the WHEN-WINDOW-ACTIVATED trigger and perform the CALL_FORM there.
    3) Even better, put the CALL_FORM and associated parameters into a Program Unit on the Form - then you can call it from either the original trigger or the WWA trigger as necessary.
    If this does not work, you could resort to:
    1) Set a Global Variable just before you call the EXIT_FORM builtin
    2) Initiate a TIMER
    3) Call the EXIT_FORM builtin
    4) In a WHEN-TIMER-EXPIRED trigger, check the value of the Global variable. If it's set, Call the Form you want to call
    5) Again, put the actual CALL_FORM in a Program Unit so it can easily be called with the correct parameters from wherever you need to call it.
    It's annoying that you need to go to these lengths to perform what seems to be such an easy task!
    If anyone knows any better ways of achieving this, please add another reply!

  • 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

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

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

  • 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

  • How to call another form ,if option is entered in a text item object ???

    hi ,
    I am created an application ,where in i press a button which call another form having a menu .
    I select any one of the option from the menu ....i enter a number in the text item object of this form ....depending upon what option i have typed .....i would like to call another form ...
    My questions are
    1) Which trigger of this text item should be enabled,and what code to i write in this trigger ?
    2) Since this form is not having any database insert,delete ,update or query (select)
    it should directly go to the new form,whose option i provide in the text item .
    Sunny

    hey bro, i am assuming that ur text item contains the form name, any relevant trigger can be used for user action, like key-enter, post-change or key-next-item.
    to run a form u can use functions call_form or open_form with proper paramters.
    if u want to forward the entered text in the item, use global variable for the session.
    it doesnt matter if the form contains database items or blocks, all u have to do is run the form.
    e.g,
    declare
    VAR VARCHAR2-------;
    begin
    /* u can use the variable to concatinate or modify too, also can use global variable
    var:=:urblock.uritem;
    /* use ur own relevant parameters */
    open_form(VAR,ACTIVATE,NO_SESSION);
    exception
    when---------
    end;

  • Calling another form

    hi guys
    can anyone please tell what what the best way is to call another form, pass a parameter to it e.g patient id and execute query on the form based the id passed. basically display all related data as you open that form
    thanks

    Check the on line help for CALL_FORM....its got an example.
    REgards
    Grant ROnald
    Forms Product Management

  • 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

Maybe you are looking for

  • Solaris 10 on HP Intel Xeon Box

    Hi there, i am trying to install the Solaris 10 on HP intel Xeon server. but i get error message during the installaion configuration that hard disk not found. while i had win2003 on it before and drives are okay. i get this error message when i do t

  • Help: matrix report grid lines missing for null values only on server side

    Hi, I created a matrix report in pdf format. The output in great when run through report builder locally, it renders all necessary details. However, after the report being moved into AS server, the report does not show grid lines for null values. It

  • Upgrading a iMac G3 from OS9.2 to OSX. Firmware upgrade problem.

    I am having trouble updating the firmware on my iMac G3 400mhz computer. I am running 9.2 but there seems to be a sleep problem. The computer shuts off, after holding the programmer's button, during start up. So, the 4.1.1 update doesn't take. As wel

  • Marketingattributes from type "Date" in CRM 7.0

    Hello Experts, we think about two new marketing attributes for contact persons: 1. Invitation send 2. Answer received Both attributes are from type date. The question is how can i search for all contact persons having for example attribute invitation

  • Cant open Adobe reader

    Tried with 11 and 10 it opens for 2 seconds then closes itself, cant read or even open any menu option to make a change to security etc,  have tried removiing and downloading again many times but still the same issues,  this is on Windows 7 using the