When Server Script Invoked On Sitemap, ActiveViewName & ActiveBusObject Returns Wrong Value (Doc ID 2140906.1)

Last updated on MARCH 02, 2017

Applies to:

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

Symptoms

Customer is reporting that ActiveViewName & ActiveBusObject returns wrong value when Server Script is invoked on Sitemap.

Problem Description:
Trying to call Application methods ActiveViewName & ActiveBusObject when a user is on sitemap, Serverscript is returning the view name and BO of previous screen (the view before navigating to sitemap).
Seeing this issue when using ActiveView or ActiveBO code when on Sitemap

While user runs the same using BrowserScript, it seems to return values correctly in that case
ActiveViewName = null, ActiveBusObject is nothing.

Repro Steps:

Using Siebel Tools, do the following:
1. Add two Toolbar icons.
2. Their commands invoke Business Services (Target=browser and Target=server) respectively.
3. Both Business Services (in browser and server styles respectively) invoke Active View and Active BO.
4. When User navigates to Sitemap and click on these Toolbar icons (buttons), the browser BS returns Active View as Null and Active BO as "" (Blank).
5. But the Server BS returns Active View Name as the Previous View that User navigated from and Active BO Name as the Previous BO that User Navigated from.

Sample Browser script code :-
    var vw = theApplication().ActiveViewName();
    var bo = theApplication().ActiveBusObject();
    var nm = "";
    if (bo != null)
    {
        nm = bo.Name();
    }
    alert(" View Name = " + vw + " Active BO is : " + nm);

Sample Server Script code :-
    var vw = TheApplication().ActiveViewName();
    var bo = TheApplication().ActiveBusObject();
    var nm = "";
    if (bo != null)
    {
        nm = bo.Name();
    }
    TheApplication().RaiseErrorText("SS View = " + vw + " ::: SS BO Name = " + nm);

 

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