My Oracle Support Banner

In The Browser PreSetFieldValue(fieldName, Value), Value Parameter Is Becoming Null. (Doc ID 2645541.1)

Last updated on MARCH 05, 2020

Applies to:

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

Symptoms

STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Login to Siebel Tools.
2. Create a dev_sadmin_browserscript workspace.
3. Open the Workspace.
4. In the Object Explorer, query for the Business Component "Service Request"
5. Right click and click on Edit Browser Scripts.
6. Add the below browser script in the BusComp_PreSetFieldValue event.

function BusComp_PreSetFieldValue (fieldName, value)
{

alert("Testing :" + value);

var fieldval = value;
var oBS;
      var inpPS;
      var outPS;
      inpPS = theApplication().NewPropertySet();
      outPS = theApplication().NewPropertySet();

  with(inpPS)
{
SetProperty("Instruction",value);
SetProperty("Instruction Type",fieldval);
SetProperty("Note Id",fieldName);
}


var FiedVal1 = inpPS.GetProperty("Instruction");

var FiedVal2 = inpPS.GetProperty("Instruction Type");

alert("FiedVal1 :" + FiedVal1);

alert("FiedVal2 :" + FiedVal2);

 oBS = theApplication().GetService("Workflow Process Manager");
      //outPS = oBS.InvokeMethod("RunProcess", inpPS);
      inpPS = null;
      outPS = null;
    

return ("ContinueOperation");
}

7. Open the browser, clear cache.
8. Open the application url and login
9. Open the Workspace explorer and open the dev_sadmin_browserscript workspace
10. click on Inspect button
11. Navigate to Service Request view.
12. Change a field value for example change the field value of Summary to one
13. First alert pop's up as Testing : one
14. click ok.
15. second alert pop's up as FiedVal1 :
16. click ok
17 third alert pop'sup as  FiedVal2 : one


The value when assigned directly to a process property is nullified. The same works fine when assigned first to a variable and then assigned to process property.



Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.