Forcing Startup View By Application_Start Ends With Not All Responsibilities Loaded (Doc ID 2122939.1)

Last updated on AUGUST 27, 2016

Applies to:

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

Goal

On : 15.8 [IP2015] version, Configuration - General

Forcing Startup View by Application_Start ends with not all responsibilities loaded

Requirement: set different startup application view to specific group of users (if they did not set their own startup view).

The problem is that when application starts and sets the startup view, all responsibilities of the user are not loaded correctly (a lot of assigned views are missing).
After closing a new starting of the application (startup view was already set by script in previous app startup) everything is OK.

function Application_Start (CommandLine)
{
try
{
var oboUP = TheApplication().GetBusObject("User Preferences");
var obcUP = oboUP.GetBusComp("User Preferences");
 
obcUP.ActivateField("Screen/StartUpView");
obcUP.ActivateField("Screen/StartUpViewDisplayFormat");
obcUP.SetViewMode(AllView);
obcUP.ClearToQuery();
obcUP.ExecuteQuery(ForwardOnly);

if (obcUP.FirstRecord())
{
if (obcUP.GetFieldValue("Screen/StartUpView") == "" || obcUP.GetFieldValue("Screen/StartUpView") == null)
{
obcUP.SetFieldValue("Screen/StartUpViewDisplayFormat", "Accounts - Activities");
obcUP.SetFieldValue("Screen/StartUpView", "Account Detail - Activities View");
}
}
}

finally
{
obcUP = null;
oboUP = null;
}
}
 
Question:
-----------
Please note that we are using setting 2 fields instead of picking up as SetSearchSpec method on "User Preferences" BC is ignored (Siebel bug?).
What we are doing wrong?
 

Solution

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