Browser Script unable to invoke server-side Business Service or another Browser Script (Doc ID 497813.1)

Last updated on JULY 12, 2017

Applies to:

Siebel Tools - Version 7.7.2 SIA [18325] and later
IBM AIX on POWER Systems (64-bit)

Symptoms

A customer faced two issues with browser scripting during upgrade from version 7.5.3 to version 7.7.2.

1. A browser script seemed not to be able to invoke a server-side business service. The resulting output property set remained empty.

Example :

      var psInput = theApplication().NewPropertySet();
      var srvService = TheApplication().GetService("RB Refresh Financial Account");

      psInput.SetProperty("AccountNumber", this.BusComp().GetFieldValue("Account Number"));
      psInput.SetProperty("AccountType", "CA");
      psInput.SetProperty("UserID", this.BusComp().GetFieldValue("Customer Number"));

      var psOutput = srvService.InvokeMethod("Refresh", psInput);

      if (psOutput.GetProperty("ReplyMsg") != "")
      ...


The statement psOutput.GetProperty("ReplyMsg") always returns nothing.


2. A browser script seemed not to be able to invoke another browser script in the Application object, (general) section, that was referenced by a variable in the "top" object of the browser's domain object hierarchy.

Example:

function Applet_Load ()
{
    try   
   {
      var sBgColor = "";
      var sLastDate = this.BusComp().GetFieldValue("RB1 Online Trans Date");
      
      if ( (sLastDate.length != 0) && (sLastDate.substring(0, 10) == top.GetCurrentDate()) )
        sBgColor ="G";

        top.SetOnlineControls(this,sBgColor,"CurrentBalance","CashBalance","Effective");
      }
      catch (e)
      {
        alert ("Error Applet_Load (CA) : " + e.toString());
      }
}



The function SetOnlineControls is defined as follow in the (declarations) section :

top.SetOnlineControls = SetOnlineControls;

function SetOnlineControls(oApplet, sBgColor)
{
    ...
}

 

Changes

 

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