The eScript code in Application_PreNavigate run twice if it returns CancelOperation and the destination is in dropdown list (Doc ID 2152560.1)

Last updated on MARCH 02, 2017

Applies to:

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

Symptoms

In the following scinario, the escript code in Application_PreNavigate will be invoked twice.

(1) In Siebel Tools, go to [Application] and select 'Siebel Universal Agent'.
(2) Open eScript editor by pressing right button and selecting 'Edit Server Scripts'.
(3) Add a script as follow:
--------------------------------------
function Application_PreNavigate (DestViewName, DestBusObjName)
{
if (DestViewName == "Service Request Screen Homepage View") {
TheApplication().RaiseErrorText("the view is not accessible");
return (CancelOperation);
}
return (ContinueOperation);
}
---------------------------------------
(4) Compile SRF file and run Siebel Call Center in Open UI mode in IE or Firefox (the issue does not occur in Chrome).
(5) Change the navigation method to TAB (via [Tools]->[User Preferences]->[Behavior]->[Navigation Control] or 'DefaultNavigation' Object Manager parameter).
(6) Narrow the width of browser window so 'Service' screen tab gets hidden in the drop downn list under the right edge icon on the screen tab bar.
(7) Click the right edge icon on the screen tab bar and click 'Services' in the drop down list.
(8) You will see that the error message of 'the view is not accessible' is displayed twice.

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