Browser Script Not Working In Open UI IE11 (Doc ID 2035671.1)

Last updated on MARCH 02, 2017

Applies to:

Siebel CRM - Version 8.1.1.11.14 [IP2013] and later
Information in this document applies to any platform.

Symptoms

Browser script added to Applet_Load event to make a control read only based on some condition such as user responsibility. Used Control.SetProperty("ReadOnly", "TRUE") in script to accomplish this.

But it is not working in Open UI with browser IE11. What happens is when a user navigates to the view for the first time and if the conditions are true then control becomes read only as expected but if in the same session, if user does a query on that applet or if moves to some other record within the applet then control becomes editable even if conditions for making the control Read only are true. So basically browser script at Applet_Load event of applet is getting executed only for the first time when the view loads but after that it is not getting executed if user remains in the same view. This property does not work then after until the user starts a new session and again it works only for the first time there and never after.

This browser script to enable/disable the control is working fine in High Interactivity browser IE8.

Repro steps:

1. Using Siebel Tools, edit "Employee Entry Applet (SCW)" browser script to
add this:
function Applet_Load ()
{
    try
    {
        var MyJobTitle;
        MyJobTitle = this.FindControl("JobTitle");
        MyJobTitle.SetProperty("ReadOnly", "TRUE");
    } // End of Try
    catch(e)
    {
        throw e;
    }
    finally
    {
    }
}
2. Similarly, add the following script to Applet_PreInvokeMethod of the same
applet
function Applet_PreInvokeMethod (name, inputPropSet)
{
    try
    {
        var MyJobTitle;
        MyJobTitle = this.FindControl("JobTitle");
        MyJobTitle.SetProperty("ReadOnly", "TRUE");
    } // End of Try
    catch(e)
    {
        throw e;
    }
    finally
    {
    }
    return ("ContinueOperation");
}
3. Add the applet "Employee Entry Applet (SCW)" to view "Employee List View".
4. Compile the changes and launch Financial Services Application.
5. In Open-UI mode, navigate to "Employee List View".
6. Notice that the "Job Title" field is read-only. However, if user performs
Query or New (Record) operation, the "Job Title" field becomes editable.
7. Only when user steps off of the applet and then returns back, the "Job
Title" field becomes read-only based on the code from Applet_PreInvokeMethod.
8. But again, if user performs Query or New, the field becomes editable.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms