Monday 6 January 2014

GetService and theApplication() are Not Working In Browser Script In Siebel 8.1.1.11 (SIA)

GetService and theApplication() are Not Working In Browser Script In Siebel 8.1.1.11 (SIA)

SOLUTION

Engineering Team is currently working on fixing these issues. In the mean while you can use the below work around.

The work around requires changing a standard .js file from the Siebel Client framework.

Files to be modified: $siebsrvr_location$\webmaster\siebel_build\scripts\applicationshadow.js

Steps to apply the fix

 1. Replace the function theApplication() implementation in applicationshadow.js with the below change.

Existing implementation of the function theApplication()
function theApplication ()

{

   if ( App() == null )

       return null;

    

   if(SiebelAppFacade != undefined && SiebelAppFacade.InterfaceSI != undefined && SiebelAppFacade.InterfaceSI.App != undefined)

       return App().GetShadow();

   else

       return App().shadow;

 

}



Implementation with Fix

function theApplication ()

{

   if ( App() == null )

       return null;

    

   if (IsOpenUI())

       return App().GetShadow();

   else

       return App().shadow;

 

}

2. Replace the function SWEAlert () implementation in applicationshadow.js with the below change

Existing implementation of the function SWEAlert ()

function JSSApplicationShadow_SWEAlert (text)

{

   if (typeof (top._swescript) != "undefined")

   {

      top._swescript.SWEAlert (text);

   }

}


Implementation with Fix

function JSSApplicationShadow_SWEAlert (text)

{

   if (IsOpenUI())

   {

     window.SWEAlert (text);

   }

   else if (typeof (top._swescript) != "undefined")

   {

      top._swescript.SWEAlert (text);

   }

}


3. Replace the function JSSApplicationShadow () implementation in applicationshadow.js with the below change
Existing implementation of the function JSSApplicationShadow()
function JSSApplicationShadow (application)
{
   if (application != null)
   {
      this._application = application;
      application.shadow = this;
      this._application.SeblTrace(2,"JSSApplicationShadow Initialized");
   }
  
   if(!IsOpenUI())
   {
        this.swescriptFrame = top._swescript;

   }
}

Implementation with Fix
function JSSApplicationShadow (application)
{
   if (application != null)
   {
      this._application = application;
      application.shadow = this;
      this._application.SeblTrace(2,"JSSApplicationShadow Initialized");
   }
   if (IsOpenUI())
   {
      this.swescriptFrame = window;
   }
   else
   {
      this.swescriptFrame = top._swescript;
   }
}
4. Restart the web server after applying the fix

5. Clear the Browser cache and test.

for more info

https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=247346837178836&id=1604411.1&displayIndex=3&_afrWindowMode=0&_adf.ctrl-state=89vqlzbd_61

8.1.1.11 Installation Fails when attempting to create a backup of the current Installation

8.1.1.11 Installation Fails when attempting to create a backup of the current Installation

Oracle provide a solution for this issue

In the installation location ...\Siebel_Enterprise_Server\Disk1\install there is a file named oneclick.properties

Open it into an editor and locate the line

BACKUP_FOLDER=

Please specify the location where the backup should be taken.

The backup will be made to

$BACKUP_FOLDER\$SIEBEL_ROOT

e.g In Siebel is installed in /sblqa, and the BACKUP_FOLDER=/temp/backup, then the backup will be made to /temp/backup/sblqa

The installer then needs to copy the contents of the existing installation to backup location specified above and then try to delete the contents of existing installation directory.

Modify the backup command line to do a copy instead of a move command:

e.g.

#UNIX_BACKUP_CMD will be used in case BACKUP_FOLDER parameter has a non empty value. Do not change %SOURCE_ORACLE_HOME_LOCATION% and %BACKUP_LOCATION% in command

UNIX_BACKUP_CMD=cp -r ORACLE_HOME_LOCATION BACKUP_LOCATION&&rm -rf ORACLE_HOME_LOCATION/*

Save the file and rerun the install.