Forms Hang on saving a record.

Dear All Experts,
We have OAS 10g 10.1.2.0.2 and Orcle DB 9i on seprated win server 2003.
A couple of users suddenly face a Forms Hang problem while they try to save the record. it's not occuring on all time but when it occurs they have to re-login.
On the login again it works filne.
Would you please guide us to resolve this problem.
Thanks & Regards
Eidy

Thats a little complicated.
In general there are two possibilities to do:
1. Replace the ""standard" DML-operations of forms by your own operations. This is done by using the ON-INSERT, ON-UPDATE and ON-DELETE-triggers in forms, so its a client-side operation.
2. Base the block on a view instead of a table, let forms do its standard DML-operations and do your own operations on INSTEAD-OF-triggers on the view, this is the server-side operation.
Personally, i prefer the second option, for it keeps the business-logic in the database and the client-side "thin".
Implementing the first method:
Forms marks as record for the next DML when you change any relevant item. A relevant item in this sense is one of the basetable-items, or a non-databaseitem, which in turn changes a databaseitem. You can also set the property "Lock Record" on a non-database-item to "Yes" (thats what you have to do). If a record is marked that way, forms automatically tries to lock the record. So you would also have to create an ON-LOCK-trigger on the block and do your own lock in it. And last, put your DML-operations inside the ON-UPDATE, ON-INSERT and ON-DELETE-triggers

Similar Messages

  • Form hanged on saving(urgent!)

    Hello,
    in forms after executing a particular record, i am modifying it.. at the same time, some other user is also inserting/modifying other record from different machine. The problem is, when the user from diff machine is saving the record, his form gets hanged, untill i save my record.
    Thanks
    abhishek

    You have two methods of saving data into the db. Locking-Mode Immediate and Delayed.
    It's a block-property. Try the other one. You may have the false one for your environment.
    Gerd

  • A particular form hangs while saving in Oracle Apps 11.5.10.2

    Hi Friends,
    I am using Oracle Apps 11.5.10.2 on Linux.
    In a custom Responsibilty ,In a particular form after entering the valuses when i give confirm button the application forms hangs for a long time without saving the values.
    Please let me know the Fix.
    Regards,
    Arun

    Hi,
    Was this working before? If yes, any changes have been done recently?
    Can you find any errors in the Jinitiator Console Window, application log files, and the database log files?
    Please verify that you have no invalid objects in the database. Also, try to generate the form via adadmin and see if this helps.
    In none of the above helps, please obtain FRD file, and see if more details about the error are reported in the log then -- See (Note: 150168.1 - Obtaining Forms Runtime Diagnostics (FRD) In Oracle Applications 11i) for details.
    Regards,
    Hussein

  • Web Form Hangs When Scrolling through Multi-Record Block

    Hello!
    I have a web-deployed form that uses the Sun Java JVM and utilizes WebUtil.
    We are using JDK v1.4.2.
    When I open this form using the Java plug-in and try to scroll through a multi-record block ... it will hang at various points and eventually I have to close the form because it won't respond.
    This does not happen if I simply access the form through the Microsoft JVM.
    Any suggestions?

    That's a know solved bug. You must install AS10g patchset 9.0.4.2.
    For me it solved the problem.
    Bug 3557904: Forms hangs (deadlocks) when scrolling on XP under some circumstances
    Joao Oliveira

  • Report without saving the records

    Hello all of you,
    i have a master detail block,, and i want to take a print from oracle report 6i without saving the record,, i just enter the record in the text boxes and then press the report button to generate the report
    i am using oracle forms and report 6i with oracle 9i database
    thanks in advance

    Hi i put the code for testing for one block and its not inserting the records and mainly its a non database block and i want to insert only the selected check box' record.I tried following code but its not inserting
    DECLARE
    Num_Tot NUMBER;
    Num_Loop NUMBER;
    BEGIN
    GO_BLOCK('FLX');
    LAST_RECORD;
    Num_Tot := TO_NUMBER(NAME_IN('SYSTEM.CURSOR_RECORD'));
    FIRST_RECORD;
    FOR Num_Loop IN 1..Num_Tot LOOP
    IF :TR.CHK = 1 THEN -- 1 is the value when checked.
    INSERT INTO REC_HIST
    values(:TR.RN_DT,:TR.AC,:TR.Amt,sysdate);
    commit;
    IF :SYSTEM.LAST_RECORD = 'TRUE' THEN
    EXIT;
    END IF;
    end if;
    NEXT_RECORD;
    END LOOP;
    end;
    rgds
    sandya
    Edited by: user10642220 on May 25, 2009 11:56 PM

  • Saving the record in multi-record block while updating

    Hi gurus
    I have a table name PT . Its is master table where PT_TYPE IS unique
    desc PT
    PT_TYPE VARCHAR2(2) unique,
    PT_CODE VARCHAR2(4),This is the detail table on which the form is being designed is meant for insert/update/delete.Insert and delete are working fine.
    desc PST
    PST_PT_type varchar2(2) unique,
    PST_A_code Varchar2(3) unique,
    PST_A_desc varchar2(10) The form layout is a multi-record form as below and based on PST table with PT_CODE as non-base table item & PST_PT_TYPE
    not displayed but its there in the block.
    FORM_LAYOUT
    PT_CODE PST_A_CODE PST_A_DESC
    ASD          AS          TESTAS
    ASD          AD TESTAD
    ASD DS TESTDS.
    Now the problem is when I am querying record through enter-query mode (say by entering PT_CODE 'ASD') and
    change one of the base table items(PST_A_CODE or PST_A_DESC) values and commit it. its says '1 records applied and save'
    but when I change ONE OF THE PT_CODE(non-base table item) values it says 3 records applied and saved. as the 3 records
    are currently displayed when querying

    Hi Craig,
    Both below program unit is in the WHEN-VALIDATE-ITEM of NBT item PT_CODE
    --this is to check that valid pt_code is entered
    PROCEDURE val_pt_code IS
         cursor val_cur is
         select pt_code
         from pt
         where pt_code =:pst.pt_code;
    v_dummy varchar2(12);
    BEGIN
    open val_cur;
    fetch val_cur into v_dummy;
    if val_cur%notfound then
    close val_cur;     
         warn_alert('Error:The Product Code entered does not exists');
         raise form_trigger_failure;
    end if;
    close val_cur;
    END;
    --this is to check that particular pt_type value is for the pt_code is selected
    PROCEDURE get_pt_type IS
         v_pt_type varchar2(2);
    begin
         select pt_type into v_pt_type
         from      pt
         where pt_code = :pst.pt_code;
         :pst.pt_type := v_pt_type;
    exception
         when no_data_found then
              warn_alert('Error:The Syllabus Type does not exists');
         raise form_trigger_failure;
    end;
    --

  • Forms 9i/ DB 10g - Form Hangs when function is called

    Using 9i Web Forms on 10g Database Linux O/S
    I have the following function call in a form within a loop:
    :nbt02_lentrn.nbt_txn_descr := fn_get_trans_descr(ls_app_area_code,ls_txn_type);
    The function being called contains this code:
    FUNCTION fn_get_trans_descr(ps_app_area_code IN VARCHAR2,
    ps_txn_code IN VARCHAR2) RETURN VARCHAR2 IS
    CURSOR cur_txn_descr IS
    SELECT descr
    FROM financial_trans_types
    WHERE code = ps_txn_code
    AND aparea_code = ps_app_area_code;
    ls_txn_descr financial_trans_types.descr%TYPE;
    BEGIN
    OPEN cur_txn_descr;
    FETCH cur_txn_descr INTO ls_txn_descr;
    CLOSE cur_txn_descr;
    Return(ls_txn_descr);
    END;
    When the call is executed, the form hangs after the OPEN command. I have checked the parameters for their values and successfully executed the cursor in SQL.
    When I hardcode the function parameter values, the code executes successfully. Also, and perhaps most unusually, if I do either of the following before the function call, the code runs successfully:
    ls_txn_type     :=     ls_txn_type;
    :nbt02_lentrn.nbt_txn_descr := fn_get_trans_descr(ls_app_area_code,ls_txn_type);
         ls_txn_type     :=     NVL(ls_txn_type,NULL);
    :nbt02_lentrn.nbt_txn_descr := fn_get_trans_descr(ls_app_area_code,ls_txn_type);
    I have also extracted the call and placed it into a different form where it works fine!
    The variable ln_txn_type is populated via another call within the same loop. It's value alternates between null and a value for the record set.
    The same code works fine Client/Server and although I have a solution, I'm not sure what the problem is! Does anyone have any clues?

    Hello - your problem actually looks similar in symptoms to one I hit just a couple of days ago (see my post 'Forms hangs when using result of an OUT parameter to do an Insert ' on July 19th.)
    The problem I was having was if I had a variable which already had a value, then passed into an IN OUT parameter of a db stored proc, the proc set the value to null, and then I tried to use the variable in a table insert. The form would just hang completely. Like you, one workaround for the problem was to have a line like:
    my_var := NVL(my_var,NULL);
    to somehow 'fix' the variable before trying to use it further. Even though the variable seems null, and returns true for IF ... IS NULL, something had gone wrong with it that rendered it toxic to my form. This workaround should have no net effect, but it does somehow solve the problem. Like your problem, mine doesn't occur on client server, only on the newer version.
    I hit this problem using Forms 10g904, against a 9i database. Having talked it over with Oracle support, I've tried doing the same thing using 10g Release 2, and the problem disappears, so Oracle have obviously fixed it somewhere between the two releases - I'm currently investigating intermediate Patch Sets.
    Don't know if this is helpful, but all I can suggest is that you ensure you've applied the latest patchsets to your Forms (you can try it on the Builder first before patching your apps server installation.) If that doesn't do it, I'm guessing it's a case of use the workarounds, or go up to a higher version altogether of Forms.
    Sorry not to have any more optimistic advice!
    James

  • When saving a record it is displaying 2 records saved

    Hi
    When saving a record in a form it is displaying 2 records saved.
    On further analysis I found that "when new record instance" trigger is doing some validations and forcing form to think that there is a record updated though it is not so.
    what code can i add at the "when new record instance" trigger to prevent that.
    Thanks in advance.

    If you know that your when-new-record-instance is definitely NOT updating the record, you can amend it so that the last thing it does is use SET_RECORD_PROPERTY to set the record status back to QUERY.
    See SET_RECORD_PROPERTY in the Form Builder Help for details.

  • Form Personalization: How to validate record?

    Hi,
    We need your help. We have developed one custom form which captures data for Inter-Org transfer in Oracle Inventory. User enters Source Organization Code, Destination Organization Code, Item Number and rest of all other information. Source & Destination Organization are in one block of the form and Item number , Quantity etc are in another block on the same form. Item Number field is showing LOV of all list of items from mtl_system_items_b from master Org and that's the requirement of the form.
    Through Form Personalization, User wants while saving the record on the form, it should validate item-Organization assignment for both Source & Destination organization. Item should exist in Source & Destination organization else it should display error message while saving the record.
    Please help me how we can achieve this through Form Personalization.
    Thanks
    Rajesh

    trigger = when-validate-record
    condition =
    not exists (select 1 from mtl_system_items msi, mtl_parameters mp
    where mp.organization_code = :dest_org
    and mp.organization_id = msi.organization_id
    and msi.segment1 = :item_number)
    Action = message
    type = error
    message text = Item not assigned to dest. org.
    Sandeep Gandhi

  • Form does not display all records from table

    Hi guys
    I modified one form that was based on a signle DB table. I removed certain fields from the table and added some extra fields to that table. Then based on the new table I also modified the form and removed the text items related to old fields in the table and added new text items pointing to the new fields now. II have checked all the new items properties and they have don't seem to be wrong or so. But now the problem is the form does not display all the records from the table. before it used to display all records from the table when qureied but not now. It only certain records from the table containing all new data and also old data but the form does not display other records though I don't see any obvious discrepancy. Remember that the before doing the modifications, I have table back for the old, created another table that contained new records for the new fields, and then I inserted the old records and updated the new table data in the new table with these new table values. So this way I have got my new table. Could someone help why the new modified form fails to display all records from the new table updated table though it display some of them successfully.
    Any help will be appreciated.
    Thanks

    hi
    Set the block property of "Query All Records" to "YES"
    hope it will work.
    Faisal

  • Office 2013 hangs when saving files to local profile locations on Windows 2012 server

    We installed Office 2013 a few weeks ago instead of Office 2003 on a Windows 2012 standard terminal server. We installed the last updates and Office is up-to-date now, but we experience problems with saving word, excel and powerpoint documents when we start
    a new/clean document. It's not possible to save our documents to the local profile (desktop, documents etc.), but it's no problem to save our stuff to a network share on a different server. 
    Word is not responding after pressing save or save as and after a few seconds we see the 'microsoft is looking for a solution and will restart microsoft word'. 
    We did a complete reinstall of Office 2013 and removed the old installation with the removal tool from the microsoft website, without luck. We have the same saving issues with Office 2010, so it's not an Office 2013 issue. 
    We were looking in the access/rights on the terminal server, because we thought that it was an access/rights issue. But unfortunately we have the same problem with an domain admin user. 
    I tried to disable DEP and my AVG 2012 antivirus, but this steps are also not the issue.
    I'm looking for a solution and i'm working on this case for a few days now. It gives me a headache when i'm thinking about a clean installation of this server. So please contact me when you have a solution or a tip to solve this problems! 
    Thanks!

    Hi,
    In regarding of the issue, it may be caused a lot of reasons. Please check to see whether the following link is helpful:
    https://support.microsoft.com/kb/313937/en-gb
    http://support.microsoft.com/kb/921541/en-gb?p=1
    http://support.microsoft.com/kb/271513
    Then Office hang when saving the file also may be caused by a printer installation.
    Check to see the following link:
    http://blogs.technet.com/b/the_microsoft_excel_support_team_blog/archive/2012/04/12/excel-hangs-or-becomes-unresponsive-when-saving-or-closing-a-workbook.aspx
    If you could upload the event log, I'll do deeply
    research.
    Thanks,
    George Zhao
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click "[email protected]"

  • How do I enable a LiveCycle PDF form to be saved in Adobe Reader?

    I have an interactive PDF form that I created in LiveCycle. However, when it is opened with Adobe Reader, the user is unable to save it. They can only print from Reader. How do I enable the LiveCycle PDF form to be saved in Adobe Reader?

    You have to add save rights with Acrobat.
    Open you form in Acrobat and then save it via File > Save As Other > Reader Extended PDF > Enable More Tools.

  • HCM form hangs

    Hi everyone. I am encountering a problem with Adobe forms within the HCM Processes and Forms framework. I am not able to press the check and send button because of the never ending hour glass symbol. The form just seems to hang. This is not related to the hanging problem before when you press check and and send button then the form hangs. This has been fixed. In this case, I cannot even press check and send.
    I created the form using ALD 8.0 and tried to open in the portal using Adobe reader 9.0 and 8.1.1 but the problem still persists. What is strange is this is not happening to the standard forms like Birth of Child etc... There seems to be no problem with my custom form as I also tried it using a blank form and it still happens. The Form Wide ISR scripts and ZCI scripts have already been embedded into the form.
    Could it be because of ALD 8.0?
    Does anyone have any ideas of what's wrong?
    [IMG]http://i576.photobucket.com/albums/ss206/alexanderb522/HCMhanging.jpg[/IMG]

    Hi Chris,
    I have read your blogs before. Great work! However, this is not the problem I am encountering. I was able to fix the bug you described that occurs when you press check and send. This was fixed by upgrading from ECC 6.0 patch 12 to 19.
    I am experiencing a different problem where I cannot even press the check and send button. It does not hang on the form i.e I can enter data but if I move my mouse outside the form into the surrounding web dynpro component there is the never ending hour glass that does not let me press the buttons on the web dynpro component.
    I think it may be related to the version of the script installed...
    Any ideas?
    Thanks!

  • I used Preview to fill in a .pdf form. I saved it, re-opened and saw my annotations. When I attached it to an email, the annotation and filled-in materials were no there. What's happening?

    Having been gently chided by "How to write a good question," I offer additional information as a preamble to my question.
    I am writing about Preview 7.0 (826.4) on Mavericks 10.9.4; my computer is a MacBook Pro, late 2011 model with not modifications.
    I used Preview to fill in a .pdf form and saved it. To check, I re-opened the form and saw all the info I had filled in. However, when I attached it to an email, the info was not there; the form contained none of the info I had added. I re-did the form several times, but the results were the same when I attached it to email. What's going on?
    Here's a secondary matter. When I filled in the form, the print was red and the type too large. Though I went into fonts, etc. and selected a type size and color black, the info I added was still red and the wrong size. Again, how do I manage color, size, and font?

    Form document will automatically be saved after closing the file. As far as cloud message is concerned, it seems your Mobile link setting has been turned on. When you pressed device back button after filling the form, it was saved to your Acrobat.com account. You can access this document by going to Acrobat.com tab present in left pane. Its a cloud storage area where you can upload/save any document.
    Thanks,
    Adobe Reader Team

  • Forms cannot be saved by recepients with data

    My forms cannot be saved with data in them by recepients. When I go to distribute form ' FAiled to save the form to be published. Detailed eror: The file may be read-only, or another user may have it open. Please save the document with a different name or in a different folder.'
    Tried all of the above by message still appears. Using arobat 9 with form created from word doc
    Thanks
    Liam

    Hi zoebat,
    Please see Re: Trying to convert a pdf that contains xfa forms to word.
    If that isn't going to work for you, I would be happy to cancel your subscription and process a refund.
    Best,
    Sara

Maybe you are looking for