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.

Similar Messages

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

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

  • 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

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

Maybe you are looking for

  • Can items from a list be copied and pasted into a new Pages Table?

    In iWork Pages, I have a list of 50's & 60's recording artists and their songs, (which is about 40 pages long) from my '45 rpm record collection for my Jukebox. Is there any way to copy and paste the artists' names, and their songs into a Pages Table

  • Returning to a previous Node in the process.

    Does anyone have a good pattern for returning to a previous node in the process? I can't think of any way to do it that is not exceedingly cumbersome, especially considering that I Want to be able to return to almost any node from any other node. To

  • Problem when creating contract  with foreign trade / customs

    Hi, I encountered a problem when creating contract / outline agreement. I used ME31K to create a contract with a vendor outside of our country. I suppose that I should be able to see "Foreign Trade / Customs" in "Header" menu, but this entry is gray,

  • Blank paper comes out of printer when using Firefox

    When trying to print bank statement only blank paper come out, switching I.E. allows me to print.

  • Free trial version stopped converting pdf to word file

    Hello - I recently downloaded the free trial versio nof Adobe Reader XI, and for one day I was able to convert pdf files into Word files (doc, docx). I have not been able to do so since. I tried uninstalling and reinstalling the software to no avail.