Performance Issue On ReturnCancel() Operation In Open UI

(Doc ID 2323207.1)

Last updated on OCTOBER 31, 2017

Applies to:

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

Symptoms

ISSUE CLARIFICATION
====================

PROBLEM DESCRIPTION
--------------------------------------
performance issue on ReturnCancel() Operation in OpenUI.

 

PM file:

if( typeof( SiebelAppFacade.esi_asset_mgmt_contact_mvg_applet_pm ) === "undefined" ){

SiebelJS.Namespace( "SiebelAppFacade.esi_asset_mgmt_contact_mvg_applet_pm" );

define( "siebel/custom/esi_asset_mgmt_contact_mvg_applet_pm", [], function(){

SiebelAppFacade.esi_asset_mgmt_contact_mvg_applet_pm = ( function(){

function esi_asset_mgmt_contact_mvg_applet_pm(){
SiebelAppFacade.esi_asset_mgmt_contact_mvg_applet_pm.superclass.constructor.apply( this, arguments );
}
SiebelJS.Extend( esi_asset_mgmt_contact_mvg_applet_pm, SiebelAppFacade.ListPresentationModel );

esi_asset_mgmt_contact_mvg_applet_pm.prototype.Init = function(){
SiebelAppFacade.esi_asset_mgmt_contact_mvg_applet_pm.superclass.Init.call( this );
this.AddMethod( "InvokeMethod", PreInvokeMethod, { sequence : true, scope : this } );
};
function PreInvokeMethod( methodName, psInputArgs, lp, returnStructure){
if( methodName === "AddRecords" )
{
var sInputPS = SiebelApp.S_App.NewPropertySet();
var sOuputPS = SiebelApp.S_App.NewPropertySet();
var service = SiebelApp.S_App.GetService("ESI Open UI Utilities BS");
var sAccId = SiebelApp.S_App.GetProfileAttr("ESIAssetAccountId");
var sId = theApplication().FindApplet("Contact Assoc Applet").BusComp().GetFieldValue("Id");
sInputPS.SetProperty("AccountId",sAccId);
sInputPS.SetProperty("SelectedContactId",sId);
sOuputPS = service.InvokeMethod("CheckAssetAccount", sInputPS);
var sAccIds = sOuputPS.GetChild(0).GetProperty("AccountId");
var sAccountExist =sOuputPS.GetChild(0).GetProperty("AccountExist");
var sConfirmMsg = sOuputPS.GetChild(0).GetProperty("ConfirmMessage");
//alert("No Of Accounts " + sAccIds +" Account Exist = " + sAccountExist);
if(sAccountExist === "TRUE")
{
//Do Nothing
}
else
{
if (confirm(sConfirmMsg+"!" ) == true)
{
//Do Nothing
}
else
{

returnStructure["CancelOperation"] = true;
returnStructure["CancelPost"] = true;
// returnStructure["ReturnValue"] = "";
}
}

/*
//var sApp = theApplication().ActiveApplet().Name();
//var sId = theApplication().ActiveApplet().BusComp().GetFieldValue("Id");
//var sAccountName = this.ExecuteMethod("GetFieldValue",this.Get("GetControls")["ESI Account Name"]);
//var sOOID = this.ExecuteMethod("GetFieldValue",this.Get("GetControls")["ESI OOID"]);
*/
}
}
return esi_asset_mgmt_contact_mvg_applet_pm;
} ());
return "SiebelAppFacade.esi_asset_mgmt_contact_mvg_applet_pm";
});
}



ERROR MESSAGES/EXPECTED BEHAVIOR
-----------------------------------------------------------
When we click on "Cancel" then session is unresponsive for about 30 secs approximately.

ENVIRONMENT
-----------------------
The current version used: 15.17 [IP2015]

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