Forms hanging

Hi,
I should predicate this by saying I'm not an Oracle developer so I'm not sure about the terminology...
An issue just surfaced at my office with people who have recently moved to Windows XP. The forms, or the form server, hang on some people after they have refreshed the form server several times. Often what triggers the problem is closing the browser window with the form, then refreshing the form server. I'm having problems finding the source of the error since it works for some users, but not for others.
We are using:
Oracle 10g
Jinitiator 1.3.1.22
Sorry about the vague description but any advice would be greatly appreciated

It's in here. The problem is that oracle kb only indexed it under ms06-013 and not
under KB-912812. Any problem related to a MS update should always be referenced
under all ID numbers.
Subject:      After IE Upgrade or MS Windows Update, Users Now Have to Activate Forms Applet
     Doc ID:      Note:357545.1      Type:      PROBLEM
     Last Revision Date:      24-MAR-2006      Status:      PUBLISHED
In this Document
Symptoms
Changes
Cause
Solution
References
Applies to:
Oracle Forms - Version: 6.0.8 to 10.1.2
Microsoft Windows (32-bit)
Oracle Jinitiator
Sun JDK plug-in
MS Internet Explorer
Symptoms
An Oracle Forms application is run in the latest version of IE (or a version of IE updated by the latest MS Windows update)
The first screen of the application is displayed but it is surrounded by a dotted line. When the mouse hovers over the dotted region, a popup window appears stating that the user needs to click in the region, in order to activate the object. After the user has clicked once on the object to activate it, the Forms application runs in the same way as before for the duration of the Forms session.
The problem does not occur when a forms application is being run with applet parameter separateFrame=true.
It also does not occur at all when running the application via browsers like Mozilla and Netscape.
Changes
Microsoft has decided to change how Internet Explorer (MS IE) handles embedded objects in upcoming patches of the browser. MS IE will no longer automatically activate an embedded object. Instead, the user must click in the area handled by the object to activate it before they can interact with it. For more details about this, please see the article on the MSDN website.
Reference:
http://msdn.microsoft.com/ieupdate
Note: Microsoft will be initially rolling out this change through the public MSDN website.
Reference:
http://support.microsoft.com/kb/912945
Note: The changes will also be rolled out through a standard Windows Update, and thus many users will be running with this updated MS IE (without necessarily realizing it).
Cause
Oracle Forms renders its user interface as a java applet, which in MS IE is implemented as an embedded object. Thus, Forms users running their applications in the upcoming version of MS IE will be affected by this change
Solution
Oracle have been working with Microsoft to understand how Oracle Forms can workaround this issue. As per Microsoft’s recommendation Oracle has provided a 'javascript' implementation which allows Oracle Forms to be started without user interaction. To obtain this solution, download Patch 5017052 from Oracle Metalink. The patch is available for 9.0.4 and 10.1.2 releases.
(Regards Oracle Forms 9.0.4, OracleAS 10g Rel 1 / Oracle Developer Suite 10g Rel 1 patchset 2 (9.0.4.2) must be applied first)
@ Note: The change does not affect Oracle E-Business Suite (e.g. Oracle Apps 11i) because forms running within this technology stack are deployed with separateFrame=true.
References
Running Oracle Forms applications in upcoming patches of Microsoft Internet Explorer
http://www.oracle.com/technology/products/forms/htdocs/ieupdate-otn-1.html
Note 362085.1 - FRM-92101 IF CLIENT HAS MS KB912945 PATCH INSTALLED AND USES JPI 1.4.X
Bug 5108848 - Frm-92101 If Client Has Ms Kb912945 Patch Installed And Uses Jpi 1.4.X
Keywords
'INTERNET~EXPLORER'

Similar Messages

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

  • Forms hangs when using result of an OUT parameter to do an Insert

    Hello,
    I think I have slightly odd problem here... I'm currently migrating a Forms 6i client-server application to Forms 10g904. I found that one of my Forms was hanging i.e. screen goes blank, 'activity' bar on the bottom right just keeps whirring away indefinitely.
    After much investigation, the hanging-form problem occurs in the following scenario:
    - In a routine in a Forms pll library, a variable is declared e.g. w_capture_output
    - In the first round of a loop, this variable is passed into a database stored proc, which has an OUT parameter to return a result e.g. SOME_PROC(w_some_input, w_capture_output);
    - w_capture_output comes back with a value e.g. 'P'
    - This is then used in an Insert e.g. INSERT INTO some_table (a, b) VALUES (1, w_capture_output)
    - The next round of the loop; the variable is passed in again into the proc. It still holds the value from the last round e.g. 'P'
    - In this round, the logic of the proc is such that the OUT argument is set to null i.e. when the proc has finished, w_capture_output is now null. This can be confirmed with IF w_capture_output IS NULL THEN display_some_message. The code is still all running fine.
    - But now when I run INSERT INTO some_table (a, b) VALUES (2, w_capture_output) - the form hangs.
    I can, however, work around this and prevent the form from hanging simply by ensuring at the start of each round of the loop that I explicitly set w_capture_output back to null before passing it into the proc that sets it. Or alternatively, after it comes back from the proc, the following also prevents the hanging problem:
    w_capture_output := NVL(w_capture_output,NULL);
    To summarise - if I pass a variable into a proc taking an OUT parameter, AND that variable is not null going into the proc, AND the proc sets it to null AND I then try to use that variable in an Insert statement - the form hangs. Something horrible is happening to the variable inside the procedure, I think.
    Now, I can kind of see why passing a non-null variable into an OUT argument might cause problems (although only if you then try to set it to null - not if you set it to another, non-null value). However, exactly the same code works fine under Forms 6i, using the same database instance and proc. And if Oracle have changed the rules, shouldn't it throw an error, rather than just hanging? I'd prefer not to have to use the workaround, as this is a very large app and I don't know yet how many places would need it.
    Has anyone else come across this issue..? (Database is 9.0.2. btw, Forms are 10g904)
    Cheers,
    James

    Try
    v_log_name := 'Fnd_File.LOG_OUT';Hey, what r u doing with above code?
    You are assigning string value to a variable?
    The compilation won't give any error.
    And OP thinks it's solution!!!!!!!!!!!
    LOL

  • 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

  • Forms hangs after using FileUpload PJC  in our application

    1) I've successfully tested the stand-alone FileUpload demo form provided by Oracle for moving files from C/S to the middle tier machine. That tells me all the environment variables, etc. are good to go.
    2) When i try to use the same demo form from my application using the call_form function, it works till the point of transferring the file to the server. Then when I try to close the demo form by hitting the close button to go back to my application, the form hangs up with no error message either in the Java console or the Application.
    3) Even when i made changes to my application to implement the PJC as per the Oracle implementation paper, the same result as #2.
    We are using Forms 6i (v6.0.8.19.2), iAS Rel1 (v1.0.2.2.2a) running on W2000.
    BTW, the size of the file is 1K. The last message I see in the Java console is oracle/ewt/laf/basic/ProgressBarPainter.class
    Any ideas or help appreciated. Thanks.

    Hi,
    You can try a package named: JTwain, which is available at http://asprise.com/product/jtwain.
    JTwain supports all kinds of digital cameras and scanners. You can use Java to access, contorl digital cameras and scanners, and of course, to acquire images with flexible settings.
    The developers' guide is available @ http://asprise.com/product/jtwain/devGuide.php
    In the simplest case, one line of Java code can solve your problem.
    Good luck!

  • Webutil - Forms Hangs

    Hi All,
    I am using Webutil for my forms. I have just created a small form with only one block. I am using forms 9i.
    I have signed the Jar fiels as per the doucment and when i run the form in the Java Console I have got the following message
    Oracle JInitiator: Version 1.3.1.8
    Using JRE version 1.3.1.9 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\cwi1091.WIPRO Proxy Configuration: Manual Configuration
    Proxy: blrproxy.wipro.co.in:80
    Proxy Overrides: *.wipro.co.in,<local> JAR cache enabled
    Location: C:\Documents and Settings\cwi1091.WIPRO\Oracle Jar Cache
    Maximum size: 50 MB
    Compression level: 0 ----------------------------------------------------
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    q: hide console
    s: dump system properties
    t: dump thread list
    x: clear classloader cache
    0-5: set trace level to <n>
    Loading http://wi-3a09-tarun.wipro.co.in:8888/forms90/java/f90all_jinit.jar from JAR cache
    Loading http://wi-3a09-tarun.wipro.co.in:8888/forms90/java/jacob.jar from JAR cache
    Loading http://wi-3a09-tarun.wipro.co.in:8888/forms90/java/webutil.jar from JAR cache connectMode=HTTP, native.
    Forms Applet version is : 90270
    After this the forms hangs. Pls tell me what should i do.
    Regards
    Reddy

    Use the correct template for the app - see the WebUtil doc.
    baseHTMLjinitiator should be set to webutiljini.htm

  • 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

  • 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

  • Receipt form hangs in r12

    ENV Details:
    EBS version: 12.1.2
    DB version : 11.1.0.7.0
    OS: RHEL 4.4
    java version "1.6.0_10"
    Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
    Java HotSpot(TM) Server VM (build 11.0-b15, mixed mode)
    Hi,
    Navigation: Purchasing super user---->receiving---->receipts
    While trying to open the receipt form, then the forms hangs, then after few moments the application is freezed.
    But all other forms are working fine.
    logfiles(application.log)
    =====
    15/04/04 16:21:15.229 formsweb: 10.1.3.4.0 Started
    15/04/06 12:21:59.906 formsweb: ListenerServlet init()
    15/04/10 19:48:23.432 formsweb: Forms session <59> aborted: unable to communicate with runtime process.
    15/04/10 19:48:23.432 formsweb: Forms session <59> exception stack trace:
    java.io.IOException: FRM-93000: Unexpected internal error.
    Details : No HTTP headers received from runform
            at oracle.forms.servlet.ListenerServlet.forwardResponseFromRunform(Unknown Source)
            at oracle.forms.servlet.ListenerServlet.doPost(Unknown Source)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
            at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
            at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
            at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
            at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
            at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
            at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
            at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
            at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
            at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
            at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
            at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
            at java.lang.Thread.run(Thread.java:619)
    I tried lot of workarounds, but still the issue persists.please assist me.
    Thanks,
    -Prasath

    Hi Kiran,
    1.As per MOS 443922.1,Compiled Flexfields again using adamin
    2.Clear the caches and persistencse and ran autoconfig
    3.compiled forms and relink the executables
    sure, i will try with trace enabling at form level.
    Thanks,
    -Prasath

  • Applicaiton form hangs when trying to make C# form visible from menu event

    I have a MDI windows app, running as an addon on Verion 2007A
    The applicaion is written in C# ( VS 2005)
    I am a newbee to C# ( VS too ) as well.
    All I want is to display the MDI container form when a menu is clicked. But the windows form hangs forever, and does not show.
    if I try to show the form within Main method then no issues! The problem happens only off the SBO menu event .
    I cannot have the form loaded all the time. so I need the services of the SBO menu click, so a user can open it whenever he wants.
    Note: I can open any other form off the menu click, but that , provided they are not MDI containers and they are opened with ShowDialog(); If I use Show(); then again hangs.
    I tried opening the MDI form in Main method, ( wich of course works) and hide it when not needed. I could hide the form, but when I issued a command myForm.visible = true;  through the SBO menu event, again hangs!
    my applicaion Main function is as follows. The class AA_SBO_MAIN  holds the SBO application events.
    static void Main()
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Classes.AA_SBO_MAIN oSBOMain = null;
                oSBOMain = new Classes.AA_SBO_MAIN(); 
                 Application.Run();        
    the menu event simply does
                  frmMain fm = new frmMain();
                  fm.Visible = true;

    Hi
    I try doing these few steps and it seems to work!  The code is in Visual Basic though!
    Declare the form variable
    Private mMDI As New frmMDI
    In your menu click event enter a code like this
    If mMDI Is Nothing Then mMDI = New frmMDI
    mMDI.Visible = True
    On your startup function do something like this
    Public Sub New()
           mMDI.Show() : mMDI.Visible = False
    End Sub
    And more important ... in the form class comment all the code inside the Dispose method
    and finally do the following
    Private Sub frmMDI_Closed(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Closed
            Me.Hide()
    End Sub
    it seems to work for me . Hope it helps you too!

  • Adobe form hangs after error message

    Hi All,
    I developed interactive adobe form with 1 field as mandatory. Form is integrated with webdynpro and working fine but if user dont pass value to mandatory field, it gives error 'Atleast 1 required field empty' but after that form hangs. it is not responding so that i can fill the value.
    I made field object->value type as 'User entered - Required'.
    Please suggest if i am missing something.
    Thanks

    Solved by me

  • Form hangs while calling Report

    Hi, I am converting some Forms/reports from 6i to 10g.
    The form I am testing is calling a report repeatedly using the following code:
    rep_id := Find_Report_Object('FILE_RECORD_DESCRIPTION');
    <<open_files>>
    OPEN files;
    <<get_next_file>>
    FETCH files INTO file_name;
    IF files%NOTFOUND
         THEN
         CLOSE files;
         RETURN;
    END IF;
    :FILE_RECORD_DESC_STATUS := 'Doing file' || file_name;
    SYNCHRONIZE;
    IF :TYPE = 'PDF'
         THEN
         SET_REPORT_OBJECT_PROPERTY (rep_id,REPORT_DESNAME,'C:\DOC\PDF\' || file_name || '.pdf');
         SET_REPORT_OBJECT_PROPERTY (rep_id,REPORT_DESFORMAT,'PDF');
    SET_REPORT_OBJECT_PROPERTY (rep_id,REPORT_OTHER, 'P05_FILES="' || file_name || '"');
    END IF;
    IF :TYPE = 'HTML'
         THEN
         SET_REPORT_OBJECT_PROPERTY (rep_id,REPORT_DESNAME,'C:\DOC\' || file_name || '.htm');
         SET_REPORT_OBJECT_PROPERTY (rep_id,REPORT_DESFORMAT,'HTML');
    SET_REPORT_OBJECT_PROPERTY (rep_id,REPORT_OTHER, 'P05_FILES="' || file_name || '"');
    END IF;
    report := Run_Report_Object(rep_id);
    GOTO get_next_file;
    When REPORT_DESFORMAT is set to ‘HTML’, everything works well. Around 40 .htm documents are created on C:\DOC. But when REPORT_DESFORMAT is set to ‘PDF’ the form hang after creating 10 or 11 .pdf documents!!!
    Any idea what I am doing wrong? Do I have to free up some sort of buffer/memory/other things when creating .pdf document?
    Regards
    Yves

    I tried different things and it seams that the amount of data (i.e the size of the .pdf) determine how many times the report can be called before the form hangs. Form did hang after only 2 call for big report (around 20 pages each) but hangs after several calls for smaller ones???
    Yves

  • Form hangs on error

    Hi,
    I have a form with a normal block.
    In one item, I have a When-validate-item, which calls a db-package. In their, an error is raised by qms$errors.show_message.
    What happens now is that the form shows the error-window (without the errortext being visible, but thats something else), but then starts revalidating the item. So the form hangs, because he is constantly switching between the two blocks/windows/items.
    Has anyone experienced the same?
    Thanks
    PS: I have a work-around but it don't like to use it.

    Kristof,
    I did experience the same behaviour.
    From the When-Validate-Item a package procedure was called.
    Procedure called a function, if the return value from the function returned false --> raise qms$errors.show_message.
    Because the message was raised from the database the form will navigation to the error window.
    This is being done with a go_block call, but you will return to the When-Validate-Item trigger.
    Then the form will get in a loop.
    The solution I used was to raise the qms$errors.show_message from within the form.
    Instead of calling the package procedure, I called the package function.
    If the return value of the function equals false I raise the qms$errors.show_message from within When-Validate-Item.
    This way you won't navigate to the error-window and therefore the looping problem will not occur.
    Regards,
    Marcel

  • Form hangs when try to open excel

    Hi everybody,
    When I try to upload some data from excel it work's ok when i'm doing it on xp, but when i'm on windows server 2003 won't upload. Form hangs on code noted below. On both OS are Excel 2003.
    args := OLE2.create_arglist;
    OLE2.ADD_ARG(args, p_filename);
    vdoc :=OLE2.INVOKE_OBJ(vworkbooks,'Open',args); -- on this code form hangs
    OLE2.destroy_arglist(args);
    I tried various things but without success.
    If I need provide some additional information please let me know.
    Thanks

    What version of WebUtil are you using? There is a known problem with 1.0.2 (beta) where the EXCEL.EXE process is not released by the form.

  • Form hangs some time frequently??

    hello expert,
    in my erp system some time a form hangs very frequantly.
    what could be the reason???
    form is used for new BOM or to modify BOM.
    there is two buttons
    Add and Mofidy.
    when i click on Add button, its hangs some time very frequently but modify works same time while add button hang the form. this problem come some days.
    Add button code is below:
    DECLARE
    form_name VARCHAR2(100):=:System.Current_Form;
    cntrl_block VARCHAR2(100):=GET_FORM_PROPERTY(form_name ,FIRSTBLOCK);
    first_block VARCHAR2(100):=GET_BLOCK_PROPERTY(cntrl_block,NEXTBLOCK);
    last_block VARCHAR2(100):=GET_FORM_PROPERTY(form_name ,LASTBLOCK);
    temp_block VARCHAR2(100):=first_block;
    BEGIN
    delete from str_item_temp;
    IF :GLOBAL.navigation = 'D' AND :GLOBAL.mode = 'X'
    THEN
    set_item_property(cntrl_block||'.SAVE' ,ENABLED,PROPERTY_TRUE);
    set_item_property(cntrl_block||'.CLEAR' ,ENABLED,PROPERTY_TRUE);
    set_item_property(cntrl_block||'.MODIFY' ,ENABLED,PROPERTY_FALSE);
    set_item_property(cntrl_block||'.ENTER_QUERY' ,ENABLED,PROPERTY_FALSE);
    set_item_property(cntrl_block||'.EXECUTE_QUERY',ENABLED,PROPERTY_FALSE);
    :GLOBAL.mode := 'A';
    :STATUS_DISPLAY := 'ADD MODE';
    LOOP
         Set_Block_Property(temp_block,INSERT_ALLOWED,PROPERTY_TRUE);
         EXIT WHEN temp_block=last_block;
         temp_block:=GET_BLOCK_PROPERTY(temp_block,NEXTBLOCK);
    END LOOP;     
    GO_BLOCK(first_block);
    CLEAR_BLOCK(NO_VALIDATE);
    ELSIF :GLOBAL.navigation = 'D' AND :GLOBAL.mode != 'X'
    THEN
    mess('Press Clear Button First');
    GO_BLOCK(cntrl_block);
    ELSE
    mess('Mode is not applicable');
    GO_BLOCK(cntrl_block);
    END IF;
    END;
    modify button code is below:
    DECLARE
    form_name VARCHAR2(100):=:System.Current_Form;
    cntrl_block VARCHAR2(100):=GET_FORM_PROPERTY(form_name ,FIRSTBLOCK);
    first_block VARCHAR2(100):=GET_BLOCK_PROPERTY(cntrl_block,NEXTBLOCK);
    last_block VARCHAR2(100):=GET_FORM_PROPERTY(form_name ,LASTBLOCK);
    temp_block VARCHAR2(100):=first_block;
         first VARCHAR2(100):=first_block||'.'||GET_BLOCK_PROPERTY(first_block,FIRST_ITEM);
    last VARCHAR2(100):=first_block||'.'||GET_BLOCK_PROPERTY(first_block,LAST_ITEM);
         temp VARCHAR2(100):=first;
    BEGIN
    IF :GLOBAL.navigation = 'D' AND :GLOBAL.mode = 'X'
    THEN
    set_item_property(cntrl_block||'.SAVE' ,ENABLED,PROPERTY_TRUE);
    set_item_property(cntrl_block||'.CLEAR' ,ENABLED,PROPERTY_TRUE);
    set_item_property(cntrl_block||'.ENTER_QUERY' ,ENABLED,PROPERTY_FALSE);
    set_item_property(cntrl_block||'.EXECUTE_QUERY',ENABLED,PROPERTY_FALSE);
    set_item_property(cntrl_block||'.ADD' ,ENABLED,PROPERTY_FALSE);
    :GLOBAL.mode := 'M';
    :STATUS_DISPLAY := 'MODIFY MODE';
    LOOP
         IF Get_Item_Property(temp,ITEM_TYPE) NOT IN ('BUTTON','CHART ITEM','DISPLAY ITEM','IMAGE','VBX CONTROL')
         THEN     
              IF Get_Item_Property(temp,QUERYABLE)='TRUE'
              THEN     
              -- set_item_property(temp,VISUAL_ATTRIBUTE,'MODIFY');
              set_item_property('block.bom_mod_code',VISUAL_ATTRIBUTE,'MODIFY');
              ELSE
                   set_item_property(temp,VISUAL_ATTRIBUTE,'ADD');
              END IF;
              END IF;
    IF temp=last
              THEN
              EXIT;
              ELSE      
                   temp:=first_block||'.'||GET_ITEM_PROPERTY(temp,NEXTITEM);     
              END IF;
    END LOOP;
    LOOP
         IF temp_block=first_block
         THEN     
         Set_Block_Property(temp_block,INSERT_ALLOWED,PROPERTY_TRUE);
         ELSE
              Set_Block_Property(temp_block,INSERT_ALLOWED,PROPERTY_TRUE);
         END IF;     
         Set_Block_Property(temp_block,UPDATE_ALLOWED,PROPERTY_TRUE);
         EXIT WHEN temp_block=last_block;
         temp_block:=GET_BLOCK_PROPERTY(temp_block,NEXTBLOCK);
    END LOOP;     
    GO_BLOCK(first_block);
    CLEAR_BLOCK(NO_VALIDATE);
    ELSIF :GLOBAL.navigation = 'D' AND :GLOBAL.mode != 'X'
    THEN
    mess('Press Clear Button First');
    GO_BLOCK(cntrl_block);
    ELSE
    mess('Mode is not applicable');
    GO_BLOCK(cntrl_block);
    END IF;
    END;
    when we access same form in network , is there any restriction on no of instance of form access in network.?
    Thanks n regards
    Yash

    Hi Yash,
    I've seen this happen recently at a few of my customer sites with 11g (11gR1 and 11gR2), where the forms application will hang intermittently or every time a certain object is used. Once we applied this patch to our customer's environments, the issue went away. The issue had to do with one of the following issues: Using multiple cores with JRE 6 or displaying multiple alerts in an application.
    Take a look at Oracle Bug in MyOracleSupport: 12433970
    There is also an article that goes along with it: 1245895.1
    Hope this helps!
    Thank you,
    Gavin
    http://www.pitss.com

  • HCM form hangs on some machine

    Hi,
    We are having problem that HCM forms hangs only on certain machines. Its spins forever. No standard or custom event can be submited. Exactly same forms from the same location works fine on other machines. it looks like setting on some machines blocking request.
    Does anyone have any ideas of what's wrong?
    Thanks,
    Oleg

    We also did some client trace and on the client machine we see the trace
    15:07:43.879 Got a message from Adobe Reader: log 1: error: Adobe Acrobat Professional: 2010-02-15T20:07:43.859Z: Error installing message handler: message:HostContainerDisclosurePolicy is not defined fileName:Doc:Init lineNumber:769 stack:RegisterMessageHandler()@Doc:Init:769 RegisterMessageHandler()@:0 @XFA:data[0]:ready:13 name:ReferenceError 2: 3:
    on the working machine instead of this we see
    15:12:27.925 Got a message from Adobe Reader: zciReady 1: 2: 3:
    also then on broken one we see
    15:07:44.631 onError: number: 0 description: message: Target document not disclosed. name: MessageDocNotDisclosedError
    Any idea what might cause this kind if error on some machines.
    Thanks,
    Oleg
    Edited by: Oleg Sokolov on Feb 15, 2010 9:17 PM

Maybe you are looking for