My Oracle Support Banner

CustomCode.js Changes not Reflected in Siebel eAdvisor (Doc ID 2549244.1)

Last updated on NOVEMBER 22, 2019

Applies to:

Siebel eAdvisor - Version 7.8.2.16 [19255] and later
Information in this document applies to any platform.

Symptoms


customCode.js changes are not reflecting in the Siebel eAdvisor.

We are trying to include replacement logic in the 'customCode.js' for the newly identified special characters with the existing 'customCode.js'.

In the Production eAdvisor application (Siebel Public Sector 7.8.16), there are some character replacement logic currently in use and that logic is handled by the "setTextData(txt)" function in the 'customCode.js' file.


The 'customCode.js' file is available under the following directory on the Web Server (HTTP Server):

"\swse\public\enu\issrun\cdaprojects\dwpfraimsppq\custom"

Following are some sample 'character replacement' logic in the customCode.js file:

txt = txt.replace(/“/g, "@speechMarkleft");
txt = txt.replace(/”/g, "@speechMarkright");
txt = txt.replace(/—/g, "@Hyphenminus");

But the above changes are not getting reflected in the eAdvisor application, even after restarting the Web Server.

The eAdvisor application still continues to do the earlier 'character replacement'.

Note the existing function where the above logic is added.

function setTextData(txt)
{
txt = txt.replace(/\r\n/g, "@newline");
txt = txt.replace(/'/g, "@singlequote");
txt = txt.replace(/"/g, "@doublequote");
txt = txt.replace(/\\/g, "@backslash");
txt = txt.replace(/&/g, "@ampersand");
txt = txt.replace(/=/g, "@equals");
txt = txt.replace(/{/g, "@leftcurly");
txt = txt.replace(/}/g, "@rightcurly");
return txt;
}

Custom code in customCode.js should execute the newly added replacement functionality.

STEPS
1. Make code changes.
2. Restart the Object Manager.


Changes are not occurring in the application.

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


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