Open UI WriteRecord Does Not Save Data in Browser Script even with BusCompAccessLevel = All (Doc ID 1567743.1)

Last updated on JANUARY 30, 2017

Applies to:

Siebel CRM - Version 8.1.1.9 [23016] and later
Information in this document applies to any platform.
Checked for Relevance on JAN-30-2017

Symptoms

On :  8.1.1.9 [23016] version, Siebel VB / eScript / COM

ACTUAL BEHAVIOR  
---------------
After upgraded to 8.1.1.9 Open UI, the bc.WriteRecord() in browser script does not save data even with BusCompAccessLevel = All.
We have the following code, triggered by a minibutton, on an Contact Activity List Applet, in Pre_InvokeMethod:

switch(name)
{
case "AddComment":
{
var bc = this.BusComp();
var currentComment = bc.GetFieldValue("Comment");
bc.SetFieldValue("Comment", "New Comment::"+currentComment);
bc.WriteRecord();
return ("CancelOperation");

}
default:
{
return ("ContinueOperation");
}
}

This code SHOULD set the value of the currently selected Activity to add 'New Comment::" to the beginning of the existing comment. 

In Open UI, however, when we step off the screen tab and return back to this applet, the value has returned to its original value.

Additionally, the cursor remains a 'Busy' cursor for approximately 15 seconds.

EXPECTED BEHAVIOR
-----------------------
In Open UI,  this code should set the value of the currently selected Activity to add 'New Comment::" to the beginning of the existing comment  and save the changes to the database so that even after step off the screen tab and return to this view, the changes would be still be displayed on the UI.


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Log into Siebel Open UI
2. Go to Contact Activity List Applet
3. Click the AddComment button, and the Comment field is updated with "New Comment::" to the beginning of the existing comment.   But when step off the screen tab and return, the value has returned to its original value.
Additionally, the cursor remains a 'Busy' cursor for approximately 15 seconds. 

BUSINESS IMPACT
-----------------------
The issue has the following business impact:
Due to this issue, users cannot save the data

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